Cross-site scripting in jsoup - #VU140665

 

Cross-site scripting in jsoup - #VU140665

Published: August 1, 2026


Vulnerability identifier: #VU140665
CSH Severity: Medium
CVSS v4: 2.1 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N]
CVE-ID: N/A
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to conduct cross-site scripting.

The vulnerability exists due to improper neutralization of input during web page generation in the jsoup Cleaner when sanitizing malformed HTML with a custom Safelist that permits raw-text elements. A remote attacker can supply specially crafted HTML to conduct cross-site scripting.

User interaction is required to render the serialized output, and jsoup built-in Safelists are unaffected.


Affected software

jsoup

Remediation

Install security update from vendor's website.

jsoup - update to 1.23.1

External References

Related Security Bulletins