Skip to main content
← All vulnerabilities
CVE-2024-32468GHSA-QQWR-J9MM-FHW6

Improper neutralization of input during web page generation ("Cross-site Scripting") in deno_doc HTML generator

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.119.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • denoland deno

    deno_doc: < 0.119.0, deno: < 1.42.0

  • deno_doccrates.io

    fixed in 0.119.0

References 2

GitHub · denoland/deno

GitHub · denoland/deno_doc