{"id":"CVE-2024-32468","published":"2024-11-25T18:44:27Z","modified":"2024-11-25T19:26:26Z","title":"Improper neutralization of input during web page generation (\"Cross-site Scripting\") in deno_doc HTML generator","vendor":"denoland","product":"deno","tier":"tail","description":{"text":"Deno is a runtime for JavaScript and TypeScript written in rust. Several cross-site scripting vulnerabilities existed in the `deno_doc` crate which lead to Self-XSS with deno doc --html. 1.) XSS in generated `search_index.js`, `deno_doc` outputs a JavaScript file for searching. However, the generated file used `innerHTML` on unsanitzed HTML input. 2.) XSS via property, method and enum names, `deno_doc` did not sanitize property names, method names and enum names. The first XSS most likely didn't have an impact since `deno doc --html` is expected to be used locally with own packages.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00454,"percentile":0.31399,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/denoland/deno/security/advisories/GHSA-qqwr-j9mm-fhw6","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/denoland/deno_doc/blob/dc556c848831d7ae48f3eff2ababc6e75eb6b73e/src/html/templates/pages/search.js#L120-L144","tags":["x_refsource_MISC"]}],"priority":{"score":10.1,"factors":[{"name":"EPSS percentile","points":6.28},{"name":"CVSS severity","points":3.78}]},"vendorSlug":"denoland","affectedVersions":[{"vendor":"denoland","product":"deno","versions":["deno_doc:  < 0.119.0","deno: < 1.42.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-11-25T19:17:51.270461Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"deno_doc","vulnerableRanges":["<0.119.0"],"patched":["0.119.0"],"from":["GHSA-qqwr-j9mm-fhw6"],"provenance":"source"}],"summary":{"text":"Cross-site scripting flaws in the deno_doc crate of the Deno JavaScript/TypeScript runtime affect the HTML documentation generator (deno doc --html), which emits an unsanitized search_index.js that uses innerHTML and does not sanitize property, method, and enum names. An attacker who can get a user to interact with the generated documentation, and who can supply a crafted name or search content, can run script in the context of the documentation page, with a network-reachable attack requiring low privileges and user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:08:43Z"},"euvd":{"id":"EUVD-2024-3377","exploited":false,"provenance":"source"}}