CSIRTS // UNIFIED SECURITY ADVISORY FEEDSYS ● ONLINE · POWERED BY INTELFUSIONS.COM

GHSA-pmhh-3w7g-xqp8: jsoup: Cleaner may expose markup with custom raw-text elements

mediumCVSS 4.7CVE-2026-71497
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.

Details

Source
GitHub Security Advisories (INTL · database · site)
Severity
medium — CVSS 4.7
Published
2026-08-06
Last updated
2026-08-06
Exploitation
Not in CISA KEV at last sync

Original advisory: https://github.com/advisories/GHSA-pmhh-3w7g-xqp8

Referenced CVEs

CVECSIRTS overviewExternal
CVE-2026-71497coverage & exploitation statusNVD · CVE.org

Same CVEs, other sources

How other CERTs, PSIRTs and databases cover the vulnerabilities in this advisory.

More from GitHub Security Advisories