FreeBSD VuXML: Documenting security issues in FreeBSD and the FreeBSD Ports Collection

mdbook -- XSS in mdBook's search page

Affected packages
mdbook < 0.4.5

Details

VuXML ID 40b481a9-9df7-11eb-9bc3-8c164582fbac
Discovery 2021-04-01
Entry 2021-04-15

Rust Security Response Working Group reports:

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.

References

CVE Name CVE-2020-26297
URL https://github.com/rust-lang/mdBook/blob/master/CHANGELOG.md#mdbook-045
URL https://github.com/rust-lang/mdBook/commit/32abeef088e98327ca0dfccdad92e84afa9d2e9b
URL https://github.com/rust-lang/mdBook/security/advisories/GHSA-gx5w-rrhp-f436
URL https://groups.google.com/g/rustlang-security-announcements/c/3-sO6of29O0?pli=1
URL https://nvd.nist.gov/vuln/detail/CVE-2020-26297