GHSA-w73w-5m7g-f7qc

Suggest an improvement
Source
https://github.com/advisories/GHSA-w73w-5m7g-f7qc
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/05/GHSA-w73w-5m7g-f7qc/GHSA-w73w-5m7g-f7qc.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-w73w-5m7g-f7qc
Aliases
Related
Published
2021-05-18T21:08:21Z
Modified
2024-08-01T08:56:46.468227Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
Summary
Authorization bypass in github.com/dgrijalva/jwt-go
Details

jwt-go 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. There is no patch available and users of jwt-go are advised to migrate to golang-jwt at version 3.2.1

References

Affected packages

Go / github.com/dgrijalva/jwt-go

Package

Name
github.com/dgrijalva/jwt-go
View open source insights on deps.dev
Purl
pkg:golang/github.com/dgrijalva/jwt-go

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-20150717181359-44718f8a89b0
Last affected
3.2.0

Go / github.com/dgrijalva/jwt-go/v4

Package

Name
github.com/dgrijalva/jwt-go/v4
View open source insights on deps.dev
Purl
pkg:golang/github.com/dgrijalva/jwt-go/v4

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
4.0.0-preview1