GHSA-pmhh-3w7g-xqp8

    Dashboard / Vulnerabilities / GHSA-pmhh-3w7g-xqp8

    GHSA-pmhh-3w7g-xqp8

    Published: 6 Aug 2026Last Modified: 10 Sept 2026

    Summary: jsoup: Cleaner may expose markup with custom raw-text elements

    Details: When a custom `Safelist` permits certain raw-text elements, jsoup may incorrectly sanitize malformed HTML containing a tag name that ends in a control character. The tag may acquire the parsing behavior of a different element, causing content that should remain text to be emitted as active markup after serialization and potentially allowing XSS. jsoup’s built-in Safelists are unaffected. ## Patches Upgrade to jsoup 1.23.1. ## Workarounds Until upgrading, do not permit raw-text elements in custom Safelists used to clean untrusted HTML. ## Additional security considerations This fix addresses malformed tag-name handling only. Permitting raw-text elements in a custom `Safelist` does not make their contents inherently safe. For example, applications that permit `style` must apply appropriate CSS safeguards separately, because jsoup does not parse or sanitize CSS.

    Affected packages

    Package

    Name: org.jsoup:jsoup

    Purl: pkg:maven/org.jsoup/jsoup

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 1.14.3
    Fixed -1.23.1

    Affected versions

    1.14.3

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-pmhh-3w7g-xqp8 | CVE-DB