Improper Verification of Cryptographic Signature in authlib - #VU166314
Published: November 16, 2026
Vulnerability details
The vulnerability allows a remote attacker to impersonate OAuth clients and read or modify protected resources of users who approve authorization.
The vulnerability exists due to improper cryptographic signature verification in Authlib's OAuth 1.0 provider when accepting request-selected signature methods with empty client secrets, including for RSA-only clients. A remote attacker can use a public client_id with HMAC-SHA1 signatures keyed by "&" or PLAINTEXT signatures of "&", obtain user approval through an attacker-controlled callback, and append issued token secrets to "&" for subsequent requests to access protected resources.