8.2
CWE
79
Advisory Published
Updated

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

First published: Mon Jan 04 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.

Credit: security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
Rust-lang Mdbook>=0.1.4<0.4.5

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • 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.

  • What is mdBook?

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

  • 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.

  • How severe is CVE-2020-26297?

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

  • 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.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203