What’s Vulnerable › Vulnerabilities

CVE-2026-56859: Add recursion depth guard during decode in encoding/xml

Description

Previously, DecodeElement would reset the depth counter causing it to never fire; this could lead to stack exhaustion.

Affected products

How to fix

Upgrade to a fixed version: Go Stdlib 1.25.13, 1.26.6, 1.27.0-rc.3; Go standard library encoding/xml 1.25.13, 1.26.6, 1.27.0-rc.3. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-56859 or the next vulnerability affects your stack