{"id":"GHSA-gx5w-rrhp-f436","revision":null,"records":[{"revision":"3c6019326e2c47f4a01977f3fb64cea5","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2020-26297","aliases":[],"title":"XSS in mdBook's search page","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.","state":0,"publishedAt":"2021-01-04T18:45:15+00:00","modifiedAt":"2024-08-04T15:56:04.096+00:00","affected":[{"ecosystem":"Vendor product","name":"mdBook","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"mdBook\",\n                    \"vendor\": \"rust-lang\",\n                    \"versions\": [\n                        {\n                            \"status\": \"affected\",\n                            \"version\": \"< 0.4.5\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:N","score":8.2,"severity":"HIGH"}],"references":["https://github.com/rust-lang/mdBook/security/advisories/GHSA-gx5w-rrhp-f436","https://groups.google.com/g/rustlang-security-announcements/c/3-sO6of29O0","https://crates.io/crates/mdbook","https://github.com/rust-lang/mdBook/blob/master/CHANGELOG.md#mdbook-045","https://github.com/rust-lang/mdBook/commit/32abeef088e98327ca0dfccdad92e84afa9d2e9b"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2020-26297","license":"CVE Program Terms of Use","key":"cve-program:CVE-2020-26297","identifiers":["CVE-2020-26297"]},"retained":false,"historicalAffected":[]},{"revision":"257dee3bb2224249ad76a5e235a3d05f","observedAt":"2026-11-17T23:33:21.71+00:00","statement":{"source":"euvd","id":"EUVD-2021-1733","aliases":["CVE-2020-26297","GHSA-gx5w-rrhp-f436"],"title":"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 arbitrar…","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.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:N","score":8.2,"severity":null}],"references":["https://github.com/rust-lang/mdBook/security/advisories/GHSA-gx5w-rrhp-f436","https://groups.google.com/g/rustlang-security-announcements/c/3-sO6of29O0","https://crates.io/crates/mdbook","https://github.com/rust-lang/mdBook/blob/master/CHANGELOG.md#mdbook-045","https://github.com/rust-lang/mdBook/commit/32abeef088e98327ca0dfccdad92e84afa9d2e9b"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2021-1733","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Jan 4, 2021, 6:45:15 PM","dateUpdated":"Aug 4, 2024, 3:56:04 PM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2021-1733","identifiers":["EUVD-2021-1733","CVE-2020-26297","GHSA-gx5w-rrhp-f436"]},"retained":false,"historicalAffected":[]},{"revision":"2ceb4a598e004cf4beefc5afb41287c5","observedAt":"2026-10-24T16:17:32.505+00:00","statement":{"source":"nvd","id":"CVE-2020-26297","aliases":[],"title":"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 arbitrar…","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.","state":0,"publishedAt":"2021-01-04T19:15:15.173+00:00","modifiedAt":"2026-06-17T03:08:01.467+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:N","score":8.2,"severity":"HIGH"},{"system":"CVSS 3.1 · nvd@nist.gov · Primary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"severity":"MEDIUM"},{"system":"CVSS 2.0 · nvd@nist.gov · Primary","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","score":4.3,"severity":"MEDIUM"}],"references":["https://crates.io/crates/mdbook","https://github.com/rust-lang/mdBook/blob/master/CHANGELOG.md#mdbook-045","https://github.com/rust-lang/mdBook/commit/32abeef088e98327ca0dfccdad92e84afa9d2e9b","https://github.com/rust-lang/mdBook/security/advisories/GHSA-gx5w-rrhp-f436","https://groups.google.com/g/rustlang-security-announcements/c/3-sO6of29O0"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2020-26297","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Modified","weaknesses":["CWE-79"],"productCriteria":["cpe:2.3:a:rust-lang:mdbook:*:*:*:*:*:rust:*:*"],"sourceDates":{"published":"2021-01-04T19:15:15.173","lastModified":"2026-06-17T03:08:01.467"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2020-26297","identifiers":["CVE-2020-26297"]},"retained":false,"historicalAffected":[]},{"revision":"67eafd09f9714b0abb238fb482b42d78","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"GHSA-gx5w-rrhp-f436","aliases":["CVE-2020-26297","RUSTSEC-2021-0001"],"title":"XSS in mdBook","description":"> This is a cross-post of [the official security advisory][ml]. The official post contains a signed version with our PGP key, as well.\n\n[ml]: https://groups.google.com/g/rustlang-security-announcements/c/3-sO6of29O0\n\nThe Rust Security Response Working Group was recently notified of a security issue affecting the search feature of mdBook, which could allow an attacker to execute arbitrary JavaScript code on the page.\n\nThe CVE for this vulnerability is [CVE-2020-26297](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-26297).\n\n## Overview\n\nThe 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.\n\nmdBook 0.4.5 fixes the vulnerability by properly escaping the search query.\n\n## Mitigations\n\nOwners of websites built with mdBook have to upgrade to mdBook 0.4.5 or greater and rebuild their website contents with it. It's possible to install mdBook 0.4.5 on the local system with:\n\n```\ncargo install mdbook --version 0.4.5 --force\n```\n\n## Acknowledgements\n\nThanks to Kamil Vavra for responsibly disclosing the vulnerability to us according to [our security policy](https://www.rust-lang.org/policies/security).\n\n## Timeline of events\n\nAll times are listed in UTC.\n\n- 2020-12-30 20:14 - The issue is reported to the Rust Security Response WG\n- 2020-12-30 20:32 - The issue is acknowledged and the investigation began\n- 2020-12-30 21:21 - Found the cause of the vulnerability and prepared the patch\n- 2021-01-04 15:00 - Patched version released and vulnerability disclosed","state":0,"publishedAt":"2021-08-25T20:56:20+00:00","modifiedAt":"2026-09-10T03:49:07.9890165+00:00","affected":[{"ecosystem":"crates.io","name":"mdBook","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.1.4"},{"kind":"fixed","version":"0.4.5"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/rust-lang/mdBook/security/advisories/GHSA-gx5w-rrhp-f436","https://nvd.nist.gov/vuln/detail/CVE-2020-26297","https://github.com/rust-lang/mdBook/commit/32abeef088e98327ca0dfccdad92e84afa9d2e9b","https://github.com/rust-lang/mdBook","https://github.com/rust-lang/mdBook/blob/master/CHANGELOG.md#mdbook-045","https://groups.google.com/g/rustlang-security-announcements/c/3-sO6of29O0","https://rustsec.org/advisories/RUSTSEC-2021-0001.html"],"sourceUrl":"https://github.com/advisories/GHSA-gx5w-rrhp-f436","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-gx5w-rrhp-f436","identifiers":["GHSA-gx5w-rrhp-f436","CVE-2020-26297","RUSTSEC-2021-0001"]},"retained":false,"historicalAffected":[]},{"revision":"91069f4b922c495c9924bf905fe6e944","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"RUSTSEC-2021-0001","aliases":["CVE-2020-26297","GHSA-gx5w-rrhp-f436"],"title":"XSS in mdBook's search page","description":"> This is a cross-post of [the official security advisory][ml]. The official post\n> contains a signed version with our PGP key, as well.\n\n[ml]: https://groups.google.com/g/rustlang-security-announcements/c/3-sO6of29O0\n\nThe Rust Security Response Working Group was recently notified of a security\nissue affecting the search feature of mdBook, which could allow an attacker to\nexecute arbitrary JavaScript code on the page.\n\nThe CVE for this vulnerability is [CVE-2020-26297][1].\n\n## Overview\n\nThe search feature of mdBook (introduced in version 0.1.4) was affected by a\ncross site scripting vulnerability that allowed an attacker to execute\narbitrary JavaScript code on an user's browser by tricking the user into typing\na malicious search query, or tricking the user into clicking a link to the\nsearch page with the malicious search query prefilled.\n\nmdBook 0.4.5 fixes the vulnerability by properly escaping the search query.\n\n## Mitigations\n\nOwners of websites built with mdBook have to upgrade to mdBook 0.4.5 or greater\nand rebuild their website contents with it. It's possible to install mdBook\n0.4.5 on the local system with:\n\n```\ncargo install mdbook --version 0.4.5 --force\n```\n\n## Acknowledgements\n\nThanks to Kamil Vavra for responsibly disclosing the vulnerability to us\naccording to [our security policy][2].\n\n## Timeline of events\n\nAll times are listed in UTC.\n\n* 2020-12-30 20:14 - The issue is reported to the Rust Security Response WG\n* 2020-12-30 20:32 - The issue is acknowledged and the investigation began\n* 2020-12-30 21:21 - Found the cause of the vulnerability and prepared the patch\n* 2021-01-04 15:00 - Patched version released and vulnerability disclosed\n\n[1]: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-26297\n[2]: https://www.rust-lang.org/policies/security","state":0,"publishedAt":"2021-01-04T12:00:00+00:00","modifiedAt":"2023-11-08T04:03:18.452926+00:00","affected":[{"ecosystem":"crates.io","name":"mdbook","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.1.4-0"},{"kind":"fixed","version":"0.4.5"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":null,"severity":null}],"references":["https://crates.io/crates/mdbook","https://rustsec.org/advisories/RUSTSEC-2021-0001.html","https://groups.google.com/g/rustlang-security-announcements/c/3-sO6of29O0"],"sourceUrl":"https://osv.dev/vulnerability/RUSTSEC-2021-0001","license":"OSV · upstream source license applies","key":"osv:RUSTSEC-2021-0001","identifiers":["RUSTSEC-2021-0001","CVE-2020-26297","GHSA-gx5w-rrhp-f436"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-19T06:24:22.7088152+00:00","complete":true,"records":1786,"lastAttemptAt":"2026-11-19T06:24:22.7088152+00:00","lastSuccessAt":"2026-11-19T06:24:22.8754391+00:00","error":null,"lastVerifiedAt":"2026-11-19T06:24:22.8754399+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-e55c589538e0700b45c7d6d41fe1447a79199283262c371c864535c791a040b9-42f061bddbd482fb0fdcbfdaef32a6fe691ccebc959e217807f38a7ec448390c","complete":true,"records":428247,"lastAttemptAt":"2026-11-19T06:22:43.7183085+00:00","lastSuccessAt":"2026-11-19T06:22:43.6605476+00:00","error":null,"lastVerifiedAt":"2026-11-19T06:22:43.7183085+00:00","snapshotPublishedAt":"2026-11-19T05:24:53+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-0455a087489b431eaa25ea64be0a33c1","complete":false,"records":13861,"lastAttemptAt":"2026-11-19T06:31:53.0846306+00:00","lastSuccessAt":"2026-11-19T06:31:53.1417915+00:00","error":null,"lastVerifiedAt":"2026-11-19T06:31:53.1417915+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-19T06:24:22.7088152+00:00","complete":true,"records":1125,"lastAttemptAt":"2026-11-19T06:24:22.7088152+00:00","lastSuccessAt":"2026-11-19T06:24:22.8762559+00:00","error":null,"lastVerifiedAt":"2026-11-19T06:24:22.8762561+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-84b4b212d7ef41cb9ec24b71e9d8e5d8","complete":true,"records":13873,"lastAttemptAt":"2026-11-19T06:24:23.3874789+00:00","lastSuccessAt":"2026-11-19T04:24:39.391+00:00","error":null,"lastVerifiedAt":"2026-11-19T04:24:39.391+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13908,"expectedIdentifiers":13908,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-76574c95b6792d47ba90af64983ed5843633f14426346d676016e94a5f383202","complete":true,"records":9963,"lastAttemptAt":"2026-11-19T06:24:22.665091+00:00","lastSuccessAt":"2026-11-19T01:24:31.4213722+00:00","error":null,"lastVerifiedAt":"2026-11-19T06:24:22.665091+00:00","snapshotPublishedAt":"2026-11-19T01:03:15+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-f4424d7d4861b1af1404bd15abcb83f295dcd003412a9340ca99dc8200aa148a","complete":true,"records":2014,"lastAttemptAt":"2026-11-19T06:22:43.8470822+00:00","lastSuccessAt":"2026-11-13T19:57:08.2864435+00:00","error":null,"lastVerifiedAt":"2026-11-19T06:22:43.8470822+00:00","snapshotPublishedAt":"2026-11-13T19:33:10+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-c0d9c71c6fa06d617f979e7bec0d97aca70ca5aea1558184002f8e44516f2fac","complete":true,"records":3177,"lastAttemptAt":"2026-11-19T06:24:22.6784424+00:00","lastSuccessAt":"2026-11-18T21:25:09.5127964+00:00","error":null,"lastVerifiedAt":"2026-11-19T06:24:22.6784424+00:00","snapshotPublishedAt":"2026-11-18T21:18:06+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-79ba98249fc096fffe991a6a897ec91d79aa0bbce455566e233ea218d4eb3d8e","complete":true,"records":232711,"lastAttemptAt":"2026-11-19T06:24:22.5400107+00:00","lastSuccessAt":"2026-11-19T06:24:21.5299094+00:00","error":null,"lastVerifiedAt":"2026-11-19T06:24:22.5400107+00:00","snapshotPublishedAt":"2026-11-19T05:48:03+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}