7.8

CVE-2025-6087: SSRF vulnerability in opennextjs-cloudflare via /_next/image endpoint

Analyzed
AliasesGHSA-c7mq-gh6q-6q7cCVE-2026-3125GHSA-rvpw-p7vw-wj3m
Published 16-06-2025Last modified 16-06-2025

Vulnerability summary

CVE-2025-6087 is a high (CVSS 7.8) vulnerability in cloudflare create-cloudflare. EPSS estimates a 0.97% chance of exploitation in the next 30 days, higher than 63.1% of scored vulnerabilities.

Priority
Prioritisesevere

Severe, CVSS 7.8 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)

Source freshness unavailable

How is this decided?
CVSS score
7.8/10
010
High · v4.0 (CVE.org)
EPSS score
0.97%
0%100%
Low · +0.01 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Timeline

  1. 16-06-2025
    PublishedVulnerability first disclosed.
  2. 16-06-2025
    Last modifiedVulnerability information updated.

Description

A Server-Side Request Forgery (SSRF) vulnerability was identified in the @opennextjs/cloudflare package, resulting from a path normalization bypass in the /cdn-cgi/image/ handler.The @opennextjs/cloudflare worker template includes a /cdn-cgi/image/ handler intended for development use only. In production, Cloudflare's edge intercepts /cdn-cgi/image/ requests before they reach the Worker. However, by substituting a backslash for a forward slash (/cdn-cgi\image/ instead of /cdn-cgi/image/), an attacker can bypass edge interception and have the request reach the Worker directly. The JavaScript URL class then normalizes the backslash to a forward slash, causing the request to match the handler and trigger an unvalidated fetch of arbitrary remote URLs. For example: https://victim-site.com/cdn-cgi\image/aaaa/https://attacker.com In this example, attacker-controlled content from attacker.com is served through the victim site's domain (victim-site.com), violating the same-origin policy and potentially misleading users or other services. Note: This bypass only works via HTTP clients that preserve backslashes in paths (e.g., curl --path-as-is). Browsers normalize backslashes to forward slashes before sending requests. Additionally, Cloudflare Workers with Assets and Cloudflare Pages suffer from a similar vulnerability. Assets stored under /cdn-cgi/ paths are not publicly accessible under normal conditions. However, using the same backslash bypass (/cdn-cgi\... instead of /cdn-cgi/...), these assets become publicly accessible. This could be used to retrieve private data. For example, Open Next projects store incremental cache data under /cdn-cgi/_next_cache, which could be exposed via this bypass.

CVSS metrics

4 scores · 3 sources · 2 versions

EPSS trend

Probability

0.97%

Chance of exploitation in the next 30 days

Percentile

63%

Versus all other CVEs

30-day change

Increase +0.01 pp

From 0.97% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

@opennextjs1 product
  • cloudflare< 1.17.1 | < 1.3.0
Cloudflare1 product
Opennextjs1 product

3 vendors · 3 products

References

13 links
Show all 13 references