{"id":"CVE-2026-56859","revision":"4d1c07290f9346a5a693d38818d06866","records":[{"revision":"4d1c07290f9346a5a693d38818d06866","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-56859","aliases":[],"title":"Add recursion depth guard during decode in encoding/xml","description":"Previously, DecodeElement would reset the depth counter causing it to never fire; this could lead to stack exhaustion.","state":0,"publishedAt":"2026-08-13T21:58:52.959+00:00","modifiedAt":"2026-08-14T15:21:46.218+00:00","affected":[{"ecosystem":"https://pkg.go.dev","name":"encoding/xml","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"Go standard library\",\n                    \"product\": \"encoding/xml\",\n                    \"collectionURL\": \"https://pkg.go.dev\",\n                    \"packageName\": \"encoding/xml\",\n                    \"versions\": [\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"1.25.13\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"1.26.0-0\",\n                            \"lessThan\": \"1.26.6\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"1.27.0-0\",\n                            \"lessThan\": \"1.27.0-rc.3\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"semver\"\n                        }\n                    ],\n                    \"programRoutines\": [\n                        {\n                            \"name\": \"Decoder.push\"\n                        },\n                        {\n                            \"name\": \"Decoder.pop\"\n                        },\n                        {\n                            \"name\": \"Decoder.RawToken\"\n                        },\n                        {\n                            \"name\": \"Decoder.unmarshalPath\"\n                        },\n                        {\n                            \"name\": \"Decoder.unmarshal\"\n                        },\n                        {\n                            \"name\": \"Decoder.Decode\"\n                        },\n                        {\n                            \"name\": \"Decoder.DecodeElement\"\n                        },\n                        {\n                            \"name\": \"Decoder.Skip\"\n                        },\n                        {\n                            \"name\": \"Decoder.Token\"\n                        },\n                        {\n                            \"name\": \"Unmarshal\"\n                        }\n                    ],\n                    \"defaultStatus\": \"unaffected\"\n                }"}],"metrics":[],"references":["https://go.dev/issue/80481","https://go.dev/cl/803320","https://groups.google.com/g/golang-announce/c/94pEornpRlI","https://pkg.go.dev/vuln/GO-2026-6088"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-56859","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-56859","identifiers":["CVE-2026-56859"]},"retained":false,"historicalAffected":[]}],"coverage":[]}