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

Security issue with github.com/dgrijalva/jwt-go #58

Closed
ghost opened this issue Jan 3, 2022 · 3 comments
Closed

Security issue with github.com/dgrijalva/jwt-go #58

ghost opened this issue Jan 3, 2022 · 3 comments

Comments

@ghost
Copy link

ghost commented Jan 3, 2022

Hi,
When using this package in my code, I receive the following Dependabot alert from GitHub:

CVE-2020-26160

high severity
Vulnerable versions: <= 3.2.0
Patched version: No fix
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

--
Is it possible to migrate/upgrade to golang-jwt so that we can fix this vulnerability?

Kind regards,
Ryan Bastic

@ghost
Copy link
Author

ghost commented Jan 3, 2022

I might be misunderstanding things and it looks like there is a patched version mentioned here: dgrijalva/jwt-go#463

@haines
Copy link
Contributor

haines commented Jan 25, 2022

@rbastic this was already fixed, but you have to upgrade to v2.0.3 or later (which means changing the import to github.com/bradleyfalzon/ghinstallation/v2)

@ghost
Copy link
Author

ghost commented Mar 16, 2022

Thanks!

@ghost ghost closed this as completed Mar 16, 2022
This issue was closed.
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

No branches or pull requests

1 participant