CVE-2020-26297
Summary
| CVE | CVE-2020-26297 |
|---|---|
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2021-01-04 19:15:00 UTC |
| Updated | 2021-01-14 15:04:00 UTC |
| 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. |
Risk And Classification
Problem Types: CWE-79
NVD Known Affected Configurations (CPE 2.3)
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| 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 |
No vendor comments have been submitted for this CVE.
Legacy QID Mappings
- 690167 Free Berkeley Software Distribution (FreeBSD) Security Update for mdbook (40b481a9-9df7-11eb-9bc3-8c164582fbac)