# GO-2026-6909: Nil-pointer panic in validateAssertion and namespace-blind Subject.NameID in github.com/crewjam/saml

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-11-05T22:55:15.000Z
- Modified: 2026-11-23T20:30:11.377Z

## Description

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

(As written by Go Vulnerability Database.)

## Affected

- github.com/crewjam/saml (Go): before 0.5.2

## References

- <https://github.com/crewjam/saml/commit/2a4c1a630a7d53ff99a1fa2216308d6cef61ad78> (fix)
- <https://github.com/crewjam/saml/commit/e05a6f148c4eda7b5f6b3b2737085cf72b680456> (fix)
- <https://github.com/golang/vulndb/issues/6909> (report)

## Sources

- Go Vulnerability Database: [GO-2026-6909](https://pkg.go.dev/vuln/GO-2026-6909), CC-BY-4.0, modified 2026-11-23

---

Page: https://cve.day/GO-2026-6909 · Whole record: https://cve.day/GO-2026-6909.json · Rebuilt by cve.day 2026-11-25T22:56:25.587Z
