{"id":"GHSA-xgfm-fjx6-62mj","summary":"readthedocs-sphinx-search vulnerable to cross-site scripting when including search results from malicious projects","details":"### 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))","modified":"2024-11-28T05:51:41.817588Z","published":"2024-01-16T20:48:16Z","database_specific":{"nvd_published_at":null,"cwe_ids":["CWE-79"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2024-01-16T20:48:16Z"},"references":[{"type":"WEB","url":"https://github.com/readthedocs/readthedocs-sphinx-search/security/advisories/GHSA-xgfm-fjx6-62mj"},{"type":"WEB","url":"https://github.com/readthedocs/readthedocs-sphinx-search/commit/8c6f6d01e88e72ef32ed0c220b6c19d1e1121c73"},{"type":"PACKAGE","url":"https://github.com/readthedocs/readthedocs-sphinx-search"}],"affected":[{"package":{"name":"readthedocs-sphinx-search","ecosystem":"PyPI","purl":"pkg:pypi/readthedocs-sphinx-search"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.3.2"}]}],"versions":["0.1.0","0.1.0rc1","0.1.0rc2","0.1.0rc3","0.1.1","0.1.2","0.2.0","0.3.0","0.3.1"],"database_specific":{"last_known_affected_version_range":"\u003c= 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"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:N"}]}