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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | jsoup | no fix listed | DEBIAN-CVE-2026-71497 |
| Debian:13 | jsoup | no fix listed | DEBIAN-CVE-2026-71497 |
| Debian:14 | jsoup | 1.23.2-1 | DEBIAN-CVE-2026-71497 |
| Maven | org.jsoup:jsoup | 1.23.1 | GHSA-pmhh-3w7g-xqp8 |
| Ubuntu:22.04:LTS | jsoup | no fix listed | UBUNTU-CVE-2026-71497 |
| Ubuntu:24.04:LTS | jsoup | no fix listed | UBUNTU-CVE-2026-71497 |
| Ubuntu:26.04:LTS | jsoup | no fix listed | UBUNTU-CVE-2026-71497 |
| Ubuntu:26.10 | jsoup | no fix listed | UBUNTU-CVE-2026-71497 |
Affected products (as reported)
Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
References
- https://github.com/jhy/jsoup/security/advisories/GHSA-pmhh-3w7g-xqp8 x_refsource_CONFIRM
- https://github.com/jhy/jsoup/issues/2538 x_refsource_MISC
- https://github.com/jhy/jsoup/commit/92f1aca552548b484bc7d4b94c51e48b8e6eca70 x_refsource_MISC
- https://github.com/jhy/jsoup/releases/tag/jsoup-1.23.1 x_refsource_MISC