CVE-2020-26297
Rust vulnerability analysis and mitigation

Overview

A cross-site scripting (XSS) vulnerability was discovered in mdBook, a utility for creating online books from Markdown files written in Rust. The vulnerability (CVE-2020-26297) affected versions from 0.1.4 to versions before 0.4.5, specifically impacting the search feature introduced in version 0.1.4. The issue was discovered on December 30, 2020, and was patched with the release of version 0.4.5 on January 4, 2021 (GitHub Advisory, Rust Blog).

Technical details

The vulnerability allowed an attacker to execute arbitrary JavaScript code on a user's browser through the search feature. The issue stemmed from improper escaping of search queries in the search page. The fix implemented in version 0.4.5 properly escapes the search query by using encodeURIComponent and manually replacing single quotes with their URL-encoded representation (GitHub Commit). The vulnerability received a CVSS v3.1 Base Score of 8.2 (HIGH) from GitHub and 6.1 (MEDIUM) from NVD (NVD).

Impact

An attacker could exploit this vulnerability by either tricking users into typing malicious search queries or by having them click on links to the search page with malicious search queries prefilled. This would allow the attacker to execute arbitrary JavaScript code in the context of the user's browser, potentially leading to theft of sensitive information or other malicious actions (GitHub Advisory).

Exploitability

The vulnerability required user interaction to be exploited, either through entering a malicious search query or clicking a specially crafted link. No evidence of active exploitation in the wild was reported before the patch was released (Rust Blog).

Mitigation and workarounds

The vulnerability was fixed in mdBook version 0.4.5. Website owners using mdBook must upgrade to version 0.4.5 or greater and rebuild their website contents. The upgrade can be performed using the command: cargo install mdbook --version 0.4.5 --force (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-46369HIGH7.5
  • Rust logoRust
  • nimiq-blockchain
NoYesAug 12, 2026
GHSA-8rw6-p7m8-63jpMEDIUM6.5
  • Rust logoRust
  • surrealdb
NoYesAug 14, 2026
CVE-2026-73430MEDIUM5.3
  • Rust logoRust
  • russh
NoYesAug 12, 2026
CVE-2026-73429MEDIUM5.3
  • Rust logoRust
  • yazi
NoYesAug 12, 2026
CVE-2026-73489MEDIUM4.3
  • Rust logoRust
  • russh
NoYesAug 13, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management