Skip to content
OpenAdvisories
High · 7.5 CVE-2021-37714 EUVD-2021-1791GHSA-m72m-mhq2-9p6c

Crafted input may cause the jsoup HTML and XML parser to get stuck, timeout, or throw unchecked exceptions

Published Aug 18, 2021 · Updated Oct 8, 2026 · Assigned by GitHub_M

Description

jsoup is a Java library for working with HTML. Those using jsoup versions prior to 1.14.2 to parse untrusted HTML or XML may be vulnerable to DOS attacks. If the parser is run on user supplied input, an attacker may supply content that causes the parser to get stuck (loop indefinitely until cancelled), to complete more slowly than usual, or to throw an unexpected exception. This effect may support a denial of service attack. The issue is patched in version 1.14.2. There are a few available workarounds. Users may rate limit input parsing, limit the size of inputs based on system resources, and/or implement thread watchdogs to cap and timeout parse runtimes.

Affected products

VendorProductAffectedFixed
jhy jsoup < 1.14.2 —

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.14.2-1 —
Debian 13 jsoup 1.14.2-1 —
Debian 12 jsoup 1.14.2-1 —
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS jsoup No fix yet —
Ubuntu 20.04 LTS jsoup No fix yet —
Ubuntu 18.04 LTS jsoup No fix yet —
Ubuntu 16.04 LTS jsoup No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 14.04 LTS jsoup No fix yet —
ReleasePackageFixed inAdvisory
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-activemq-artemis +15 1.5.5.016-1.redhat_00001.1.ep7.el7 RHSA-2025:4226
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-artemis-native +1 1:1.5.5.016-1.redhat_00001.1.ep7.el7 RHSA-2025:4226
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-jboss-xnio-base 3.5.11-1.Final_redhat_00001.1.ep7.el7 RHSA-2025:4226
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-jsoup 1.14.2-1.redhat_00002.1.ep7.el7 RHSA-2025:4226
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-undertow 1.4.18-14.SP13_redhat_00001.1.ep7.el7 RHSA-2025:4226
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-wildfly +1 7.1.10-2.GA_redhat_00002.1.ep7.el7 RHSA-2025:4226
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-woodstox-core 5.0.3-2.redhat_00002.1.ep7.el7 RHSA-2025:4226
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-xml-security 2.0.10-2.redhat_00002.1.ep7.el7 RHSA-2025:4226
Red Hat JBoss EAP 7 eap7-apache-cxf +3 3.3.12-1.redhat_00001.1.el6eap RHSA-2021:5151, RHSA-2021:5150, RHSA-2021:5149
Red Hat JBoss EAP 7 eap7-apache-sshd 2.7.0-1.redhat_00001.1.el7eap RHSA-2021:4677, RHSA-2021:4676
Red Hat JBoss EAP 7 eap7-ironjacamar +8 1.5.3-1.Final_redhat_00001.1.el6eap RHSA-2021:5151, RHSA-2021:5150, RHSA-2021:5149
Red Hat JBoss EAP 7 eap7-jakarta-el 3.0.3-3.redhat_00007.1.el6eap RHSA-2021:5151, RHSA-2021:5150, RHSA-2021:5149
Red Hat JBoss EAP 7 eap7-jboss-ejb-client 4.0.43-1.Final_redhat_00001.1.el6eap RHSA-2021:5151, RHSA-2021:5150, RHSA-2021:5149
Red Hat JBoss EAP 7 eap7-jboss-server-migration +21 1.7.2-10.Final_redhat_00011.1.el6eap RHSA-2021:5151, RHSA-2021:5150, RHSA-2021:5149
Red Hat JBoss EAP 7 eap7-jsoup 1.14.2-1.redhat_00002.1.el6eap RHSA-2021:5151, RHSA-2021:5150, RHSA-2021:5149
Red Hat JBoss EAP 7 eap7-resteasy +19 3.11.5-1.Final_redhat_00001.1.el6eap RHSA-2021:5151, RHSA-2021:5150, RHSA-2021:5149
Red Hat JBoss EAP 7 eap7-undertow 2.0.41-1.SP1_redhat_00001.1.el6eap RHSA-2021:5151, RHSA-2021:5150, RHSA-2021:5149
Red Hat JBoss EAP 7 eap7-wildfly +2 7.3.10-2.GA_redhat_00003.1.el6eap RHSA-2021:5151, RHSA-2021:5150, RHSA-2021:5149
Red Hat JBoss EAP 7 eap7-wildfly-elytron +1 1.10.15-1.Final_redhat_00001.1.el6eap RHSA-2021:5151, RHSA-2021:5150, RHSA-2021:5149
Red Hat JBoss EAP 7 eap7-wildfly-java-jdk8 +1 7.3.10-2.GA_redhat_00003.1.el7eap RHSA-2021:5150, RHSA-2021:4676
Red Hat JBoss EAP 7 eap7-wss4j +6 2.2.7-1.redhat_00001.1.el6eap RHSA-2021:5151, RHSA-2021:5150, RHSA-2021:5149
Red Hat JBoss EAP 7 eap7-xml-security 2.1.7-1.redhat_00001.1.el6eap RHSA-2021:5151, RHSA-2021:5150, RHSA-2021:5149
ReleasePackageFixed inAdvisory
SLES 15 SP3 jsoup 1.14.2-150200.3.3.1 SUSE-SU-2022:1265-1
SLES 15 SP3 jsr-305 3.0.2-150200.3.3.1 SUSE-SU-2022:1265-1
SLES 15 SP2 jsoup 1.14.2-150200.3.3.1 SUSE-SU-2022:1265-1
SLES 15 SP2 jsr-305 3.0.2-150200.3.3.1 SUSE-SU-2022:1265-1
Show 7 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP2 jsoup 1.14.2-150200.3.3.1 SUSE-SU-2022:1265-1
SLES for SAP 15 SP2 jsr-305 3.0.2-150200.3.3.1 SUSE-SU-2022:1265-1
SLE Real Time 15 SP2 jsoup 1.14.2-150200.3.3.1 SUSE-SU-2022:1265-1
SLE Real Time 15 SP2 jsr-305 3.0.2-150200.3.3.1 SUSE-SU-2022:1265-1
SLE HPC 15 SP2 jsoup 1.14.2-150200.3.3.1 SUSE-SU-2022:1265-1
SLE HPC 15 SP2 jsr-305 3.0.2-150200.3.3.1 SUSE-SU-2022:1265-1
SUSE Manager Server 4.1 jsoup 1.14.2-150200.3.3.1 SUSE-SU-2022:1265-1
SUSE Manager Server 4.1 jsr-305 3.0.2-150200.3.3.1 SUSE-SU-2022:1265-1
SUSE Manager Retail Branch Server 4.1 jsoup 1.14.2-150200.3.3.1 SUSE-SU-2022:1265-1
SUSE Manager Retail Branch Server 4.1 jsr-305 3.0.2-150200.3.3.1 SUSE-SU-2022:1265-1
SUSE Manager Proxy 4.1 jsoup 1.14.2-150200.3.3.1 SUSE-SU-2022:1265-1
SUSE Manager Proxy 4.1 jsr-305 3.0.2-150200.3.3.1 SUSE-SU-2022:1265-1
SUSE Enterprise Storage 7 jsoup 1.14.2-150200.3.3.1 SUSE-SU-2022:1265-1
SUSE Enterprise Storage 7 jsr-305 3.0.2-150200.3.3.1 SUSE-SU-2022:1265-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed jsoup 1.14.2-1.2 openSUSE-SU-2024:10882-1
openSUSE Tumbleweed jsr-305 3.0.2-1.2 openSUSE-SU-2024:10883-1
openSUSE Leap 15.3 jsoup 1.14.2-150200.3.3.1 SUSE-SU-2022:1265-1
openSUSE Leap 15.3 jsr-305 3.0.2-150200.3.3.1 SUSE-SU-2022:1265-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 jsoup +1 1.16.1-4.amzn2023.0.2 ALAS2023-2025-884
Amazon Linux 2 jsoup +1 1.16.1-4.amzn2.0.1 ALAS2-2025-2813

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 jsoup No fix yet —
Azure Linux 2 (CBL-Mariner) jsoup No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.jsoup:jsoup < 1.14.2 1.14.2 GHSA-m72m-mhq2-9p6c

Advisories 15

References