VDB

CVE-2020-26160

CVE-2020-26160 PUBLISHED CVSS 7.5 HIGH

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.

PackageEcosystemFixed in
github.com/dgrijalva/jwt-go/v4Go Modules4.0.0-preview1, 4.0.0-preiew1
github.com/dgrijalva/jwt-goGo Modulesv3.2.0, 3.2.0
docker-credential-acr-env-fipsChainguard0.7.0-r16
dgraphWolfi24.0.0-r0
docker-credential-acr-envWolfi0.7.0-r26
giteaAlpine1.14.6-r0
gitnessWolfi3.0.0_beta5-r0
gitnessChainguard3.0.0_beta5-r0
docker-credential-acr-envChainguard0.7.0-r26
dgraphChainguard24.0.0-r0
jwt-gojwt-go_project3.2.0

Risk scores

CVSS 3.1
7.5
CVSS:3.1/AC:L/AV:N/A:N/C:H/I:N/PR:N/S:U/UI:N

Affected products

VendorProductVersions
n/an/an/a
chainguarddocker-credential-acr-env-fips0
chainguardharbor-fips-2.14*
wolfidgraph0
wolfidocker-credential-acr-env0
github.comdgrijalva/jwt-go/v40
alpinegitea0
github.comdgrijalva/jwt-go0
wolfigitness0
chainguardgitness0
chainguarddocker-credential-acr-env0
chainguardharbor-2.14*
chainguarddgraph0
n/an/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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›