CVE-2026-56859 PUBLISHED

Add recursion depth guard during decode in encoding/xml

Assigner: Go
Reserved: 23.06.2026 Published: 13.08.2026 Updated: 14.08.2026

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

Product Status

Vendor Go standard library
Product encoding/xml
Versions Default: unaffected
  • affected from 0 to 1.25.13 (excl.)
  • affected from 1.26.0-0 to 1.26.6 (excl.)
  • affected from 1.27.0-0 to 1.27.0-rc.3 (excl.)

References

Problem Types

  • CWE-770: Allocation of Resources Without Limits or Throttling