Vulnerability · Published Aug 6, 2026 · Assigned by GitHub_M

CVE-2026-71497jsoup: Cleaner may expose markup with custom raw-text elements

Medium 4.7

In plain English

A medium-severity cross-site scripting in jsoup from jhy. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 22% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)4.7Medium
Exploit odds (30 days)0.3%top 77.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12jsoupno fix listedDEBIAN-CVE-2026-71497
Debian:13jsoupno fix listedDEBIAN-CVE-2026-71497
Debian:14jsoup1.23.2-1DEBIAN-CVE-2026-71497
Mavenorg.jsoup:jsoup1.23.1GHSA-pmhh-3w7g-xqp8
Ubuntu:22.04:LTSjsoupno fix listedUBUNTU-CVE-2026-71497
Ubuntu:24.04:LTSjsoupno fix listedUBUNTU-CVE-2026-71497
Ubuntu:26.04:LTSjsoupno fix listedUBUNTU-CVE-2026-71497
Ubuntu:26.10jsoupno fix listedUBUNTU-CVE-2026-71497

Affected products (as reported)

VendorProductVersions
jhy jsoup >= 1.14.3, < 1.23.1

Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N

References