Cross-site scripting in jsoup - #VU140665
Published: August 1, 2026
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.