Machine-written summary
Summary written by Claude Haiku from the source advisory. Not reviewed by a person.
Affected versions of mdBook from 0.1.4 up to 0.4.5 (not including 0.4.5) contain a cross-site scripting flaw in the search feature. An attacker can get a user to type a malicious search query or open a link with one prefilled, which runs arbitrary JavaScript in the user's browser. Upgrade to mdBook 0.4.5 or later and rebuild sites created with mdBook.
Not analysed yet
We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.
Severity and exploitation
| Score | Rating | CVSS | Vector | Source |
|---|---|---|---|---|
| 8.2 | High | 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:N | CNA (GitHub_M) |
- CISA KEV Not listed.
- EPSS 0.013, the 69th percentile, on 28 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.
Timeline
- 31 Oct 2026, 15:17 UTC First seen by agentprime
- 31 Oct 2026, 15:17 UTC Confirmed by OSV
Sources
- GitHub Advisory Database: GHSA-gx5w-rrhp-f436
- OSV: GHSA-gx5w-rrhp-f436
- github.com/rust-lang/mdBook/security/advisories/GHSA-gx5w-rrhp-f436
- nvd.nist.gov/vuln/detail/CVE-2020-26297
- github.com/rust-lang/mdBook/commit/32abeef088e98327ca0dfccdad92e84afa9d2e9b
- github.com/rust-lang/mdBook
- github.com/rust-lang/mdBook/blob/master/CHANGELOG.md#mdbook-045
- groups.google.com/g/rustlang-security-announcements/c/3-sO6of29O0
- rustsec.org/advisories/RUSTSEC-2021-0001.html