Loop with Unreachable Exit Condition ('Infinite Loop') Affecting jsoup package, versions <1.14.2-1


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
6.87% (94th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ECHOLATEST-JSOUP-18579029
  • published7 Aug 2026
  • disclosed18 Aug 2021

Introduced: 18 Aug 2021

CVE-2021-37714  (opens in a new tab)
CWE-835  (opens in a new tab)

How to fix?

Upgrade Echo:latest jsoup to version 1.14.2-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream jsoup package and not the jsoup package as distributed by Echo. See How to fix? for Echo:latest relevant fixed versions and status.

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.

References

CVSS Base Scores

version 3.1