CVE-2025-4144CWE-287

PKCE bypass via downgrade attack

Medium · published May 1, 2025

CVSS v4.0
5.3
EPSS
1%
Percentile
46.7
In the wild
Unconfirmed
What it is

⚠️ An attacker could easily skip a crucial security check in the OAuth implementation of the workers-oauth-provider! 🚨 Think of PKCE as a bouncer at a club who checks IDs to keep out troublemakers. If the bouncer decides to take a coffee break, anyone can stroll in without a check, making the club vulnerable to unwanted guests! This vulnerability allows attackers to bypass the PKCE protection, which means they can exploit OAuth flows without the necessary safeguards. While the severity is medium, the consequences can still lead to unauthorized access and data breaches if left unaddressed.

Put simply

Think of PKCE as a bouncer at a club who checks IDs to keep out troublemakers. If the bouncer decides to take a coffee break, anyone can stroll in without a check, making the club vulnerable to unwanted guests! The flaw in the workers-oauth-provider allows for the PKCE check to be skipped entirely, undermining this critical defense mechanism that is meant to secure authorization. Essentially, it’s an oversight in the implementation of OAuth 2.1, which mandates PKCE for better security.

What to do

This vulnerability allows attackers to bypass the PKCE protection, which means they can exploit OAuth flows without the necessary safeguards. While the severity is medium, the consequences can still lead to unauthorized access and data breaches if left unaddressed. To protect your application, patch to the latest version of the workers-oauth-provider immediately, as outlined in Pull Request #27. Review your OAuth implementations and ensure PKCE checks are properly enforced. Don't forget to monitor for any unusual activity post-update! You've got this! A quick update and some vigilance will keep your OAuth flows secure! 🛡️

The record
Technical detail
CVSS v4.0
5.3 · MEDIUM
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/U:Amber
EPSS
0.00574 · 46.7th percentile
Weakness
CWE-287 · Improper Authentication
Published
2025-05-01T00:50Z
EPSS history
Timeline
  • 01 MAY 00:50Z
    PKCE bypass via downgrade attack
    cvelistv5