{"id":"CVE-2024-32468","aliases":["EUVD-2024-3377","GHSA-qqwr-j9mm-fhw6"],"status":"published","title":"Improper neutralization of input during web page generation (\"Cross-site Scripting\") in deno_doc HTML generator","description":"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.","severity":{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-12","score":0.00354,"percentile":0.29492,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-79"],"published":"2024-11-25T18:44:27Z","modified":"2026-10-28T02:30:53Z","fixes":[{"ecosystem":"crates.io","package":"deno_doc","fixed_in":["0.119.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"crates.io","package":"deno_doc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.119.0"}]}]},{"source":"osv","ecosystem":"crates.io","package":"deno_doc","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.119.0"}]}]}],"products":[{"vendor":"denoland","product":"deno"}],"references":[{"url":"https://github.com/denoland/deno/security/advisories/GHSA-qqwr-j9mm-fhw6","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/denoland/deno_doc/blob/dc556c848831d7ae48f3eff2ababc6e75eb6b73e/src/html/templates/pages/search.js#L120-L144","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/denoland/deno_doc/commit/0f1ef3efbf16194730a29d93dcb9c02f6c490942","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-32468","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-qqwr-j9mm-fhw6"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/32xxx/CVE-2024-32468.json","tags":["advisory"]},{"url":"https://github.com/denoland/deno","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2024-32468","title":"Improper neutralization of input during web page generation (\"Cross-site Scripting\") in deno_doc HTML generator","description":"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.","status":"published","published":"2024-11-25T18:44:27.785Z","modified":"2024-11-25T19:26:26.427Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"cna"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:34:15.662528Z"}],"euvd":[{"id":"EUVD-2024-3377","description":"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.","status":"published","published":"2024-11-25T18:44:27Z","modified":"2024-11-25T19:26:26Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-03T00:04:48.414867Z"}],"ghsa":[{"id":"GHSA-qqwr-j9mm-fhw6","title":"deno_doc's HTML generator vulnerable to Cross-site Scripting","description":"### Summary\n\nSeveral cross-site scripting vulnerabilities existed in the `deno_doc` crate which lead to Self-XSS with `deno doc --html`.\n\n### Details \u0026 PoC\n\n1.) XSS in generated `search_index.js`\n\n`deno_doc` outputed a JavaScript file for searching. However, the generated file used `innerHTML` on unsanitzed HTML input.\n\nhttps://github.com/denoland/deno_doc/blob/dc556c848831d7ae48f3eff2ababc6e75eb6b73e/src/html/templates/pages/search.js#L120-L144\n\n2.) XSS via property, method and enum names\n\n`deno_doc` did not sanitize property names, method names and enum names.\n\n### Impact\n\nThe first XSS most likely didn't have an impact since `deno doc --html` is expected to be used locally with own packages.","status":"published","published":"2024-11-25T19:34:24Z","modified":"2024-11-25T21:46:51Z","cvss":[{"version":"4.0","score":2,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:P","level":"low"},{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:38:23.575854Z"}],"nvd":[{"id":"CVE-2024-32468","description":"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.","status":"published","published":"2024-11-25T19:15:09.51Z","modified":"2026-06-17T07:29:41.363Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"secondary"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:10:38.347238Z"}],"osv":[{"id":"CVE-2024-32468","title":"Improper neutralization of input during web page generation (\"Cross-site Scripting\") in deno_doc HTML generator","description":"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.","status":"published","published":"2024-11-25T18:44:27.785Z","modified":"2026-10-28T02:30:53.757171557Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:44:40.391953Z"},{"id":"GHSA-qqwr-j9mm-fhw6","title":"deno_doc's HTML generator vulnerable to Cross-site Scripting","description":"### Summary\n\nSeveral cross-site scripting vulnerabilities existed in the `deno_doc` crate which lead to Self-XSS with `deno doc --html`.\n\n### Details \u0026 PoC\n\n1.) XSS in generated `search_index.js`\n\n`deno_doc` outputed a JavaScript file for searching. However, the generated file used `innerHTML` on unsanitzed HTML input.\n\nhttps://github.com/denoland/deno_doc/blob/dc556c848831d7ae48f3eff2ababc6e75eb6b73e/src/html/templates/pages/search.js#L120-L144\n\n2.) XSS via property, method and enum names\n\n`deno_doc` did not sanitize property names, method names and enum names.\n\n### Impact\n\nThe first XSS most likely didn't have an impact since `deno doc --html` is expected to be used locally with own packages.","status":"published","published":"2024-11-25T19:34:24Z","modified":"2024-11-25T21:46:50Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium"},{"version":"4.0","score":2,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:P","level":"low"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:54.760124Z"}]}}
