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

- Severity: Medium 4.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 9% of CVEs (2026-12-01)
- Published: 2026-08-06T21:09:31.489Z
- Modified: 2026-10-24T15:10:00.190Z
- Also known as: GHSA-pmhh-3w7g-xqp8
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- jhy jsoup: >= 1.14.3, < 1.23.1
- org.jsoup:jsoup (Maven): from 1.14.3 before 1.23.1

## Every score

- GitHub_M: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 4.7 Medium `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> (web)
- <https://github.com/jhy/jsoup/issues/2538> (web)
- <https://github.com/jhy/jsoup/commit/92f1aca552548b484bc7d4b94c51e48b8e6eca70> (web)
- <https://github.com/jhy/jsoup/releases/tag/jsoup-1.23.1> (web)
- <https://github.com/jhy/jsoup> (package)

## Sources

- CVE List: [CVE-2026-71497](https://www.cve.org/CVERecord?id=CVE-2026-71497), CVE Terms of Use, modified 2026-08-07
- GitHub Advisory Database: [GHSA-pmhh-3w7g-xqp8](https://github.com/advisories/GHSA-pmhh-3w7g-xqp8), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-71497](https://nvd.nist.gov/vuln/detail/CVE-2026-71497), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-71497 · Whole record: https://cve.day/CVE-2026-71497.json · Rebuilt by cve.day 2026-11-25T22:59:31.814Z
