Vulnerability Details : CVE-2020-26297
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.
Vulnerability category: Cross site scripting (XSS)
Products affected by CVE-2020-26297
- cpe:2.3:a:rust-lang:mdbook:*:*:*:*:*:rust:*:*
Exploit prediction scoring system (EPSS) score for CVE-2020-26297
0.12%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 48 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2020-26297
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
4.3
|
MEDIUM | AV:N/AC:M/Au:N/C:N/I:P/A:N |
8.6
|
2.9
|
NIST | |
6.1
|
MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
2.8
|
2.7
|
NIST | |
8.2
|
HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:N |
2.8
|
4.7
|
GitHub, Inc. |
CWE ids for CVE-2020-26297
-
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.Assigned by: security-advisories@github.com (Primary)
References for CVE-2020-26297
-
https://github.com/rust-lang/mdBook/blob/master/CHANGELOG.md#mdbook-045
mdBook/CHANGELOG.md at master · rust-lang/mdBook · GitHubRelease Notes;Third Party Advisory
-
https://github.com/rust-lang/mdBook/security/advisories/GHSA-gx5w-rrhp-f436
XSS in mdBook's search page · Advisory · rust-lang/mdBook · GitHubMitigation;Third Party Advisory
-
https://github.com/rust-lang/mdBook/commit/32abeef088e98327ca0dfccdad92e84afa9d2e9b
fix xss in the search page · rust-lang/mdBook@32abeef · GitHubPatch;Third Party Advisory
-
https://groups.google.com/g/rustlang-security-announcements/c/3-sO6of29O0
mdBook security advisory - 2021-01-04Mailing List;Third Party Advisory
-
https://crates.io/crates/mdbook
mdbook - crates.io: Rust Package RegistryProduct;Third Party Advisory
Jump to