{"id":"CVE-2024-32468","aliases":["CVE-2024-32468","GHSA-qqwr-j9mm-fhw6"],"related":[],"kind":"vulnerability","state":"published","title":"Improper neutralization of input during web page generation (\"Cross-site Scripting\") in deno_doc HTML generator","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### 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 & 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Deno es un entorno de ejecución para JavaScript y TypeScript escrito en rust. Existían varias vulnerabilidades de cross-site scripting en el crate `deno_doc` que conducían a Self-XSS con deno doc --html. 1.) XSS en `search_index.js` generado, `deno_doc` genera un archivo JavaScript para realizar búsquedas. Sin embargo, el archivo generado utilizó `innerHTML` en la entrada HTML no desinfectada. 2.) XSS a través de nombres de propiedades, métodos y enumeraciones, `deno_doc` no saneó los nombres de propiedades, métodos y enumeraciones. Lo más probable es que el primer XSS no haya tenido un impacto ya que se espera que `deno doc --html` se use localmente con paquetes propios.","source":"nvd"}],"published":"2024-11-25T18:44:27.785Z","modified":"2026-06-17T07:29:41.363Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"LOW"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"deno_doc:  < 0.119.0","status":"affected"},{"version":"deno: < 1.42.0","status":"affected"}],"vendor":"denoland","product":"deno","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.119.0"}],"ecosystem":"crates.io","package":"deno_doc","purl":"pkg:cargo/deno_doc","source":"ghsa"}],"references":[{"url":"https://github.com/denoland/deno/security/advisories/GHSA-qqwr-j9mm-fhw6","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/denoland/deno_doc/blob/dc556c848831d7ae48f3eff2ababc6e75eb6b73e/src/html/templates/pages/search.js#L120-L144","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-32468","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/denoland/deno_doc/commit/0f1ef3efbf16194730a29d93dcb9c02f6c490942","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/denoland/deno","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-11-25T19:17:51.270Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-32468","url":"https://www.cve.org/CVERecord?id=CVE-2024-32468","licence":"CVE Terms of Use","modified":"2024-11-25T19:26:26.427Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-qqwr-j9mm-fhw6","url":"https://github.com/advisories/GHSA-qqwr-j9mm-fhw6","licence":"CC-BY-4.0","modified":"2024-11-25T21:46:50.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-32468","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-32468","licence":"Public domain","modified":"2026-06-17T07:29:41.363Z"}],"updatedAt":"2026-11-25T22:58:49.424Z","epss":{"score":0.00354,"percentile":0.31085,"date":"2026-12-01T12:00:22.000Z"}}