Advisory

GHSA-98pf-gfh3-x3mp

Also known as: None

Summary

Read the Docs vulnerable to Cross-Site Scripting (XSS)

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-11-10 16:02 UTC
Modified
2022-11-10 16:02 UTC

Affected packages and fixes

readthedocs

npm · All systems

Affected

  • introduced 0, fixed 8.8.1 (semver)

Fixed versions

8.8.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences