8.2

CVE-2020-26297: rust-lang mdbook Cross-site Scripting

CVSS: 8.2v3.1HighModified
AliasesGHSA-gx5w-rrhp-f436RUSTSEC-2021-0001
Published 04-01-2021Last modified 04-08-2024

Vulnerability summary

CVE-2020-26297 is a high (CVSS 8.2) Cross-site Scripting vulnerability in rust-lang mdbook. EPSS estimates a 1.27% chance of exploitation in the next 30 days, higher than 69.4% of scored vulnerabilities.

Overall risk
33/100
0100
Medium · default modelHow is this calculated?
CVSS score
8.2/10
010
High · v3.1 (CVE.org)
EPSS score
1.27%
0%100%
Low · +0.02 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Timeline

  1. 04-01-2021
    PublishedVulnerability first disclosed.
  2. 04-08-2024
    Last modifiedVulnerability information updated.

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 metrics

4 scores · 3 sources · 2 versions

EPSS trend

Probability

1.27%

Chance of exploitation in the next 30 days

Percentile

69%

Versus all other CVEs

30-day change

+0.02 pp

From 1.25% on 20-09-2026

20-09-202620-10-2026
EPSS score
1.27%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Crates.Io1 product
  • mdbook≥ 0.1.4, < 0.4.5 | ≥ 0.1.4-0, < 0.4.5
Rust-lang1 product
  • mdbook< 0.4.5 | ≥ 0.1.4, < 0.4.5

2 vendors · 2 products

References

8 links