CVE-2022-28131 · Go
Stack exhaustion from deeply nested XML documents in encoding/xml
Uncontrolled recursion in Decoder.Skip in encoding/xml before Go 1.17.12 and Go 1.18.4 allows an attacker to cause a panic due to stack exhaustion via a deeply nested XML document.
Published 2022-08-10, last changed 2026-06-17. Weakness: CWE-674.
How to fix
Upgrade to a fixed version: stdlib 1.17.12, 1.18.4 (Go) (each is the fix for its own release line). For the version that clears every advisory for your installed version, ask an agent for get_remediation.
Timeline
| 2022-07-20 | Package advisory GO-2022-0521 |
| 2022-08-10 | Published |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 1.59% |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GO-2022-0521 | stdlib (Go) | 1.17.12, 1.18.4 |
Also known as: GO-2022-0521
Credited: Go Security Team (other), Juho Nurminen of Mattermost (other)
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2026-97054 | 2026-11-11 | 5.9 | HTTP/1 server crash due to MaxBytesReader header race in net/http |
| CVE-2026-111943 | 2026-10-21 | 6.8 | Distrust compromised intermediate certificates in crypto/x509 |
| CVE-2026-97032 | 2026-10-08 | 7.5 | HTTP/2 server crash due to HPACK encoder race in net/http |
| CVE-2026-97031 | 2026-10-08 | 7.5 | Reject malformed ECH outer extension references in crypto/tls |
| CVE-2026-97030 | 2026-10-08 | 6.1 | Recognize yield as regexp preceder keyword in html/template |
| CVE-2026-94448 | 2026-10-08 | 6.1 | Reset context tracking on consecutive template expressions in html/template |
| CVE-2026-94440 | 2026-10-08 | 7.5 | Memory limit bypass when parsing MIME headers in net/textproto, mime/multipart |
| CVE-2026-94439 | 2026-10-08 | 7.5 | HTTP/1 server connection desynchronization after 2xx CONNECT response in net/http |
Add it to your agent
One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.
claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp
Then ask for triage_cve CVE-2022-28131, or call /api/v1/vulnerabilities/CVE-2022-28131. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.