{"cve":"CVE-2020-26297","nvd":{"published":"2021-01-04T19:15:15.173","modified":"2026-06-17T03:08:01.467","status":"Modified","description":"mdBook 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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1},"cwes":["CWE-79"],"references":["https://crates.io/crates/mdbook","https://github.com/rust-lang/mdBook/blob/master/CHANGELOG.md#mdbook-045","https://github.com/rust-lang/mdBook/commit/32abeef088e98327ca0dfccdad92e84afa9d2e9b","https://github.com/rust-lang/mdBook/security/advisories/GHSA-gx5w-rrhp-f436","https://groups.google.com/g/rustlang-security-announcements/c/3-sO6of29O0"],"products":["rust-lang:mdbook"],"source":"nvd","synced_at":"2026-10-19T21:12:09.559580076+00:00"},"epss":{"cve":"CVE-2020-26297","score":0.0127,"percentile":0.69807,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-gx5w-rrhp-f436","url":"https://osv.dev/vulnerability/GHSA-gx5w-rrhp-f436","summary":"XSS in mdBook","modified":"2026-09-10T03:49:07.989016522Z","packages":[{"ecosystem":"crates.io","name":"mdBook","purl":"pkg:cargo/mdBook","ranges":[">=0.1.4 <0.4.5"],"fixed":["0.4.5"]}]},{"id":"RUSTSEC-2021-0001","url":"https://osv.dev/vulnerability/RUSTSEC-2021-0001","summary":"XSS in mdBook's search page","modified":"2023-11-08T04:03:18.452926Z","packages":[{"ecosystem":"crates.io","name":"mdbook","purl":"pkg:cargo/mdbook","ranges":[">=0.1.4-0 <0.4.5"],"fixed":["0.4.5"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}