# CVE-2024-32468: Improper neutralization of input during web page generation ("Cross-site Scripting") in deno_doc HTML generator

- Severity: Medium 5.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.35%, higher than 31% of CVEs (2026-12-01)
- Published: 2024-11-25T18:44:27.785Z
- Modified: 2026-06-17T07:29:41.363Z
- Also known as: GHSA-qqwr-j9mm-fhw6
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- denoland deno: deno_doc:  < 0.119.0; deno: < 1.42.0
- deno_doc (crates.io): before 0.119.0

## Every score

- GitHub_M: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 5.4 Low `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:4.0 Low `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`

## References

- <https://github.com/denoland/deno/security/advisories/GHSA-qqwr-j9mm-fhw6> (web)
- <https://github.com/denoland/deno_doc/blob/dc556c848831d7ae48f3eff2ababc6e75eb6b73e/src/html/templates/pages/search.js#L120-L144> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-32468> (advisory)
- <https://github.com/denoland/deno_doc/commit/0f1ef3efbf16194730a29d93dcb9c02f6c490942> (web)
- <https://github.com/denoland/deno> (package)

## Sources

- CVE List: [CVE-2024-32468](https://www.cve.org/CVERecord?id=CVE-2024-32468), CVE Terms of Use, modified 2024-11-25
- GitHub Advisory Database: [GHSA-qqwr-j9mm-fhw6](https://github.com/advisories/GHSA-qqwr-j9mm-fhw6), CC-BY-4.0, modified 2024-11-25
- NVD: [CVE-2024-32468](https://nvd.nist.gov/vuln/detail/CVE-2024-32468), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-32468 · Whole record: https://cve.day/CVE-2024-32468.json · Rebuilt by cve.day 2026-11-25T22:58:49.424Z
