Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jwt-go needs to uplift to 4.0.0-prview1 or later to fix some security issue #3361

Closed
zmaxyan opened this issue Feb 8, 2021 · 2 comments
Closed

Comments

@zmaxyan
Copy link

zmaxyan commented Feb 8, 2021

From CVE-2020-26160:
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.

@brackendawson
Copy link
Contributor

brackendawson commented Jul 20, 2021

The dependency is now maintained at github.com/golang-jwt/jwt and v3.2.1 contains the fix. I think we should add this to the 2.7.2 milestone.

@milosgajdos
Copy link
Member

Closing this as it should be fixed by #3138

Feel free to reopen if you disagree. 2.7.x fix is tracked under #3465

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants