Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. readthedocs
  4. ›
  5. GMS-2022-6746

GMS-2022-6746: Read the Docs vulnerable to Cross-Site Scripting (XSS)

November 10, 2022

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 https://readthedocs.org/projects/attacker-project/downloads/html/version-with-javascript-attack/.

References

  • github.com/advisories/GHSA-98pf-gfh3-x3mp
  • github.com/readthedocs/readthedocs.org/commit/b0ae626acd13882170ec5888e35f3ef2e48e6ff6
  • github.com/readthedocs/readthedocs.org/security/advisories/GHSA-98pf-gfh3-x3mp

Code Behaviors & Features

Detect and mitigate GMS-2022-6746 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 8.8.1

Fixed versions

  • 8.8.1

Solution

Upgrade to version 8.8.1 or above.

Source file

npm/readthedocs/GMS-2022-6746.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:53 +0000.