CVE-2020-26297: XSS in mdBook's search page

Published Jan 4, 2021
·
Updated

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.

Affected Software

1 affected component
rust-lang Mdbook Rust>=0.1.4<0.4.5

Event History

Jan 4, 2021
CVE Published
via MITRE·06:45 PM
Data Sourced
via MITRE·06:45 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is CVE-2020-26297?

CVE-2020-26297 is a vulnerability affecting the search feature of mdBook before version 0.4.5, which could allow an attacker to execute arbitrary JavaScript code on the page.

2

What is mdBook?

mdBook is a utility to create modern online books from Markdown files and is written in Rust.

3

How does CVE-2020-26297 impact mdBook?

CVE-2020-26297 affects the search feature of mdBook, allowing an attacker to execute arbitrary JavaScript code on the page.

4

How severe is CVE-2020-26297?

CVE-2020-26297 has a severity rating of 6.1 (high).

5

How can I fix CVE-2020-26297?

To fix CVE-2020-26297, upgrade mdBook to version 0.4.5 or newer.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203