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.
{
"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",
"unresolved_ranges": [
{
"extracted_events": [
{
"range": [
{
"introduced": "1.14.3"
},
{
"fixed": "1.23.1"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
}
]
},
{
"extracted_events": [
{
"range": [
{
"fixed": "1.23.1"
}
],
"source": "DESCRIPTION"
}
]
}
]
}{
"extracted_events": [
{
"range": [
{
"fixed": "92f1aca552548b484bc7d4b94c51e48b8e6eca70"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "jsoup-1.23.1",
"range": [
{
"fixed": "bb077a8b0da1203cf11d5139967f0d52fe8f5a59"
}
],
"source": "REFERENCES_TAG"
}
]
}