CVE-2025-59420

7.5

Authlib · Authlib

Authlib versions prior to 1.6.4 fail to properly verify JWS critical header parameters, allowing potentially malicious tokens to bypass security checks.

Executive summary

A vulnerability in the Authlib library allows unauthenticated attackers to bypass token verification, potentially leading to unauthorized privilege escalation or policy violations.

Vulnerability

The library incorrectly handles critical header parameters (crit) in JWS tokens, violating RFC 7515 requirements. An unauthenticated attacker can craft tokens with unknown critical headers that Authlib accepts, enabling inconsistent verification states across multi-language environments.

Business impact

Successful exploitation allows an attacker to bypass critical security policies, which could result in privilege escalation or unauthorized access to sensitive resources. Given the CVSS score of 7.5, this high-severity flaw poses a significant risk to the integrity of authentication and authorization workflows, particularly in distributed systems where mixed-language fleets are deployed.

Remediation

Immediate Action: Update the Authlib package to version 1.6.4 or later immediately to enforce strict JWS header verification.

Proactive Monitoring: Review application logs for suspicious authentication patterns or tokens containing unusual or non-standard critical header parameters.

Compensating Controls: If immediate patching is not feasible, implement secondary validation logic at the application layer to inspect token headers and reject those containing unrecognized critical parameters.

Exploitation status

Public Exploit Available: No (exploit_available: unknown)

Analyst recommendation

This vulnerability represents a critical failure in the cryptographic verification process of the Authlib library. Security teams must prioritize upgrading to version 1.6.4 to ensure compliance with JWS standards and prevent potential token-based attacks. Failure to remediate this issue leaves authentication infrastructure exposed to manipulation, making immediate patching the only reliable course of action.

More Authlib CVEs

History

  1. Disclosed CVE record published
  2. Published in the daily brief high section
  3. Published in the daily brief high section
  4. Analyst report written
  5. Fix documented version 1.6.4 per OSV.dev

Sources