CVE-2020-26160
Authorization bypass in github.com/dgrijalva/jwt-go
Reported by mitre · Published September 30, 2020
github.com/dgrijalva/jwt-go/v4 is fixed in 4.0.0-preview1 and 4.0.0-preiew1 (Go Modules)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| github.com/dgrijalva/jwt-go/v4 | Go Modules | 4.0.0-preview1, 4.0.0-preiew1 |
| github.com/dgrijalva/jwt-go | Go Modules | v3.2.0, 3.2.0 |
| docker-credential-acr-env-fips | Chainguard | 0.7.0-r16 |
| dgraph | Wolfi | 24.0.0-r0 |
| docker-credential-acr-env | Wolfi | 0.7.0-r26 |
| gitea | Alpine | 1.14.6-r0 |
| gitness | Wolfi | 3.0.0_beta5-r0 |
| gitness | Chainguard | 3.0.0_beta5-r0 |
| docker-credential-acr-env | Chainguard | 0.7.0-r26 |
| dgraph | Chainguard | 24.0.0-r0 |
| jwt-go | jwt-go_project | 3.2.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| chainguard | docker-credential-acr-env-fips | 0 |
| chainguard | harbor-fips-2.14 | * |
| wolfi | dgraph | 0 |
| wolfi | docker-credential-acr-env | 0 |
| github.com | dgrijalva/jwt-go/v4 | 0 |
| alpine | gitea | 0 |
| github.com | dgrijalva/jwt-go | 0 |
| wolfi | gitness | 0 |
| chainguard | gitness | 0 |
| chainguard | docker-credential-acr-env | 0 |
| chainguard | harbor-2.14 | * |
| chainguard | dgraph | 0 |
| n/a | n/a | * |
Timeline
- Sep 30, 2020 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Mar 17, 2026 Security Advisory
- Sep 1, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2020-26160
vulnetix vdb fixes CVE-2020-26160
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2020-26160/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2020-26160 advisory
- https://github.com/dgrijalva/jwt-go/issues/422 url
- https://github.com/dgrijalva/jwt-go/issues/462 url
- https://github.com/dgrijalva/jwt-go/commit/ec0a89a131e3e8567adcb21254a5cd20a70ea4ab patch
- https://pkg.go.dev/vuln/GO-2020-0017 url
- https://github.com/advisories/GHSA-w73w-5m7g-f7qc advisory