{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "440f9e8ca92a7be7871aeb07200190328340dbbf"
            }
          ],
          "repo": "https://github.com/kepano/defuddle",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-5mq8-78gm-pjmq"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-79"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/30xxx/CVE-2026-30830.json"
  },
  "details": "Defuddle cleans up HTML pages. Prior to version 0.9.0, the _findContentBySchemaText method in src/defuddle.ts interpolates image src and alt attributes directly into an HTML string without escaping. An attacker can use a \" in the alt attribute to break out of the attribute context and inject event handler. This issue has been patched in version 0.9.0.",
  "id": "CVE-2026-30830",
  "modified": "2026-04-01T23:08:55.444188161Z",
  "published": "2026-03-07T05:49:15.964Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/30xxx/CVE-2026-30830.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/kepano/defuddle/security/advisories/GHSA-5mq8-78gm-pjmq"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-30830"
    },
    {
      "type": "FIX",
      "url": "https://github.com/kepano/defuddle/commit/f154cb740ee603431b69638273af737a27156df9"
    }
  ],
  "schema_version": "1.7.3",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:P",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Defuddle: XSS via unescaped string interpolation in _findContentBySchemaText image tag"
}