Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
🐍
🐍 PyPI
Not in CISA KEV
MEDIUM severity

GHSA-xgfm-fjx6-62mj readthedocs-sphinx-search

MEDIUMFix: readthedocs/readthedocs-sphinx-search@8c6f6d0

GHSA-xgfm-fjx6-62mj is a medium-severity (CVSS 6.3) vulnerability in readthedocs-sphinx-search. A fix is available for readthedocs-sphinx-search — see the affected versions and patch details below.

readthedocs-sphinx-search vulnerable to cross-site scripting when including search results from malicious projects

Published
Jan 16, 2024
Updated
Nov 28, 2024
Affected
1 pkg
Patched
1 / 1
Exploits
None indexed
Exploitation data as of Nov 28, 2024 · OSV.dev, FIRST.org (EPSS)

Real-World Exposure

1 pkg affected
🐍readthedocs-sphinx-search

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects PyPI packages — download data is not available via public APIs for these ecosystems.

Description

Impact

This 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.

Users of this extension should update to the 0.3.2 version, and trigger a new build.

This issue was discovered by a member of our team, and we have seen no signs that this vulnerability was exploited in the wild.

Patches

This issue has been patched in our 0.3.2 version.

References

For more information

If you have any questions or comments about this advisory, email us at [email protected] (PGP)

Affected Packages

1 total 1 fixed
EcosystemPackageVulnerable rangeFix
🐍PyPIreadthedocs-sphinx-searchall versions0.3.2pip install --upgrade 'readthedocs-sphinx-search==0.3.2'

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for readthedocs-sphinx-search, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update readthedocs-sphinx-search to 0.3.2 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-xgfm-fjx6-62mj is resolved across your whole dependency graph.

  3. Workarounds

    If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.

  4. How O3 protects you

    O3 Security's impact-aware SCA analyses which vulnerable code paths your application actually calls, so a match like GHSA-xgfm-fjx6-62mj can be triaged on real exposure rather than presence alone.

Tailored to GHSA-xgfm-fjx6-62mj. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.

Frequently Asked Questions

### Impact This 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). Users of this extension should update to the 0.3.2 version, and trigger a new build. This issue was discovered by a member of our team, and we have seen no signs that th
O3 Security · Impact-Aware SCA

Is GHSA-xgfm-fjx6-62mj in your dependencies?

O3 Security finds GHSA-xgfm-fjx6-62mj across PyPI dependencies, including transitive ones, and its impact-aware SCA ranks findings by whether your code actually calls the vulnerable path.

GHSA-xgfm-fjx6-62mj: Medium 6.3 severity | O3 Security