Intel

AIKIDO-2026-499637

jsoup is vulnerable to Cross-Site Scripting (XSS)

CVE-2026-71497Published Aug 4, 2026
August 4, 2026

47

CVE Score

Medium

Cross-Site Scripting (XSS)

Are you affected? Scan for Free

TL;DR

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.

How do I fix this?

Upgrade the org.jsoup:jsoup library to the patch version.

Who does this affect?

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.

Package

Versions

1.14.3 - 1.22.2

Fixed in 1.23.1

Background info

jsoup is vulnerable to Cross-Site Scripting (XSS) in versions 1.14.3 - 1.22.2.

Get secure today,
quickly and for free.

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.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea