GHSA-xgfm-fjx6-62mj

Suggest an improvement
Source
https://github.com/advisories/GHSA-xgfm-fjx6-62mj
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/01/GHSA-xgfm-fjx6-62mj/GHSA-xgfm-fjx6-62mj.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-xgfm-fjx6-62mj
Published
2024-01-16T20:48:16Z
Modified
2024-11-28T05:51:41Z
Severity
  • 6.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:N CVSS Calculator
Summary
readthedocs-sphinx-search vulnerable to cross-site scripting when including search results from malicious projects
Details

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 security@readthedocs.org (PGP)

Database specific
{
    "cwe_ids":  [
        "CWE-79"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2024-01-16T20:48:16Z",
    "nvd_published_at":  null,
    "severity":  "MODERATE"
}
References

Affected packages

PyPI / readthedocs-sphinx-search

Package

Name
readthedocs-sphinx-search
View open source insights on deps.dev
Purl
pkg:pypi/readthedocs-sphinx-search

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
0.3.2

Affected versions

0.*
0.1.0rc1
0.1.0rc2
0.1.0rc3
0.1.0
0.1.1
0.1.2
0.2.0
0.3.0
0.3.1

Database specific

last_known_affected_version_range
"<= 0.3.1"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/01/GHSA-xgfm-fjx6-62mj/GHSA-xgfm-fjx6-62mj.json"