GHSA-65r4-943x-97jj: Maven/org.jsoup:jsoup vulnerability
jsoup through 1.23.2, fixed in commit 862ba2f, contains an uncontrolled resource consumption vulnerability in XmlTreeBuilder that allows remote attackers to exhaust JVM heap memory by supplying a deeply nested XML document with uniquely-namespaced elements. The builder copies the entire inherited namespace map on every start element, causing quadratic time and memory complexity, which attackers can exploit to trigger an OutOfMemoryError and terminate the application.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
maven/org.jsoup:jsoupto a version that resolves this vulnerability.Fixed in 1.23.2 - Upgrade
Upgrade
jsoupto a version that resolves this vulnerability.Patch 862ba2f