{"schema_version":"1.9.2","id":"GO-2026-6909","published":"2026-11-05T22:55:15Z","modified":"2026-11-23T20:30:11.377140677Z","summary":"Nil-pointer panic in validateAssertion and namespace-blind Subject.NameID in github.com/crewjam/saml","details":"github.com/crewjam/saml before v0.5.2 contains two vulnerabilities in SAML assertion processing:\n\n1. ServiceProvider.validateAssertion dereferences assertion.Subject, assertion.Conditions, and SubjectConfirmationData without nil checks. A signed SAML assertion that omits any of these optional elements causes a nil-pointer dereference panic after signature verification.\n\n2. 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":[{"package":{"name":"github.com/crewjam/saml","ecosystem":"Go","purl":"pkg:golang/github.com/crewjam/saml"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.5.2"}]}],"ecosystem_specific":{"imports":[{"path":"github.com/crewjam/saml","symbols":["ServiceProvider.ParseResponse","ServiceProvider.ParseXMLArtifactResponse","ServiceProvider.ParseXMLResponse","ServiceProvider.validateAssertion"]}]},"database_specific":{"source":"https://vuln.go.dev/ID/GO-2026-6909.json"}}],"references":[{"type":"FIX","url":"https://github.com/crewjam/saml/commit/2a4c1a630a7d53ff99a1fa2216308d6cef61ad78"},{"type":"FIX","url":"https://github.com/crewjam/saml/commit/e05a6f148c4eda7b5f6b3b2737085cf72b680456"},{"type":"REPORT","url":"https://github.com/golang/vulndb/issues/6909"}],"database_specific":{"review_status":"REVIEWED","url":"https://pkg.go.dev/vuln/GO-2026-6909"},"credits":[{"name":"Andrei Beshkov (aibeshkov)"}]}