Insufficient Documentation of Error Handling Techniques Affecting github.com/golang-jwt/jwt package, versions >=0.0.0


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-GITHUBCOMGOLANGJWTJWT-8341243
  • published5 Nov 2024
  • disclosed4 Nov 2024
  • credityuligesec

Introduced: 4 Nov 2024

NewCVE-2024-51744  (opens in a new tab)
CWE-1118  (opens in a new tab)
First added by Snyk

How to fix?

A fix was pushed into the master branch but not yet published.

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