Deno · Deno · CVE-2024-32468
**Name of the Vulnerable Software and Affected Versions**
Deno versions prior to 1.41.1
**Description**
The issue concerns several cross-site scripting vulnerabilities in the `deno doc` crate, leading to Self-XSS when using `deno doc --html`. Specifically, there are two vulnerabilities:
1. The generated `search index.js` file uses `innerHTML` on unsanitized HTML input, and
2. the `deno doc` component does not sanitize property names, method names, and enum names.
The first vulnerability likely has minimal impact since `deno doc --html` is typically used locally with personal packages.
**Recommendations**
For Deno versions prior to 1.41.1, upgrade to a version newer than 1.41.1 to mitigate the risk.
As a temporary workaround, consider restricting the use of the `deno doc --html` command until a patch is applied.
Avoid using the `deno doc` component with unsanitized input until the issue is resolved.