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

Upgrade dgrijalva/jwt-go/v3 to v4 to fix Mend report vulnerabilities #1

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

shawnhankim
Copy link
Member

@shawnhankim shawnhankim commented Sep 3, 2024

Background

  • NIST 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.
  • Related MR for dgrijalva/jwt-go: Fix sec vuln with list of claims dgrijalva/jwt-go#426

Fix

  • Add go.mod
  • Upgrade dgrijalva/jwt-go/v3 to v4 to fix Mend report vulnerabilities

@shawnhankim shawnhankim merged commit b78e736 into master Sep 3, 2024
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 this pull request may close these issues.

1 participant