CVE-2026-71497
MEDIUM 4.7CVSS 3.1jsoup: Cleaner may expose markup with custom raw-text elements
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.
- Published
- 6 Aug 2026
- Last modified
- 24 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Awaiting Analysis
- Weakness
- CWE-79
- Also known as
- GHSA-pmhh-3w7g-xqp8
- Sources
- NVDJSONOSV GHSA-pmhh-3w7g-xqp8JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 4.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Maven | org.jsoup:jsoup | >= 1.14.3, < 1.23.1 | 1.23.1 |
References
- https://github.com/jhy/jsoup/commit/92f1aca552548b484bc7d4b94c51e48b8e6eca70 · WEB
- https://github.com/jhy/jsoup/issues/2538 · WEB
- https://github.com/jhy/jsoup/releases/tag/jsoup-1.23.1 · WEB
- https://github.com/jhy/jsoup/security/advisories/GHSA-pmhh-3w7g-xqp8 · WEB
- https://github.com/jhy/jsoup · PACKAGE
History
- 25 Nov 2026 21:04 UTC · NVD: first stored (published 6 Aug 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 6 Aug 2026)