LowGO-2021-0060BIT-golang-2020-29509CVE-2020-29509GHSA-xhqq-x44f-9fgg

Authentication bypass in github.com/russellhaering/gosaml2

Published 14 Apr 2021 · Updated 4 Feb 2026

Is your project on an affected github.com/russellhaering/gosaml2?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected package

Affected
<0.6.0
Fixed in
0.6.0
Update to the fixed version for your release line, for example:go get github.com/russellhaering/gosaml2@v0.6.0

Details

Due to the behavior of encoding/xml, a crafted XML document may cause XML Digital Signature validation to be entirely bypassed, causing an unsigned document to appear signed.

Is GO-2021-0060 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected github.com/russellhaering/gosaml2, and gives you the command that fixes it.

More advisories for github.com/russellhaering/gosaml2

  • HighCVE-2026-128073gosaml2: Unauthenticated panic decrypting an EncryptedAssertion with a short or empty CipherValue · 19 Nov 2026
  • LowGO-2026-4760CBC Padding Panic — Unauthenticated Process Crash in github.com/russellhaering/gosaml2 · 27 Mar 2026
  • LowGO-2026-4764Unsigned SAML LogoutRequest Acceptance in gosaml2 in github.com/russellhaering/gosaml2 · 27 Mar 2026
  • HighGHSA-pcgw-qcv5-h8chUnsigned SAML LogoutRequest Acceptance in gosaml2 · 18 Mar 2026
  • HighGHSA-hwqm-qvj9-4jr2gosaml2 CBC Padding Panic — Unauthenticated Process Crash · 18 Mar 2026
  • LowCVE-2023-26483Denial of service via deflate decompression bomb in github.com/russellhaering/gosaml2 · 3 Mar 2023
All 12 advisories for github.com/russellhaering/gosaml2

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.