CVE-2021-37714
JSON

7.5high

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

Severity
7.5high CVSS:3.1 by GitHub_M
Exploit likelihood
5.98% (higher than 93% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-m72m-mhq2-9p6c

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

Product or packageVersionsReported by
jhy jsoup< 1.14.2CVE List
org.jsoup:jsoup (Maven)before 1.14.2GitHub Advisory Database
jsoup jsoupbefore 1.14.2NVD
quarkus quarkusup to 2.2.3NVD
oracle banking_trade_finance14.5NVD
oracle banking_treasury_management14.5NVD
oracle business_process_management_suite12.2.1.3.0, 12.2.1.4.0NVD
oracle flexcube_universal_bankingfrom 14.0.0 up to 14.3.0, 14.5NVD
oracle hospitality_token_proxy_service19.2NVD
oracle peoplesoft_enterprise_peopletools8.58, 8.59NVD
oracle primavera_unifier20.12, 21.12NVD
oracle retail_customer_management_and_segmentation_foundationfrom 17.0 up to 19.0NVD

All scores

GitHub_M7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD5.0medium CVSS:2.0AV:N/AC:L/Au:N/C:N/I:N/A:P

Classification

CWE-248CWE-835

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database
Impact

What kind of vulnerability is it? Who is impacted? Those using jsoup 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.

Patches

Has the problem been patched? What versions should users upgrade to? Users should upgrade to jsoup 1.14.2

Workarounds

Is there a way for users to fix or remediate the vulnerability without upgrading? Users may rate limit input parsing. Users should limit the size of inputs based on system resources. Users should implement thread watchdogs to cap and timeout parse runtimes.

NVD (es)

jsoup es una biblioteca Java para trabajar con HTML. Aquellos usando versiones de jsoup anteriores a 1.14.2 para analizar HTML o XML no confiables pueden ser vulnerables a ataques DOS. Si el analizador es ejecutado con una entrada suministrada por el usuario, un atacante puede suministrar contenido que cause que el analizador se atasque (un bucle indefinido hasta que se cancele), para completarse más lentamente de lo habitual o que lance una excepción inesperada. Este efecto puede permitir un ataque de denegación de servicio. El problema está parcheado en versión 1.14.2. Se presentan algunas soluciones disponibles. Los usuarios pueden limitar el análisis de las entradas, limitar el tamaño de las entradas en función de los recursos del sistema, y/o implementar controles de hilos para limitar el tiempo de ejecución del análisis.

References

https://github.com/jhy/jsoup/security/advisories/GHSA-m72m-mhq2-9p6cthird-party-advisory, web
https://jsoup.org/news/release-1.14.1release-notes, vendor-advisory, web
https://jsoup.org/news/release-1.14.2release-notes, vendor-advisory, web
https://lists.apache.org/thread.html/r685c5235235ad0c26e86d0ee987fb802c9675de6081dbf0516464e0b%40%3Cnotifications.james.apache.org%3Emailing-list
https://lists.apache.org/thread.html/rc3354080fc67fb50b45b3c2d12dc4ca2a3c1c78dad3d3ba012c038aa%40%3Cnotifications.james.apache.org%3Emailing-list
https://lists.apache.org/thread.html/r97404676a5cf591988faedb887d64e278f522adcaa823d89ca69defe%40%3Cnotifications.james.apache.org%3Emailing-list
https://lists.apache.org/thread.html/r50e9c9466c592ca9d707a5dea549524d19e3287da08d8392f643960e%40%3Cissues.maven.apache.org%3Emailing-list
https://lists.apache.org/thread.html/r215009dbf7467a9f6506d0c0024cb36cad30071010e62c9352cfaaf0%40%3Cissues.maven.apache.org%3Emailing-list
https://lists.apache.org/thread.html/r3d71f18adb78e50f626dde689161ca63d3b7491bd9718fcddfaecba7%40%3Cissues.maven.apache.org%3Emailing-list
https://lists.apache.org/thread.html/r377b93d79817ce649e9e68b3456e6f499747ef1643fa987b342e082e%40%3Cissues.maven.apache.org%3Emailing-list
https://www.oracle.com/security-alerts/cpujan2022.htmlpatch, third-party-advisory, web
https://www.oracle.com/security-alerts/cpuapr2022.htmlpatch, third-party-advisory, web

Sources

SourceRecordLicence
CVE ListCVE-2021-37714 changed 2026-10-08CVE Terms of Use
GitHub Advisory DatabaseGHSA-m72m-mhq2-9p6c changed 2026-09-10CC-BY-4.0
NVDCVE-2021-37714 changed 2026-10-08Public domain