CVE-2026-28490: Authlib Vulnerable to JWE RSA1_5 Bleichenbacher Padding Oracle

authlib Updated 16 Mar 2026

Summary

16/03/2026
Yes i
High
8.3

CVE-2026-28490: Authlib Vulnerable to JWE RSA1_5 Bleichenbacher Padding Oracle. Affects authlib versions < 1.6.9. Fixed in 1.6.9. 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 that provides various utilities for building web applications, including support for OAuth 1, OAuth 2, and JSON Web Tokens (JWT). It simplifies the process of handling authentication and authorization in web applications. However, a significant vulnerability has been identified in its implementation of JSON Web Encryption (JWE) using the RSA1_5 key management algorithm, which is registered by default without requiring explicit opt-in from developers.

Vulnerability Detail

The vulnerability arises from a cryptographic padding oracle issue in Authlib's handling of the JWE RSA1_5 algorithm. When invalid PKCS#1 v1.5 padding is detected, Authlib raises a specific ValueError instead of allowing the underlying cryptography library to handle it in a constant-time manner. This creates an exception oracle, allowing attackers to distinguish between different types of errors based on the responses from the server. The ramifications include the potential for attackers to exploit this oracle to recover the content of encrypted messages, leading to unauthorized access to sensitive information.

How To Fix

Minimum fixed version

1.6.9

This is the first release that contains the fix.

pip install --upgrade "authlib==1.6.9"

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

Workaround

As a temporary workaround, developers can remove the RSA1_5 algorithm from the default JWE algorithm registry in their applications. This can be done by explicitly configuring the JWE instance to use a more secure algorithm, such as RSA-OAEP, instead of RSA1_5. Here is an example of how to configure JWE to use RSA-OAEP:

from authlib.jose import JsonWebEncryption

jwe = JsonWebEncryption()
jwe.register_algorithm('RSA-OAEP')  # Register a secure algorithm

Conclusion

The vulnerability CVE-2026-28490 in Authlib poses a significant risk due to its cryptographic padding oracle issue. It is crucial for developers using Authlib to update to the patched version or implement the suggested workaround to protect their applications from potential exploitation.

See every vulnerability recorded for authlib →

Share this vulnerability

FAQ

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

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

If exploited, this vulnerability could allow attackers to decrypt sensitive information or forge valid JWE tokens, leading to unauthorized access.

Yes, a patch is available in version 1.6.9 of Authlib. It is recommended to update to this version to mitigate the vulnerability.

If immediate updating is not possible, consider implementing the workaround by removing the RSA1_5 algorithm from the default registry and using a more secure alternative.

Related vulnerabilities

Recent vulnerabilities recorded for authlib.

How To Fix

Minimum fixed version

1.6.9

This is the first release that contains the fix.

pip install --upgrade "authlib==1.6.9"

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