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 #64

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

shawnhankim
Copy link

@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
  • Fix fields' format of jwt.StandardClaims after upgrading dgrijalva/jwt-go

shawnhankim and others added 3 commits September 3, 2024 14:24
Upgrade dgrijalva/jwt-go/v3 to v4 to fix Mend report vulnerabilities
- Corrected fields' format of jwt.StandardClaims after upgrading dgrijalva/jwt-go
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