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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| jhy | jsoup | >= 1.14.3, < 1.23.1 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | jsoup | 1.23.2-1 | — |
| Debian 13 | jsoup | No fix yet | — |
| Debian 12 | jsoup | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | jsoup | No fix yet | — |
| Ubuntu 26.04 LTS | jsoup | No fix yet | — |
| Ubuntu 24.04 LTS | jsoup | No fix yet | — |
| Ubuntu 22.04 LTS | jsoup | No fix yet | — |
| Ubuntu 20.04 LTS | jsoup | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | jsoup | No fix yet | — |
| Ubuntu 16.04 LTS | jsoup | No fix yet | — |
| Ubuntu Pro 14.04 LTS | jsoup | No fix yet | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | jsoup | 1.23.2-1.amzn2023.0.1 | ALAS2023-2026-2150 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | javapackages-bootstrap | 1.14.0-5 | — |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | apache-tika-3.1 | 3.1.0-r36 | — |
| Wolfi rolling | apache-tika-3.2 | 3.2.3-r16 | — |
| Wolfi rolling | apache-tika-3.2-compat | 3.2.3-r18 | — |
| Wolfi rolling | apache-tika-3.3 | 3.3.2-r1 | — |
| Wolfi rolling | gradle-8 | 8.14.5-r5 | — |
| Wolfi rolling | gradle-9 | 9.6.1-r4 | — |
| Wolfi rolling | nextflow | 26.04.6-r1 | — |
| Wolfi rolling | opensearch-3-discovery-ec2 +2 | 3.8.0-r3 | — |
| Wolfi rolling | opensearch-3-reporting +1 | 3.7.0-r14 | — |
| Wolfi rolling | scala-3.8 +1 | No fix yet | — |
| Wolfi rolling | scala-3.9 | 3.9.0-r2 | — |
| Wolfi rolling | spdx-tools-java | 2.0.7-r4 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.jsoup:jsoup | >= 1.14.3, < 1.23.1 | 1.23.1 | GHSA-pmhh-3w7g-xqp8 |
Advisories 2
- WID-SEC-2026-2698 jsoup: Schwachstelle ermöglicht Cross-Site Scripting BSI CERT-Bund (WID) · Oct 13, 2026
- ALAS2023-2026-2150 Moderate: jsoup security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Sep 14, 2026