{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "fixed": "2.12.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "fixed": "c99252152ca8b1bdc821181d17a1f2c98e9fba1b"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "2.12.0",
                "range": [
                  {
                    "fixed": "15e16663bd6f512352209d0e3a789c0a691c0d9b"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "15e16663bd6f512352209d0e3a789c0a691c0d9b"
            },
            {
              "fixed": "c99252152ca8b1bdc821181d17a1f2c98e9fba1b"
            }
          ],
          "repo": "https://github.com/masterminds/html5-php",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-pj59-fvjc-74pp"
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-182"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/144xxx/CVE-2026-144959.json"
  },
  "details": "Masterminds html5-php before 2.12.0 contains a cross-site scripting vulnerability because UTF8Utils::convertToUTF8 deletes invalid UTF-8 bytes instead of replacing them with U+FFFD. Attackers can split tokens like \u003cscr\\xFFipt\u003e with bytes such as 0xFF to evade raw-byte tag filters and inject script elements into rendered output.",
  "id": "CVE-2026-144959",
  "modified": "2026-12-04T17:45:24.170012602Z",
  "published": "2026-12-04T14:42:15.763Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/144xxx/CVE-2026-144959.json"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/Masterminds/html5-php"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/Masterminds/html5-php/blob/2.11.0/src/HTML5/Parser/UTF8Utils.php#L90-L105"
    },
    {
      "type": "FIX",
      "url": "https://github.com/Masterminds/html5-php/commit/c99252152ca8b1bdc821181d17a1f2c98e9fba1b"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/Masterminds/html5-php/releases/tag/2.12.0"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/Masterminds/html5-php/security/advisories/GHSA-pj59-fvjc-74pp"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-144959"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/masterminds-html5-php-before-2.12.0-filter-bypass-xss-via-invalid-utf-8-removal"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Masterminds html5-php before 2.12.0 Filter Bypass XSS via Invalid UTF-8 Removal"
}