# CVE-2021-37714: Crafted input may cause the jsoup HTML and XML parser to get stuck, timeout, or throw unchecked exceptions

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 5.98% (percentile 94, 2026-11-26)
- **CWE:** CWE-835, CWE-248
- **Aliases:** GHSA-m72m-mhq2-9p6c
- **Published:** 2021-08-18T15:10:11.000Z
- **Modified:** 2026-10-08T21:17:38.687Z

## Who should check

- Projects that depend on Maven package org.jsoup:jsoup (\< 1.14.2)
- Anyone running jhy jsoup \< 1.14.2

## 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 and fixed versions

- Maven `org.jsoup:jsoup`: affected \< 1.14.2; fixed 1.14.2 (osv)
- jhy jsoup: \< 1.14.2 (cvelist)

## Mitigation

- Upgrade org.jsoup:jsoup to 1.14.2 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-37714. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-37714.md
Affected: org.jsoup:jsoup < 1.14.2
Fixed in: 1.14.2

Steps:
1. Search this machine and project for org.jsoup:jsoup (Maven), jhy jsoup: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-37714 being exploited?

There is no confirmed exploitation: CVE-2021-37714 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 5.98% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-37714?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2021-37714?

org.jsoup:jsoup \< 1.14.2.

### Is there a fix for CVE-2021-37714?

Yes. Fixed in 1.14.2. Upgrade org.jsoup:jsoup to 1.14.2 or later.

### How do I check if I'm affected by CVE-2021-37714?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/jhy/jsoup/security/advisories/GHSA-m72m-mhq2-9p6c>
- vendor: <https://jsoup.org/news/release-1.14.1>
- vendor: <https://jsoup.org/news/release-1.14.2>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2021-37714>
- patch: <https://www.oracle.com/security-alerts/cpujan2022.html>
- patch: <https://www.oracle.com/security-alerts/cpuapr2022.html>
- patch: <https://www.oracle.com/security-alerts/cpujul2022.html>
- other: <https://lists.apache.org/thread.html/r685c5235235ad0c26e86d0ee987fb802c9675de6081dbf0516464e0b%40%3Cnotifications.james.apache.org%3E>
- other: <https://lists.apache.org/thread.html/rc3354080fc67fb50b45b3c2d12dc4ca2a3c1c78dad3d3ba012c038aa%40%3Cnotifications.james.apache.org%3E>
- other: <https://lists.apache.org/thread.html/r97404676a5cf591988faedb887d64e278f522adcaa823d89ca69defe%40%3Cnotifications.james.apache.org%3E>
- other: <https://lists.apache.org/thread.html/r50e9c9466c592ca9d707a5dea549524d19e3287da08d8392f643960e%40%3Cissues.maven.apache.org%3E>
- other: <https://lists.apache.org/thread.html/r215009dbf7467a9f6506d0c0024cb36cad30071010e62c9352cfaaf0%40%3Cissues.maven.apache.org%3E>
- other: <https://lists.apache.org/thread.html/r3d71f18adb78e50f626dde689161ca63d3b7491bd9718fcddfaecba7%40%3Cissues.maven.apache.org%3E>
- other: <https://lists.apache.org/thread.html/r377b93d79817ce649e9e68b3456e6f499747ef1643fa987b342e082e%40%3Cissues.maven.apache.org%3E>
- other: <https://security.netapp.com/advisory/ntap-20220210-0022/>
- other: <https://github.com/jhy/jsoup>
- other: <https://lists.apache.org/thread.html/r215009dbf7467a9f6506d0c0024cb36cad30071010e62c9352cfaaf0@%3Cissues.maven.apache.org%3E>
- other: <https://lists.apache.org/thread.html/r377b93d79817ce649e9e68b3456e6f499747ef1643fa987b342e082e@%3Cissues.maven.apache.org%3E>
- other: <https://lists.apache.org/thread.html/r3d71f18adb78e50f626dde689161ca63d3b7491bd9718fcddfaecba7@%3Cissues.maven.apache.org%3E>
- other: <https://lists.apache.org/thread.html/r50e9c9466c592ca9d707a5dea549524d19e3287da08d8392f643960e@%3Cissues.maven.apache.org%3E>
- other: <https://lists.apache.org/thread.html/r685c5235235ad0c26e86d0ee987fb802c9675de6081dbf0516464e0b@%3Cnotifications.james.apache.org%3E>
- other: <https://lists.apache.org/thread.html/r97404676a5cf591988faedb887d64e278f522adcaa823d89ca69defe@%3Cnotifications.james.apache.org%3E>
- other: <https://lists.apache.org/thread.html/rc3354080fc67fb50b45b3c2d12dc4ca2a3c1c78dad3d3ba012c038aa@%3Cnotifications.james.apache.org%3E>
- other: <https://security.netapp.com/advisory/ntap-20220210-0022>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-37714>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-m72m-mhq2-9p6c> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2021-37714> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-37714>
