GO-2026-6909

published 5 Nov 2026 · updated 5 Nov 2026

Nil-pointer panic in validateAssertion and namespace-blind Subject.NameID in github.com/crewjam/saml

5.0Medium

No exploitation in the wild has been reported. No fixed version is recorded.

github.com/crewjam/saml through v0.5.1 contains two vulnerabilities in SAML assertion processing: 1. ServiceProvider.validateAssertion dereferences assertion.Issuer without a nil check when ExpectedIDPEntityID is non-empty. A signed SAML assertion that omits the optional <saml:Issuer> element causes a nil-pointer dereference panic after signature verification. 2. Subject uses the bare XML struct tag xml:"NameID", which matches <NameID> elements in any XML namespace. When a signed assertion omits <saml:NameID> and includes a <NameID> element in a foreign namespace inside <saml:Subject>, encoding/xml populates Subject.NameID from the foreign element, allowing an authenticated principal to spoof Subject.NameID.Value.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
go: github.com/crewjam/saml

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

GO-2026-6909 severity on Zeptric[![GO-2026-6909](https://zeptric.io/badge/cve/GO-2026-6909.svg)](https://zeptric.io/cve/GO-2026-6909)