Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. mdBook
  4. ›
  5. CVE-2020-26297

CVE-2020-26297: XSS in mdBook

August 25, 2021

This is a cross-post of the official security advisory. The official post contains a signed version with our PGP key, as well.

The Rust Security Response Working Group was recently notified of a security issue affecting the search feature of mdBook, which could allow an attacker to execute arbitrary JavaScript code on the page.

The CVE for this vulnerability is CVE-2020-26297.

References

  • github.com/advisories/GHSA-gx5w-rrhp-f436
  • github.com/rust-lang/mdBook
  • github.com/rust-lang/mdBook/blob/master/CHANGELOG.md
  • github.com/rust-lang/mdBook/commit/32abeef088e98327ca0dfccdad92e84afa9d2e9b
  • github.com/rust-lang/mdBook/security/advisories/GHSA-gx5w-rrhp-f436
  • groups.google.com/g/rustlang-security-announcements/c/3-sO6of29O0
  • nvd.nist.gov/vuln/detail/CVE-2020-26297
  • rustsec.org/advisories/RUSTSEC-2021-0001.html

Code Behaviors & Features

Detect and mitigate CVE-2020-26297 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 starting from 0.1.4 before 0.4.5

Fixed versions

  • 0.4.5

Solution

Upgrade to version 0.4.5 or above.

Impact 8.2 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

cargo/mdBook/CVE-2020-26297.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:16:03 +0000.