Security mailing lists by PureSourceCode

CVE-2020-26160

HIGH 7.5CVSS 3.1

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

jwt-go before 4.0.0-preview1 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.

Published
30 Sep 2020
Last modified
10 Sep 2026
Assigned by
cve@mitre.org
NVD status
Modified
Weakness
CWE-287CWE-755
Also known as
GHSA-w73w-5m7g-f7qcGO-2020-0017SNYK-GOLANG-GITHUBCOMDGRIJALVAJWTGO-596515
Sources
NVDJSONOSV GHSA-w73w-5m7g-f7qcJSONOSV GO-2020-0017JSON

Scores

SourceScored byVersionScoreVector / decision
NVD cve@mitre.org (Secondary) CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
OSV GitHub CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 5.0 AV:N/AC:L/Au:N/C:P/I:N/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD jwt-go_project jwt-go
cpe:2.3:a:jwt-go_project:jwt-go:*:*:*:*:*:*:*:*
<= 3.2.0
OSV Go github.com/dgrijalva/jwt-go >= 0.0.0-20150717181359-44718f8a89b0, <= 3.2.0
OSV Go github.com/dgrijalva/jwt-go/v4 < 4.0.0-preview1 4.0.0-preview1
OSV Go github.com/dgrijalva/jwt-go >= 0.0.0-20150717181359-44718f8a89b0

References

History

  • 25 Nov 2026 20:32 UTC · NVD: first stored (published 30 Sep 2020)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 14 Apr 2021)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 18 May 2021)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.