{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "0"
              },
              {
                "last_affected": "deno: \u003c 1.42.0"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "9c6eca1064de029e560377bef831e69d22c5c00b"
            }
          ],
          "repo": "https://github.com/denoland/deno",
          "type": "GIT"
        }
      ]
    },
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "0"
              },
              {
                "last_affected": "deno_doc:  \u003c 0.119.0"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "47bea7950a684edc37388e7501d49a1c893299fd"
            }
          ],
          "repo": "https://github.com/denoland/deno_doc",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-qqwr-j9mm-fhw6"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-79"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/32xxx/CVE-2024-32468.json"
  },
  "details": "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.",
  "id": "CVE-2024-32468",
  "modified": "2026-04-01T23:07:50.205477479Z",
  "published": "2024-11-25T18:44:27.785Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/denoland/deno_doc/blob/dc556c848831d7ae48f3eff2ababc6e75eb6b73e/src/html/templates/pages/search.js#L120-L144"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/32xxx/CVE-2024-32468.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/denoland/deno/security/advisories/GHSA-qqwr-j9mm-fhw6"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-32468"
    }
  ],
  "schema_version": "1.7.3",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Improper neutralization of input during web page generation (\"Cross-site Scripting\") in deno_doc HTML generator"
}