CVE-2026-56859

Add recursion depth guard during decode in encoding/xml

State
Published
Severity
7.5 High
Published
Aug 13, 2026
Updated
Aug 14, 2026
Reserved
Jun 23, 2026

Read the record on cve.org

Description

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

Scores

CVSSScoreVectorSource
3.17.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HCISA-ADP

Weaknesses

  • CWE-770 Allocation of Resources Without Limits or Throttling

Affected Products

ProductVersions
encoding/xmlGo standard library
  • before 1.25.13Affected
  • 1.26.0-0 to before 1.26.6Affected
  • 1.27.0-0 to before 1.27.0-rc.3Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.