CVE-2024-32468CWE-79

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

Medium · published November 25, 2024

CVSS v3.1
5.4
EPSS
0%
Percentile
25.5
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
5.4 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
CVSS v4.0
Not supplied
EPSS
0.00334 · 25.5th percentile
Weakness
CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Published
2024-11-25T18:44Z
EPSS history
Timeline
  • 25 NOV 18:44Z
    Improper neutralization of input during web page generation ("Cross-site Scripting") in deno_doc HTML generator
    cvelistv5