Insufficient Documentation of Error Handling Techniques Affecting github.com/golang-jwt/jwt/v4 package, versions <4.5.1
Threat Intelligence
EPSS
0.04% (11th
percentile)
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-GOLANG-GITHUBCOMGOLANGJWTJWTV4-8341242
- published 5 Nov 2024
- disclosed 4 Nov 2024
- credit yuligesec
Introduced: 4 Nov 2024
New CVE-2024-51744 Open this link in a new tabHow to fix?
Upgrade github.com/golang-jwt/jwt/v4
to version 4.5.1 or higher.
Overview
Affected versions of this package are vulnerable to Insufficient Documentation of Error Handling Techniques in the ParseWithClaims
function. An attacker can exploit this to accept invalid tokens by only checking for specific errors and ignoring others.
Workaround
Users who are not able to upgrade to the fixed version should make sure that they are properly checking for all errors, see example_test.go