Insufficient Documentation of Error Handling Techniques Affecting github.com/golang-jwt/jwt/v4 package, versions <4.5.1


Severity

Recommended
0.0
low
0
10

CVSS assessment made by Snyk's Security Team. Learn more

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 IDSNYK-GOLANG-GITHUBCOMGOLANGJWTJWTV4-8341242
  • published5 Nov 2024
  • disclosed4 Nov 2024
  • credityuligesec

Introduced: 4 Nov 2024

CVE-2024-51744  (opens in a new tab)
CWE-1118  (opens in a new tab)

How 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

References

CVSS Scores

version 4.0
version 3.1