CyberRota Analysis
AI-GeneratedThe jsoup library for Java, versions 1.14.3 to 1.23.1, is vulnerable due to improper handling of malformed tag names, which can lead to unintended parsing behavior and potentially expose applications to cross-site scripting (XSS) attacks when raw-text elements are permitted. Organizations using affected versions of jsoup, particularly those allowing custom Safelists, should prioritize upgrading to version 1.23.1 to mitigate this security risk.
Public Exploit Signal
A public exploit, PoC, GitHub repository or Metasploit reference was detected for this CVE.
Note: these links are listed for security research and verification purposes only.
Original NVD Description
jsoup is a Java library for working with real-world HTML. From 1.14.3 until 1.23.1, jsoup's HTML parser could incorrectly handle a malformed tag name ending in a control character, causing the tag to acquire the parsing behavior of a different element. When a custom Safelist permits certain raw-text elements, this misparsing can cause content that should remain inert text to be emitted as active markup after serialization, potentially resulting in cross-site scripting. jsoup's built-in Safelists are not affected. This issue is fixed in version 1.23.1.