Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-4143

CVE-2025-4143: Cloudflare Workers OAuth Auth Bypass Flaw

CVE-2025-4143 is an authentication bypass flaw in Cloudflare workers-oauth-provider that fails to validate redirect URIs, allowing attackers to steal victim credentials and impersonate users. This post covers technical details, affected versions, impact, and mitigation strategies.

Updated: January 22, 2026

CVE-2025-4143 Overview

CVE-2025-4143 is an Open Redirect vulnerability (CWE-601) in Cloudflare's workers-oauth-provider library, which is part of the Model Context Protocol (MCP) framework. The OAuth implementation failed to correctly validate that the redirect_uri parameter was on the allowed list of redirect URIs for the given client registration during the authorization flow.

Critical Impact

An attacker could potentially steal a victim's OAuth credentials and subsequently impersonate them by exploiting the missing redirect URI validation during the authorization phase.

Affected Products

  • Cloudflare workers-oauth-provider version 0.0.5
  • Applications built on workers-oauth-provider that implement automatic re-authorization logic
  • Servers using the MCP framework with workers-oauth-provider OAuth implementation

Discovery Timeline

  • May 1, 2025 - CVE-2025-4143 published to NVD
  • May 12, 2025 - Last updated in NVD database

Technical Details for CVE-2025-4143

Vulnerability Analysis

This vulnerability represents a fundamental OAuth security implementation oversight. The workers-oauth-provider library is designed to provide OAuth server functionality for Cloudflare Workers applications. OAuth servers must validate redirect URIs at two critical points: during the authorization flow when the user grants permission, and when exchanging the authorization code for an access token.

The library correctly implemented the redirect URI validation during the token exchange phase but failed to implement the more critical check during the initial authorization flow. This oversight allows an attacker to specify an arbitrary redirect URI during authorization, potentially capturing the authorization code or tokens.

For exploitation to succeed, the target OAuth server must be configured to auto-approve authorizations for OAuth clients that the victim has previously authorized. While this auto-approval behavior is not implemented by workers-oauth-provider itself, it is a common pattern in many OAuth implementations to improve user experience.

Root Cause

The root cause is the missing validation of the redirect_uri parameter against the client's registered allowed redirect URIs during the authorization phase. While the RFC 6749 OAuth 2.0 specification clearly mandates this check, the implementation only performed this validation during the subsequent token exchange step, which occurs too late to prevent the attack.

The vulnerability is classified under CWE-601 (URL Redirection to Untrusted Site, also known as Open Redirect), as it allows attackers to redirect OAuth authorization responses to arbitrary attacker-controlled endpoints.

Attack Vector

The attack operates over the network and requires user interaction. An attacker must first identify a victim who has previously authorized an OAuth client on a server built with workers-oauth-provider. The attacker then crafts a malicious authorization URL with a redirect_uri pointing to an attacker-controlled endpoint.

When the victim clicks the malicious link, the OAuth server processes the authorization request. If the server implements auto-approval for previously authorized clients, it will redirect the authorization code or token to the attacker's specified URI without prompting the user. The attacker can then use the captured credentials to impersonate the victim.

The attack requires specific conditions to be met: the victim must have prior authorization with the OAuth server, and the server must implement automatic re-authorization for returning users.

Detection Methods for CVE-2025-4143

Indicators of Compromise

  • Unexpected OAuth authorization requests with redirect URIs pointing to external or unknown domains
  • Authorization code or token leakage to domains not in the registered client's allowed redirect URI list
  • Unusual patterns of OAuth re-authorization flows without corresponding user interaction
  • Authentication sessions initiated from unexpected IP addresses or locations following OAuth flows

Detection Strategies

  • Monitor OAuth authorization endpoints for requests containing redirect URIs that do not match registered client configurations
  • Implement logging of all redirect URI values submitted during authorization flows
  • Alert on authorization requests where the redirect URI domain differs from known legitimate client domains
  • Review OAuth server logs for patterns of authorization flows that bypass user consent screens

Monitoring Recommendations

  • Enable comprehensive logging for all OAuth authorization and token exchange endpoints
  • Implement real-time alerting for OAuth flows with mismatched redirect URIs
  • Monitor for sudden increases in OAuth authorization requests that may indicate exploitation attempts
  • Track and baseline normal OAuth flow patterns to identify anomalous authorization activities

How to Mitigate CVE-2025-4143

Immediate Actions Required

  • Update workers-oauth-provider to the patched version immediately
  • Review OAuth server implementations for any instances of automatic re-authorization logic
  • Audit authorization logs for any suspicious redirect URI patterns
  • Consider temporarily disabling auto-approval features until the patch is applied

Patch Information

Cloudflare has released a fix for this vulnerability through Pull Request #26 in the workers-oauth-provider repository. Organizations should update their dependencies to incorporate this fix. The patch adds proper redirect URI validation during the authorization flow, ensuring the redirect_uri parameter is checked against the allowed list before proceeding with authorization.

Workarounds

  • Disable automatic re-authorization for previously authorized clients until the patch can be applied
  • Implement additional redirect URI validation at the application layer above workers-oauth-provider
  • Restrict registered redirect URIs to the minimum required set of specific URLs rather than patterns
  • Consider implementing additional user confirmation steps for OAuth authorization flows
bash
# Update workers-oauth-provider to latest patched version
npm update workers-oauth-provider

# Verify installed version
npm list workers-oauth-provider

# Review and audit OAuth configuration for registered redirect URIs
# Ensure all redirect_uri entries are specific and necessary

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechCloudflare Workers Oauth Provider

  • SeverityMEDIUM

  • CVSS Score6.0

  • EPSS Probability0.08%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:H/VI:N/VA:N/SC:L/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:Amber
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-601
  • Vendor Resources
  • GitHub Pull Request
  • Related CVEs
  • CVE-2025-4144: Cloudflare Workers OAuth Bypass Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English