Skip to content

chore(deps): patch SAML and stdlib CVEs - #828

Merged
lakhansamani merged 1 commit into
mainfrom
chore/dependency-security-updates
Nov 8, 2026
Merged

lakhansamani merged 1 commit into
mainfrom
chore/dependency-security-updates

Conversation

@lakhansamani

@lakhansamani lakhansamani commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor
  • govulncheck reports 15 vulnerabilities that this code calls: 13 in the Go standard library and 2 in modules. This PR removes 14 of them. No source files change.
  • go.mod: add toolchain go1.26.10, and keep go 1.26.6. CI and release.yaml read the version from go.mod, and setup-go reads the toolchain directive first, so the build now uses a patched compiler. Do not change the go directive instead: that sets the language version, which changes how golangci-lint formats the code and makes the lint job fail.
  • crewjam/saml v0.5.1 to v0.6.2: v0.5.1 tags the SAML Subject.NameID field as xml:"NameID", which matches a <NameID> element in ANY namespace. A signed assertion can therefore carry a foreign-namespace <NameID> and set a different subject, and saml_sp.go uses that subject as the key for SAML JIT provisioning. Version 0.5.2 qualifies the tag with the SAML assertion namespace and closes this.
  • govulncheck continues to report GO-2026-6909 after the upgrade, and the report is correct. That advisory covers two defects. The upgrade fixes the NameID defect above. The second defect is a nil-pointer dereference of assertion.Issuer in validateAssertion, which is still present in v0.6.2. It needs an assertion that passes signature validation first, so it needs a hostile or faulty identity provider, and gin.Recovery() makes it a 500 response and not a crash.
  • klauspost/compress v1.18.7 to v1.20.3 removes a panic on two-block frames, which the MongoDB driver can reach. .github/dependabot.yml is new: weekly updates for Go modules, GitHub actions, the two npm applications, and the Docker base images. Database drivers are a separate group, because CI runs SQLite only, so run make test-all-db before you merge that group. Dependabot alerts were disabled for this repository and are now on.

crewjam/saml v0.5.1 lets a signed assertion spoof the <NameID> that JIT
provisioning keys on; Go 1.26.6 ships 13 reachable stdlib CVEs.
@lakhansamani
lakhansamani merged commit c2ad781 into main Nov 8, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant