jsoup is vulnerable to Cross-Site Scripting (XSS)
47
CVE Score
Medium
Cross-Site Scripting (XSS)
jsoup's Cleaner sanitizes HTML against a Safelist to strip unsafe content, but the built-in Safelists are not affected by this issue. When a custom Safelist permits raw-text elements, malformed HTML whose tag name ends in a control character can be normalized so the tag adopts the parsing behavior of a different element. Content that should remain text is then emitted as active markup after serialization, enabling cross-site scripting. The fix preserves control characters in parsed tag names so the token and its resulting tag stay consistent.
Upgrade the org.jsoup:jsoup library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and you use a custom Safelist that permits raw-text elements to clean untrusted HTML.
1.14.3 - 1.22.2
Fixed in 1.23.1jsoup is vulnerable to Cross-Site Scripting (XSS) in versions 1.14.3 - 1.22.2.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.