Skip to content
OpenAdvisories

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

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

ReleasePackageFixed inAdvisory
Debian 14 jsoup 1.23.2-1 —
Debian 13 jsoup No fix yet —
Debian 12 jsoup No fix yet —
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
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

ReleasePackageFixed inAdvisory
Amazon Linux 2023 jsoup 1.23.2-1.amzn2023.0.1 ALAS2023-2026-2150

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 javapackages-bootstrap 1.14.0-5 —

Wolfi

ReleasePackageFixed inAdvisory
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

EcosystemPackageAffectedFixedRecord
Maven org.jsoup:jsoup >= 1.14.3, < 1.23.1 1.23.1 GHSA-pmhh-3w7g-xqp8

Advisories 2

References