# CVE-2025-4143: Missing validation of redirect\_uri on authorize endpoint

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.0
- **CVSS:** 6.0 (v4.0, CNA) `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/U:Amber`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Attack requirements: Present; Privileges required: None; User interaction: Passive; Confidentiality impact: High; Integrity impact: None; Availability impact: None; Confidentiality impact on other systems: Low; Integrity impact on other systems: None; Availability impact on other systems: None; U: Amber
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.44% (percentile 30, 2026-11-26)
- **CWE:** CWE-601
- **Aliases:** GHSA-4pc9-x2fx-p7vj
- **Published:** 2025-05-01T00:19:52.737Z
- **Modified:** 2026-06-17T09:32:35.473Z

## Who should check

- Projects that depend on npm package @cloudflare/workers-oauth-provider (\< 0.0.5)
- Anyone running workers-oauth-provider \< 0.0.5

## Description

The OAuth implementation in workers-oauth-provider that is part of  MCP framework https://github.com/cloudflare/workers-mcp , did not correctly validate that redirect\_uri was on the allowed list of redirect URIs for the given client registration.

Fixed in:  https://github.com/cloudflare/workers-oauth-provider/pull/26 https://github.com/cloudflare/workers-oauth-provider/pull/26 

Impact:

 

Under certain circumstances (see below), if a victim had previously authorized with a server built on workers-oath-provider, and an attacker could later trick the victim into visiting a malicious web site, then attacker could potentially steal the victim's credentials to the same OAuth server and subsequently impersonate them.

In order for the attack to be possible, the OAuth server's authorized callback must be designed to auto-approve authorizations that appear to come from an OAuth client that the victim has authorized previously. The authorization flow is not implemented by workers-oauth-provider; it is up to the application built on top to decide whether to implement such automatic re-authorization. However, many applications do implement such logic.

Note: It is a basic, well-known requirement that OAuth servers should verify that the redirect URI is among the allowed list for the client, both during the authorization flow and subsequently when exchanging the authorization code for an access token. workers-oauth-provider implemented only the latter check, not the former. Unfortunately, the former is the much more important check. Readers who are familiar with OAuth may recognize that failing to check redirect URIs against the allowed list is a well-known, basic mistake, covered extensively in the RFC and elsewhere. The author of this library would like everyone to know that he was, in fact, well-aware of this requirement, thought about it a lot while designing the library, and then, somehow, forgot to actually make sure the check was in the code. That is, it's not that he didn't know what he was doing, it's that he knew what he was doing but flubbed it.

## Affected and fixed versions

- npm `@cloudflare/workers-oauth-provider`: affected \< 0.0.5; fixed 0.0.5 (osv)
- workers-oauth-provider: \< 0.0.5 (cvelist)

## Mitigation

- Upgrade @cloudflare/workers-oauth-provider to 0.0.5 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-4143. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-4143.md
Affected: @cloudflare/workers-oauth-provider < 0.0.5
Fixed in: 0.0.5

Steps:
1. Search this machine and project for @cloudflare/workers-oauth-provider (npm), workers-oauth-provider: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-4143 being exploited?

There is no confirmed exploitation: CVE-2025-4143 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.44% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-4143?

Medium: CVSS 6.0 (v4.0, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2025-4143?

@cloudflare/workers-oauth-provider \< 0.0.5.

### Is there a fix for CVE-2025-4143?

Yes. Fixed in 0.0.5. Upgrade @cloudflare/workers-oauth-provider to 0.0.5 or later.

### How do I check if I'm affected by CVE-2025-4143?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/cloudflare/workers-oauth-provider/security/advisories/GHSA-4pc9-x2fx-p7vj>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2025-4143>
- patch: <https://github.com/cloudflare/workers-oauth-provider/pull/26>
- other: <https://github.com/cloudflare/workers-oauth-provider>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-4143>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-4pc9-x2fx-p7vj> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2025-4143> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-4143>
