CVE-2020-26297

Summary

CVECVE-2020-26297
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2021-01-04 19:15:00 UTC
Updated2021-01-14 15:04:00 UTC
DescriptionmdBook is a utility to create modern online books from Markdown files and is written in Rust. In mdBook before version 0.4.5, there is a vulnerability affecting the search feature of mdBook, which could allow an attacker to execute arbitrary JavaScript code on the page. The search feature of mdBook (introduced in version 0.1.4) was affected by a cross site scripting vulnerability that allowed an attacker to execute arbitrary JavaScript code on an user's browser by tricking the user into typing a malicious search query, or tricking the user into clicking a link to the search page with the malicious search query prefilled. mdBook 0.4.5 fixes the vulnerability by properly escaping the search query. Owners of websites built with mdBook have to upgrade to mdBook 0.4.5 or greater and rebuild their website contents with it.

Risk And Classification

Problem Types: CWE-79

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Rust-lang Mdbook All All All All
Application Rust-lang Mdbook All All All All

References

ReferenceSourceLinkTags
XSS in mdBook's search page · Advisory · rust-lang/mdBook · GitHub CONFIRM github.com Mitigation, Third Party Advisory
fix xss in the search page · rust-lang/mdBook@32abeef · GitHub MISC github.com Patch, Third Party Advisory
mdBook/CHANGELOG.md at master · rust-lang/mdBook · GitHub MISC github.com Release Notes, Third Party Advisory
mdBook security advisory - 2021-01-04 MISC groups.google.com Mailing List, Third Party Advisory
crates.io/crates/mdbook MISC crates.io Product, Third Party Advisory
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 690167 Free Berkeley Software Distribution (FreeBSD) Security Update for mdbook (40b481a9-9df7-11eb-9bc3-8c164582fbac)
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report