CVE-2026-28802: Authlib Vulnerability Allows Bypass of Signature Verification with alg: none

authlib Updated 04 Mar 2026

Summary

04/03/2026
Yes i
High
7.7

CVE-2026-28802: Authlib: Setting alg: none and a blank signature appears to bypass signature verification. Affects authlib versions >= 1.6.5, < 1.6.7. Fixed in 1.6.7. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Authlib is a popular Python library used for building OAuth and OpenID Connect clients and servers. It provides tools for handling JSON Web Tokens (JWTs), which are widely used for authentication and authorization in web applications. The library is designed to simplify the implementation of secure token-based authentication, but it has recently been found to have a significant vulnerability that could compromise its security.

Vulnerability Detail

The vulnerability arises from a flaw introduced in Authlib versions 1.6.0 and 1.6.5, where a JWT with the header 'alg: none' and an empty signature is incorrectly accepted during signature verification. This flaw allows attackers to create forged tokens that can bypass authentication checks, leading to potential unauthorized access, privilege escalation, and data modification. The issue was likely introduced in a specific commit, which altered the handling of JWT signatures without adequately addressing the security implications.

How To Fix

Minimum fixed version

1.6.7

This is the first release that contains the fix.

pip install --upgrade "authlib==1.6.7"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, applications using Authlib should implement a check to disallow the use of 'alg: none' in JWT headers. This can be done by validating the JWT headers before processing them. Here is an example code snippet to illustrate this check:

from authlib.jose import jwt

def validate_jwt_header(token):
    header = jwt.get_unverified_header(token)
    if header.get('alg') == 'none':
        raise ValueError('Invalid JWT: alg: none is not allowed')
    return True

Conclusion

The Authlib vulnerability (CVE-2026-28802) poses a serious risk to applications relying on JWTs for authentication. Users are strongly advised to update to the patched version 1.6.7 or later and implement additional checks to ensure the security of their applications.

See every vulnerability recorded for authlib →

Share this vulnerability

FAQ

The vulnerability can lead to authentication bypass, privilege escalation, and unauthorized access to sensitive data.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

Authlib versions 1.6.0 and 1.6.5 are affected. Users should upgrade to version 1.6.7 or later.

Implement a temporary workaround by validating JWT headers to disallow 'alg: none' until you can update the library.

The CVSS score of this vulnerability is 7.7, indicating a high severity level.

Related vulnerabilities

Recent vulnerabilities recorded for authlib.

How To Fix

Minimum fixed version

1.6.7

This is the first release that contains the fix.

pip install --upgrade "authlib==1.6.7"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback