CVE-2021-27918: Golang Go
High severity, CVSS 7.5. EPSS: 2.5% chance of exploitation in the next 30 days.
encoding/xml in Go before 1.15.9 and 1.16.x before 1.16.1 has an infinite loop if a custom TokenReader (for xml.NewTokenDecoder) returns EOF in the middle of an element. This can occur in the Decode, DecodeElement, or Skip method.
Affected products
- Golang Go: before 1.15.9 (fixed in 1.15.9); from 1.16.0, before 1.16.1 (fixed in 1.16.1)
Published 2021-03-11. Last modified 2026-06-17.