# GHSA-98pf-gfh3-x3mp: Read the Docs vulnerable to Cross-Site Scripting (XSS)

- Severity: Medium (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2022-11-10T16:02:51.000Z
- Modified: 2022-11-10T16:02:51.000Z
- Weaknesses: CWE-79

## Description

### Impact

This vulnerability allowed a malicious user to serve arbitrary HTML files from the main application domain (readthedocs[.]org/readthedocs[.]com) by exploiting a vulnerability in the code that serves downloadable content from a project. 

Exploiting this would have required the attacker to get a logged-in user to visit the malicious URL, which would have allowed the attacker to take control of the user's session with JavaScript (making requests to the API/site on behalf of the user). This URL would have looked something like `hxxps[:]//readthedocs[.]org/projects/attacker-project/downloads/html/version-with-javascript-attack/`.

### Patches

This issue has been patched in our 8.8.1 release.

(As written by GitHub Advisory Database.)

## Affected

- readthedocs (npm): before 8.8.1

## References

- <https://github.com/readthedocs/readthedocs.org/security/advisories/GHSA-98pf-gfh3-x3mp> (web)
- <https://github.com/readthedocs/readthedocs.org/commit/b0ae626acd13882170ec5888e35f3ef2e48e6ff6> (web)
- <https://github.com/readthedocs/readthedocs.org> (package)

## Sources

- GitHub Advisory Database: [GHSA-98pf-gfh3-x3mp](https://github.com/advisories/GHSA-98pf-gfh3-x3mp), CC-BY-4.0, modified 2022-11-10

---

Page: https://cve.day/GHSA-98pf-gfh3-x3mp · Whole record: https://cve.day/GHSA-98pf-gfh3-x3mp.json · Rebuilt by cve.day 2026-11-25T22:56:44.877Z
