CVE-2020-26160
HIGH 7.5CVSS 3.1Authorization 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
| Source | Scored by | Version | Score | Vector / 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
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | jwt-go_project | jwt-gocpe: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
- https://github.com/dgrijalva/jwt-go/pull/426 · Patch, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMDGRIJALVAJWTGO-596515 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2020-26160 · ADVISORY
- https://github.com/dgrijalva/jwt-go/issues/422 · WEB
- https://github.com/dgrijalva/jwt-go/issues/462 · WEB
- https://github.com/dgrijalva/jwt-go/commit/ec0a89a131e3e8567adcb21254a5cd20a70ea4ab · WEB, FIX
- https://github.com/dgrijalva/jwt-go · PACKAGE
- https://pkg.go.dev/vuln/GO-2020-0017 · WEB
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)