Improper Verification of Cryptographic Signature Affecting authlib package, versions [,1.6.9)


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.55% (42nd 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-PYTHON-AUTHLIB-15674452
  • published17 Mar 2026
  • disclosed16 Mar 2026
  • creditPr00fOf3xpl0it, Jay Neiva

Introduced: 16 Mar 2026

CVE-2026-27962  (opens in a new tab)
CWE-347  (opens in a new tab)

How to fix?

Upgrade authlib to version 1.6.9 or higher.

Overview

authlib is a library in building OAuth and OpenID Connect servers.

Affected versions of this package are vulnerable to Improper Verification of Cryptographic Signature via the JsonWebSignature._prepare_algorithm_key() method in authlib/jose/rfc7515/jws.py. An attacker can bypass authentication and authorization by sending a JWT whose header contains an attacker-controlled jwk while the resolver returns None, causing the library to accept the forged token as valid and expose any embedded claims.

References

CVSS Base Scores

version 4.0
version 3.1