CVE-2026-71497
Medium · 4.7CVSS
4.7
EPSS
0.3%
Published
Aug 6, 2026
CISA due date
—
Cloudanix analysis
A flaw in an HTML handling library could let attackers slip active code past custom safety checks and run it in users' browsers.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- High
- Impact
- Data Exposure
- Component
- Library
- Class
- XSS
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Malformed tag names ending in control characters cause the HTML parser to assign incorrect parsing behavior, allowing content that should remain text to be emitted as active markup after serialization when a custom Safelist permits raw-text elements.
Why it matters to the business
Applications relying on custom Safelists for HTML sanitization risk unintended script execution in browsers, potentially leading to data exposure or unauthorized actions on behalf of users.
How an attack unfolds
An attacker supplies specially crafted HTML containing a malformed tag ending in a control character to an application that parses it with jsoup using a permissive custom Safelist; the parser misclassifies the element and serializes it as executable markup which the browser then runs.
How to fix it
Upgrade jsoup to version 1.23.1 or later. Review and tighten any custom Safelists, removing permissions for raw-text elements where feasible.
How to confirm the fix worked
Verify jsoup version is 1.23.1 or higher in dependency manifests. Test custom Safelists against malformed control-character tags to confirm inert text output only.
Typical attack path
- Craft HTML payload with tag name ending in control character
- Submit payload through application input that invokes jsoup parsing with custom Safelist allowing raw-text elements
- Application serializes and returns the processed content
- Victim browser interprets and executes the emitted markup
How to detect it
Inspect web application logs and serialized HTML outputs for unexpected script or markup tags originating from sanitized content; search request logs for patterns containing control characters near tag names.
What your security team should do
- Upgrade jsoup to 1.23.1 or newer across all projects
- Audit and restrict custom Safelists to eliminate raw-text element permissions
- Add server-side output encoding as defense-in-depth
The record
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.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|
Related vulnerabilities
- CVE-2026-115541 HumHub Community Edition 1.19.0 contains a stored cross-site scripting vulnerability in… CWE-79
- CVE-2026-82160 Dell Wyse Management Suite, versions prior to 2609.0.0.155, contain an Improper… CWE-79
- CVE-2026-82161 Dell Wyse Management Suite, versions prior to 2609.0.0.155, contain an Improper… CWE-79
- CVE-2026-82158 Dell Wyse Management Suite, versions prior to 2609.0.0.155, contain an Improper… CWE-79
- CVE-2026-82159 Dell Wyse Management Suite, versions prior to 2609.0.0.155, contain an Improper… CWE-79
- CVE-2025-71451 Vembu BDRSuite before 7.6.0 contains an unauthenticated cross-site scripting… CWE-79
- CVE-2025-71452 Vembu BDRSuite before 7.6.0 contains an unauthenticated cross-site scripting… CWE-79
- CVE-2026-63197 traQ is a messenger application built for Digital Creators Club traP. CWE-79