# CVE-2020-26160: Authorization bypass in github.com/dgrijalva/jwt-go

- Severity: High 7.5 (CVSS:3.1, scored by mitre) `CVSS:3.1/AC:L/AV:N/A:N/C:H/I:N/PR:N/S:U/UI:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.16%, higher than 82% of CVEs (2026-12-01)
- Published: 2020-09-30T12:57:10.000Z
- Modified: 2026-09-10T03:49:05.293Z
- Also known as: GHSA-w73w-5m7g-f7qc, GO-2020-0017, SNYK-GOLANG-GITHUBCOMDGRIJALVAJWTGO-596515
- Related: CGA-hv4q-5g38-wjr8
- Weaknesses: CWE-287, CWE-755
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- github.com/dgrijalva/jwt-go (Go): from 0.0.0-20150717181359-44718f8a89b0 up to 3.2.0; from 0.0.0-20150717181359-44718f8a89b0
- github.com/dgrijalva/jwt-go/v4 (Go): before 4.0.0-preview1
- jwt-go_project jwt-go: up to 3.2.0

## Every score

- mitre: CVSS:3.1 7.5 High `CVSS:3.1/AC:L/AV:N/A:N/C:H/I:N/PR:N/S:U/UI:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:P/I:N/A:N`

## 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> (fix, web)
- <https://github.com/dgrijalva/jwt-go> (package)
- <https://pkg.go.dev/vuln/GO-2020-0017> (web)

## Sources

- CVE List: [CVE-2020-26160](https://www.cve.org/CVERecord?id=CVE-2020-26160), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-w73w-5m7g-f7qc](https://github.com/advisories/GHSA-w73w-5m7g-f7qc), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2020-0017](https://pkg.go.dev/vuln/GO-2020-0017), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2020-26160](https://nvd.nist.gov/vuln/detail/CVE-2020-26160), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-26160 · Whole record: https://cve.day/CVE-2020-26160.json · Rebuilt by cve.day 2026-11-25T22:57:54.990Z
