Advisory

GO-2020-0017

Also known as: CVE-2020-26160, GHSA-w73w-5m7g-f7qc, SNYK-GOLANG-GITHUBCOMDGRIJALVAJWTGO-596515

Summary

Authorization bypass in github.com/dgrijalva/jwt-go

Details

If a JWT contains an audience claim with an array of strings, rather than a single string, and MapClaims.VerifyAudience is called with req set to false, then audience verification will be bypassed, allowing an invalid set of audiences to be provided.

Severity

Not rated by the source.

Dates

Published
2021-04-14 20:04 UTC
Modified
2026-07-08 06:49 UTC

Affected packages and fixes

github.com/dgrijalva/jwt-go

Go · All systems

Affected

  • introduced 0.0.0-20150717181359-44718f8a89b0 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

github.com/dgrijalva/jwt-go/v4

Go · All systems

Affected

  • introduced 0, fixed 4.0.0-preview1 (semver)

Fixed versions

4.0.0-preview1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences