jsoup XmlTreeBuilder vulnerable to memory exhaustion through deeply nested namespace declarations

GHSA-65r4-943x-97jj
HIGH 8.7OSV

En bref

Source
OSV
Publiée
Mise à jour
CVE
CVE-2026-75140
CVSS_V3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS_V4
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Criticité de la CVE
HIGH 8.7 · CVE-2026-75140

Description

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.

Références

Paquets affectés

PaquetVersions
Maven · org.jsoup:jsoupintroduced 0, fixed 1.23.2

Sources

SourceLicence
OSV.devCC-BY 4.0 — GitHub Advisory Database