{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "3.4.0"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "DESCRIPTION"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "5b16e0b892e82b1779d62b9928b43c4c4ff290b9"
            }
          ],
          "repo": "https://github.com/cure53/dompurify",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-39q2-94rc-95cp"
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-697"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/65xxx/CVE-2026-65903.json"
  },
  "details": "DOMPurify before 3.4.0 contains a logic error in the ADD_TAGS function where short-circuit evaluation allows forbidden tags to bypass FORBID_TAGS restrictions. Attackers can craft input containing tags listed in FORBID_TAGS that are also added via ADD_TAGS function, causing them to be retained in sanitized output.",
  "id": "CVE-2026-65903",
  "modified": "2026-07-25T03:56:36.938370901Z",
  "published": "2026-07-23T13:16:21.187Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/65xxx/CVE-2026-65903.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/cure53/DOMPurify/security/advisories/GHSA-39q2-94rc-95cp"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-65903"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/dompurify-before-add-tags-function-bypasses-forbid-tags"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "DOMPurify before 3.4.0 ADD_TAGS Function Bypasses FORBID_TAGS"
}