{"id":"GO-2026-6909","aliases":["GO-2026-6909"],"related":[],"kind":"vulnerability","state":"published","title":"Nil-pointer panic in validateAssertion and namespace-blind Subject.NameID in github.com/crewjam/saml","summary":"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.","summaryFormat":"markdown","summarySource":"go","descriptions":[{"lang":"en","text":"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.","format":"markdown","source":"go"}],"published":"2026-11-05T22:55:15.000Z","modified":"2026-11-23T20:30:11.377Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.5.2"}],"ecosystem":"Go","package":"github.com/crewjam/saml","purl":"pkg:golang/github.com/crewjam/saml","source":"go"}],"references":[{"url":"https://github.com/crewjam/saml/commit/2a4c1a630a7d53ff99a1fa2216308d6cef61ad78","tags":["fix"],"sources":["go"]},{"url":"https://github.com/crewjam/saml/commit/e05a6f148c4eda7b5f6b3b2737085cf72b680456","tags":["fix"],"sources":["go"]},{"url":"https://github.com/golang/vulndb/issues/6909","tags":["report"],"sources":["go"]}],"credits":["Andrei Beshkov (aibeshkov)"],"sources":[{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-6909","url":"https://pkg.go.dev/vuln/GO-2026-6909","licence":"CC-BY-4.0","modified":"2026-11-23T20:30:11.377Z"}],"updatedAt":"2026-11-25T22:56:25.587Z"}