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. Learn more about Dependency Scanning →

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 Wed, 14 May 2025 12:14:52 +0000.