{"answers":{"affected":"2 open source packages ship an affected version, including readthedocs-sphinx-search.","exploited":"There is no known exploitation of GHSA-xgfm-fjx6-62mj in the wild and no public exploit code.","fix":"Upgrade readthedocs-sphinx-search to 0.3.2 or later.","what":"GHSA-xgfm-fjx6-62mj is a cross-site scripting vulnerability in readthedocs-sphinx-search, published on 16 Jan 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for GHSA-xgfm-fjx6-62mj and fix it if it is affected.\n\nWhat it is: GHSA-xgfm-fjx6-62mj is a cross-site scripting vulnerability in readthedocs-sphinx-search, published on 16 Jan 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of GHSA-xgfm-fjx6-62mj in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- readthedocs-sphinx-search (PyPI): affected all versions; fixed in 0.3.2\n- readthedocs-sphinx-search (PyPI): affected all versions; fixed in 0.3.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-xgfm-fjx6-62mj/ (Markdown: https://insights.sbomify.com/GHSA-xgfm-fjx6-62mj/index.md)","id":"GHSA-xgfm-fjx6-62mj","markdown":"https://insights.sbomify.com/GHSA-xgfm-fjx6-62mj/index.md","name":"GHSA-xgfm-fjx6-62mj","record":{"aliases":[],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Sphinx search extension","requires_auth":"none","summary":"An attacker can inject arbitrary HTML into search results via malicious projects, requiring user interaction to trigger execution.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### Impact\n\nThis vulnerability could have allowed an attacker to include arbitrary HTML content in search results by having a user search a malicious project. This was due to our search client not correctly escaping all user content from search results. You can find more information in the [advisory published in our readthedocs.org repo](https://github.com/readthedocs/readthedocs.org/security/advisories/GHSA-qhqx-5j25-rv48).\n\nUsers of this extension should update to the 0.3.2 version, and trigger a new build.\n\nThis issue was discovered by a member of our team, and we have seen no signs that this vulnerability was exploited in the wild.\n\n### Patches\n\nThis issue has been patched in our 0.3.2 version. \n\n### References\n\n- https://github.com/readthedocs/readthedocs-sphinx-search/commit/8c6f6d01e88e72ef32ed0c220b6c19d1e1121c73\n\n### For more information\n\nIf you have any questions or comments about this advisory, email us at [security@readthedocs.org](mailto:security@readthedocs.org) ([PGP](https://docs.readthedocs.io/page/security.html#pgp-key))","ecosystems":["PyPI"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"readthedocs-sphinx-search vulnerable to cross-site scripting when including search results from malicious projects","id":"GHSA-xgfm-fjx6-62mj","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"xss","year":"2024"},"n_packages":2,"n_references":null,"packages":[{"ecosystem":"PyPI","fixed":["0.3.2"],"introduced":["0"],"last_affected":[],"package":"readthedocs-sphinx-search","purl":null,"source":"GHSA-xgfm-fjx6-62mj"},{"ecosystem":"PyPI","fixed":["0.3.2"],"introduced":["0"],"last_affected":[],"package":"readthedocs-sphinx-search","purl":"pkg:pypi/readthedocs-sphinx-search","source":"GHSA-xgfm-fjx6-62mj"}],"products":null,"published":"2024-01-16","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"An attacker can inject arbitrary HTML into search results via malicious projects, requiring user interaction to trigger execution.","url":"https://insights.sbomify.com/GHSA-xgfm-fjx6-62mj/"}