Security mailing lists by PureSourceCode

GO-2026-6909

not scored yet

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

github.com/crewjam/saml before v0.5.2 contains two vulnerabilities in SAML assertion processing:

  1. 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.

  2. Subject uses the bare XML struct tag xml:"NameID", which matches <NameID> elements in any XML namespace. When a signed assertion omits and includes a <NameID> element in a foreign namespace inside , encoding/xml populates Subject.NameID from the foreign element, allowing an authenticated principal to spoof Subject.NameID.Value.

Published
5 Nov 2026
Last modified
23 Nov 2026
Sources
OSVJSON

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV Go github.com/crewjam/saml < 0.5.2 0.5.2

References

History

  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 5 Nov 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.