Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconIdentify application using jsoup custom Safelist with raw-text elements
-
DeliveryCraft malformed HTML tag name ending in control character
-
ExploitSubmit payload to HTML-accepting endpoint
-
Installjsoup tokenizer trims control character, normalizes to known raw-text element
-
C2Safelist check passes on original malformed name
-
ExecuteSerialized output contains active executable markup
-
ImpactVictim browser executes injected script
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires two simultaneous non-default application-side conditions: (1) the application must construct a custom Safelist instance rather than using any of jsoup's built-in Safelists (Safelist.basic(), Safelist.relaxed(), etc.), AND (2) that custom Safelist must explicitly include at least one raw-text element - script, style, textarea, title, or xmp - via addTags() or equivalent. The attacker must also supply malformed HTML whose tag name ends in a control character that, after trimming, resolves to one of those permitted raw-text elements. User interaction is required per CVSS UI:R - the victim must view or load a page that renders the sanitized output. These conditions limit the realistic attack surface to a specific and unusual subset of jsoup deployments; applications using only built-in Safelists are explicitly and categorically unaffected. |
| Impact | The vendor-assigned CVSS 4.7 (Medium) with vector AV:N/AC:H/PR:N/UI:R/S:C accurately reflects constrained real-world exploitability. Attack Complexity is High because two non-default conditions must hold simultaneously: the application must use a custom Safelist (not any built-in jsoup Safelist), and that Safelist must explicitly add raw-text elements. Changed Scope captures the cross-origin XSS impact in the victim's browser. No EPSS data was supplied in the input, so exploitation probability cannot be quantified; however, the dual precondition substantially limits the exposed population - only applications making a deliberate and unusual Safelist configuration choice are at risk. This vulnerability is not listed in CISA KEV and no public proof-of-concept has been identified, making the current threat posture lower than the XSS classification alone might suggest. For organizations running affected jsoup versions with default or built-in Safelists, risk is effectively zero; for those using custom raw-text-permitting Safelists, the risk is real and should be patched promptly despite the medium CVSS score. |
| Exploit ScenarioDerived | An attacker submits HTML containing a malformed tag - for example, a template element whose name is suffixed with the ASCII control character U+001E - to an application that sanitizes user content with jsoup using a custom Safelist permitting raw-text elements. jsoup's tokenizer strips the control character during normalization, resolving the name to template, which then acquires raw-text element parsing semantics; the Safelist check passes because the original malformed name matched an allowed entry, but serialization emits the inner content as active markup rather than escaped text. A victim who views the rendered page has attacker-controlled script executed in their browser session. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 06, 2026
HTML sanitization bypass in jsoup versions 1.14.3 through 1.23.0 allows cross-site scripting when applications deploy a custom Safelist that explicitly permits raw-text elements. The parser's tag-name normalization trimmed trailing control characters (e.g., U+001E) from malformed tag names, causing a crafted element to acquire the parsing behavior of a recognized raw-text element; content intended to remain escaped text was then serialized as active markup, bypassing sanitization. jsoup's built-in Safelists are unaffected, and no public exploit or CISA KEV listing has been identified at time of analysis.
RemediationAI
Upgrade to jsoup 1.23.1 (vendor-released patch confirmed via GHSA-pmhh-3w7g-xqp8 and https://github.com/jhy/jsoup/releases/tag/jsoup-1.23.1); the underlying fix is in commit 92f1aca552548b484bc7d4b94c51e48b8e6eca70. If an immediate upgrade is not feasible, the vendor-documented workaround is to remove all raw-text elements from any custom Safelist used to process untrusted HTML - specifically, do not call addTags() with script, style, textarea, title, or xmp on a Safelist applied to user-controlled input; this eliminates the vulnerable code path at the cost of losing those element types in sanitized output. The vendor additionally notes that even after patching, permitting style in a custom Safelist requires separate CSS sanitization, because jsoup does not parse or validate CSS content.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in maven, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
jsoup (Maven: org.jsoup:jsoup) is a widely used Java library for HTML parsing and sanitization. Its Cleaner component applies Safelist rules to strip disallowed elements and attributes from untrusted HTML. Raw-text elements - script, style, textarea, title, xmp - are special: browsers treat their content as raw text rather than nested markup. The root cause (CWE-79) resided in two locations in the parser: Token.java applied ParseSettings.normalName() to tag names during tokenization, and TagSet.java called tagName.trim() unconditionally in Tag.valueOf(). A tag name like template (template plus ASCII Record Separator, U+001E) would be trimmed to template at serialization time, causing the parser to assign template's raw-text element semantics. The Safelist checked the original malformed name, which might pass as an allowed tag, while the tree builder treated the normalized name as a structurally different element - closing the gap between what the sanitizer approved and what the browser rendered. The fix (commit 92f1aca5) replaces ParseSettings.normalName() with lowerCase() in Token.java so control characters survive tree construction, and restricts the trim() call in TagSet.java to public API entry points only, where tokenizer-produced names are already delimited.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
AC:H reflects dual non-default preconditions (custom Safelist + raw-text elements); S:C captures cross-origin XSS; no auth required (PR:N) and no server-side availability impact.
Primary rating from Vendor (https://github.com/jhy/jsoup).
CVSS VectorVendor: https://github.com/jhy/jsoup
DescriptionCVE.org
When a custom Safelist permits certain raw-text elements, jsoup may incorrectly sanitize malformed HTML containing a tag name that ends in a control character. The tag may acquire the parsing behavior of a different element, causing content that should remain text to be emitted as active markup after serialization and potentially allowing XSS.
jsoup’s built-in Safelists are unaffected.
Patches
Upgrade to jsoup 1.23.1.
Workarounds
Until upgrading, do not permit raw-text elements in custom Safelists used to clean untrusted HTML.
Additional security considerations
This fix addresses malformed tag-name handling only.
Permitting raw-text elements in a custom Safelist does not make their contents inherently safe. For example, applications that permit style must apply appropriate CSS safeguards separately, because jsoup does not parse or sanitize CSS.
Blast Radius
ecosystem impact- 2,195 maven packages depend on org.jsoup:jsoup (371 direct, 1,832 indirect)
Ecosystem-wide dependent count for version 1.14.3.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Same weakness CWE-79 – Cross-site Scripting (XSS)
View allVendor StatusVendor
SUSE
Severity: Moderate| Product | Status |
|---|---|
| SUSE Linux Enterprise Desktop 15 SP7 | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP7 | Affected |
| SUSE Linux Enterprise Module for Development Tools 15 SP7 | Affected |
| SUSE Linux Enterprise Server 15 SP7 | Affected |
| SUSE Linux Enterprise Server 16.0 | Affected |
| SUSE Linux Enterprise Server 16.1 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP7 | Affected |
| SUSE Linux Enterprise Server for SAP applications 16.0 | Affected |
| SUSE Linux Enterprise Server for SAP applications 16.1 | Affected |
| openSUSE Leap 16.0 | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP4 | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP5 | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS | Affected |
| SUSE Linux Enterprise Module for Development Tools 15 SP4 | Affected |
| SUSE Linux Enterprise Module for Development Tools 15 SP5 | Affected |
| SUSE Linux Enterprise Module for Development Tools 15 SP6 | Affected |
| SUSE Linux Enterprise Server 15 SP4 | Affected |
| SUSE Linux Enterprise Server 15 SP4-LTSS | Affected |
| SUSE Linux Enterprise Server 15 SP5 | Affected |
| SUSE Linux Enterprise Server 15 SP5-LTSS | Affected |
| SUSE Linux Enterprise Server 15 SP6 | Affected |
| SUSE Linux Enterprise Server 15 SP6-LTSS | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP6 | Affected |
| SUSE Manager Proxy 4.3 | Affected |
| SUSE Manager Retail Branch Server 4.3 | Affected |
| SUSE Manager Server 4.3 | Affected |
| SUSE Enterprise Storage 7 | Affected |
| SUSE Enterprise Storage 7.1 | Affected |
| SUSE Linux Enterprise Desktop 15 SP2 | Affected |
| SUSE Linux Enterprise Desktop 15 SP3 | Affected |
| SUSE Linux Enterprise Desktop 15 SP4 | Affected |
| SUSE Linux Enterprise Desktop 15 SP5 | Affected |
| SUSE Linux Enterprise Desktop 15 SP6 | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP2 | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP2-ESPOS | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP2-LTSS | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP3 | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP3-ESPOS | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP3-LTSS | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP6 | Affected |
| SUSE Linux Enterprise Module for Development Tools 15 SP2 | Affected |
| SUSE Linux Enterprise Module for Development Tools 15 SP3 | Affected |
| SUSE Linux Enterprise Real Time 15 SP2 | Affected |
| SUSE Linux Enterprise Real Time 15 SP3 | Affected |
| SUSE Linux Enterprise Real Time 15 SP4 | Affected |
| SUSE Linux Enterprise Server 15 SP2 | Affected |
| SUSE Linux Enterprise Server 15 SP2-BCL | Affected |
| SUSE Linux Enterprise Server 15 SP2-LTSS | Affected |
| SUSE Linux Enterprise Server 15 SP3 | Affected |
| SUSE Linux Enterprise Server 15 SP3-BCL | Affected |
| SUSE Linux Enterprise Server 15 SP3-LTSS | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP2 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP3 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP4 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP5 | Affected |
| SUSE Manager Proxy 4.1 | Affected |
| SUSE Manager Proxy 4.2 | Affected |
| SUSE Manager Retail Branch Server 4.1 | Affected |
| SUSE Manager Retail Branch Server 4.2 | Affected |
| SUSE Manager Server 4.1 | Affected |
| SUSE Manager Server 4.2 | Affected |
| openSUSE Leap 15.3 | Affected |
| openSUSE Leap 15.4 | Affected |
| openSUSE Leap 15.5 | Affected |
| openSUSE Leap 15.6 | Affected |
EUVD-2026-54153
GHSA-pmhh-3w7g-xqp8
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB