{"id":"GHSA-w73w-5m7g-f7qc","revision":"c9f1bd19bfef466190d00093c44f51be","records":[{"revision":"c9f1bd19bfef466190d00093c44f51be","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-w73w-5m7g-f7qc","aliases":["CVE-2020-26160","GO-2020-0017","SNYK-GOLANG-GITHUBCOMDGRIJALVAJWTGO-596515"],"title":"Authorization bypass in github.com/dgrijalva/jwt-go","description":"jwt-go allows attackers to bypass intended access restrictions in situations with `[]string{}` for `m[\"aud\"]` (which is allowed by the specification). Because the type assertion fails, \"\" is the value of aud. This is a security problem if the JWT token is presented to a service that lacks its own audience check. There is no patch available and users of jwt-go are advised to migrate to [golang-jwt](https://github.com/golang-jwt/jwt) at version 3.2.1","state":0,"publishedAt":"2021-05-18T21:08:21+00:00","modifiedAt":"2026-09-10T03:49:05.2933951+00:00","affected":[{"ecosystem":"Go","name":"github.com/dgrijalva/jwt-go","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.0.0-20150717181359-44718f8a89b0"},{"kind":"last_affected","version":"3.2.0"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/dgrijalva/jwt-go/v4","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"4.0.0-preview1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://nvd.nist.gov/vuln/detail/CVE-2020-26160","https://github.com/dgrijalva/jwt-go/issues/422","https://github.com/dgrijalva/jwt-go/issues/462","https://github.com/dgrijalva/jwt-go/pull/426","https://github.com/dgrijalva/jwt-go/commit/ec0a89a131e3e8567adcb21254a5cd20a70ea4ab","https://github.com/dgrijalva/jwt-go","https://pkg.go.dev/vuln/GO-2020-0017","https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMDGRIJALVAJWTGO-596515"],"sourceUrl":"https://github.com/advisories/GHSA-w73w-5m7g-f7qc","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-w73w-5m7g-f7qc","identifiers":["GHSA-w73w-5m7g-f7qc","CVE-2020-26160","GO-2020-0017","SNYK-GOLANG-GITHUBCOMDGRIJALVAJWTGO-596515"]},"retained":false,"historicalAffected":[]}],"coverage":[]}