ADVISORIES

Go Vulnerability Database

GO-2026-6088

Add recursion depth guard during decode in encoding/xml

Details

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

Affected packages

EcosystemPackageAffected versions
Gostdlib
All versions before 1.25.13 (fixed in 1.25.13)
From 1.26.0-0 before 1.26.6 (fixed in 1.26.6)
From 1.27.0-0 before 1.27.0-rc.3 (fixed in 1.27.0-rc.3)

References