Go encoding/xml <1.25.13 DecodeElement stack exhaustion
CVE-2026-56859 Published on August 13, 2026
Add recursion depth guard during decode in encoding/xml
Previously, DecodeElement would reset the depth counter causing it to never fire; this could lead to stack exhaustion.
Vulnerability Analysis
CVE-2026-56859 can be exploited with network access, and does not require authorization privileges or user interaction. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to have no impact on confidentiality and integrity, and a high impact on availability.
Weakness Type
Allocation of Resources Without Limits or Throttling
The software allocates a reusable resource or group of resources on behalf of an actor without imposing any restrictions on the size or number of resources that can be allocated, in violation of the intended security policy for that actor.
Affected Versions
Go standard library encoding/xml:- Before 1.25.13 is affected.
- Version 1.26.0-0 and below 1.26.6 is affected.
- Version 1.27.0-0 and below 1.27.0-rc.3 is affected.