{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "1.14.3"
              },
              {
                "fixed": "1.23.1"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "00061629b5b91f09afbfea7eae3710bb3253c5b9"
            },
            {
              "fixed": "92f1aca552548b484bc7d4b94c51e48b8e6eca70"
            },
            {
              "fixed": "bb077a8b0da1203cf11d5139967f0d52fe8f5a59"
            }
          ],
          "repo": "https://github.com/jhy/jsoup",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-pmhh-3w7g-xqp8"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-79"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/71xxx/CVE-2026-71497.json"
  },
  "details": "jsoup is a Java library for working with real-world HTML. From 1.14.3 until 1.23.1, jsoup's HTML parser could incorrectly handle a malformed tag name ending in a control character, causing the tag to acquire the parsing behavior of a different element. When a custom Safelist permits certain raw-text elements, this misparsing can cause content that should remain inert text to be emitted as active markup after serialization, potentially resulting in cross-site scripting. jsoup's built-in Safelists are not affected. This issue is fixed in version 1.23.1.",
  "id": "CVE-2026-71497",
  "modified": "2026-08-09T03:30:31.088955639Z",
  "published": "2026-08-06T21:09:31.489Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/jhy/jsoup/releases/tag/jsoup-1.23.1"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/71xxx/CVE-2026-71497.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/jhy/jsoup/security/advisories/GHSA-pmhh-3w7g-xqp8"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-71497"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/jhy/jsoup/issues/2538"
    },
    {
      "type": "FIX",
      "url": "https://github.com/jhy/jsoup/commit/92f1aca552548b484bc7d4b94c51e48b8e6eca70"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "jsoup: Cleaner may expose markup with custom raw-text elements"
}