CVE-2020-26297

Source
https://nvd.nist.gov/vuln/detail/CVE-2020-26297
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-26297.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2020-26297
Aliases
Published
2021-01-04T19:15:15Z
Modified
2024-05-30T02:33:25.169144Z
Severity
  • 6.1 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Git / github.com/rust-lang/mdbook

Affected ranges

Type
GIT
Repo
https://github.com/rust-lang/mdbook
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

0.*

0.0.17
0.0.18
0.0.20
0.0.21
0.0.23
0.0.24
0.0.25
0.0.26
0.0.27
0.0.28
0.1.0

v0.*

v0.0.1
v0.0.10
v0.0.11
v0.0.11-rc1
v0.0.12
v0.0.13
v0.0.14
v0.0.16
v0.0.19
v0.0.2
v0.0.3
v0.0.4
v0.0.5
v0.0.6
v0.0.7
v0.0.8
v0.0.9
v0.1.0
v0.1.1
v0.1.10
v0.1.2
v0.1.3
v0.1.4
v0.1.5
v0.1.6
v0.1.7
v0.1.8
v0.1.9
v0.2.0
v0.2.1
v0.2.2
v0.2.3
v0.3.0
v0.3.1
v0.3.2
v0.3.3
v0.3.4
v0.3.5
v0.3.6
v0.3.7
v0.4.0
v0.4.1
v0.4.2
v0.4.3
v0.4.4