CVE-2020-26160Jwt-go Project Jwt-go
High 7.5 No auth needed
Follow: this CVE · Jwt-go Project · Jwt-go Project Jwt-go We alert you by email or Slack (account required).
- 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
- 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.
What to do
- Apply the vendor's security update for Jwt-go.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| jwt-go_project | jwt-go | ≤ 3.2.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- snyk.io Third Party Advisory