High severity · published Aug 13, 2026
CVE-2026-56859
Add recursion depth guard during decode in encoding/xml
7.5
CVSS
0.6%
EPSS
No
On KEV
Description
Previously, DecodeElement would reset the depth counter causing it to never fire; this could lead to stack exhaustion.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
None
Integrity
None
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.6% · higher than 47% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
EN
encoding/xml · Go standard library
before 1.25.13; 1.26.0-0 before 1.26.6; 1.27.0-0 before 1.27.0-rc.3 · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-56859
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-56859
go.dev
https://go.dev/cl/803320
go.dev
https://go.dev/issue/80481
groups.google.com
https://groups.google.com/g/golang-announce/c/94pEornpRlI
pkg.go.dev
https://pkg.go.dev/vuln/GO-2026-6088
More from encoding/xml
7.5
CVE-2022-30633
Stack exhaustion when unmarshaling certain documents in encoding/xml
7.5
CVE-2022-28131
Stack exhaustion from deeply nested XML documents in encoding/xml
