CVE-2026-71497
org.jsoup/jsoup: jsoup: Cross-site scripting via malformed HTML tag names
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · August 7, 2026
Updated · October 23, 2026
Description
A flaw was found in jsoup, a Java library for working with HTML. The HTML parser incorrectly handles malformed tag names ending in a control character. When a custom Safelist allows certain raw-text elements, this misparsing can cause content that should be inert to be processed as active markup after serialization. This could allow a remote attacker to achieve cross-site scripting (XSS).
Statement
This cross-site scripting flaw in jsoup requires a custom Safelist that explicitly allows raw-text elements, which is not a default configuration. Exploitation is limited to applications processing untrusted HTML with such a permissive custom Safelist, reducing the overall risk.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 4.7CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
CWE-1289 · Improper Validation of Unsafe Equivalence in Input