Live threats

All CVEs / Jwt-go Project

CVE-2020-26160Jwt-go Project Jwt-go

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
2.2%
probability of exploitation in 30 days · percentile 83
Auth required
No
Published
Sep 30, 2020
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-287, CWE-755
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Jwt-go.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/dgrijalva/jwt-go ≥ 0.0.0-20150717181359-44718f8a89b0 ≤ 3.2.0 no fixed version —
Go github.com/dgrijalva/jwt-go ≥ 0.0.0-20150717181359-44718f8a89b0 no fixed version —
Go github.com/dgrijalva/jwt-go/v4 < 4.0.0-preview1 4.0.0-preview1 go get github.com/dgrijalva/jwt-go/v4@v4.0.0-preview1
Go github.com/dgrijalva/jwt-go/v4 < 4.0.0-preview1 4.0.0-preview1 go get github.com/dgrijalva/jwt-go/v4@v4.0.0-preview1

Per OSV / GitHub Advisories (GHSA-w73w-5m7g-f7qc, GO-2020-0017). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
jwt-go_projectjwt-go≤ 3.2.0

Official sources

References

Links published by the sources. Open them with care.