{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "fixed": "1.8.6"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "fixed": "86d09cdc7fa45f8739fc5892bbca4c1a04be6dae"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "v1.8.6",
                "range": [
                  {
                    "fixed": "9253950e551f9ed95294f775675de9aa249894a2"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "9253950e551f9ed95294f775675de9aa249894a2"
            },
            {
              "fixed": "86d09cdc7fa45f8739fc5892bbca4c1a04be6dae"
            }
          ],
          "repo": "https://github.com/anglesharp/anglesharp",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-79"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142223.json"
  },
  "details": "AngleSharp before 1.8.6 contains a mutation cross-site scripting vulnerability in HtmlMarkupFormatter.WriteAttributeValue, which writes less-than and greater-than characters unescaped in serialized attribute values. Attackers can embed \u003c/noscript\u003e followed by an img element with an onerror handler in a noscript child attribute, executing script when browsers parse the re-serialized output.",
  "id": "CVE-2026-142223",
  "modified": "2026-12-02T17:45:30.284425172Z",
  "published": "2026-12-02T16:50:22.038Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://github.com/AngleSharp/AngleSharp"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/AngleSharp/AngleSharp/blob/v1.8.5/src/AngleSharp/Html/HtmlMarkupFormatter.cs#L130-L144"
    },
    {
      "type": "FIX",
      "url": "https://github.com/AngleSharp/AngleSharp/commit/86d09cdc7fa45f8739fc5892bbca4c1a04be6dae"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/AngleSharp/AngleSharp/releases/tag/v1.8.6"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142223.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-142223"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/anglesharp-before-1.8.6-mutation-xss-via-htmlmarkupformatter-attribute-serialization"
    }
  ],
  "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": "AngleSharp before 1.8.6 Mutation XSS via HtmlMarkupFormatter Attribute Serialization"
}