Vulnerabilities in pkg:npm/@opennextjs/cloudflare

PACKAGE
Advisory Identifier: GHSA-2vc4-c4r6-p6v6
Advisory Summary

CVE-2026-100409 is a HIGH (CVSS 7.5) remote code execution vulnerability (CWE-177: Improper Handling of URL Encoding (Hex Encoding)) affecting OpenNext Cloudflare libraries in the npm ecosystem. The issue involves cache interception can bypass middleware protection for encoded paths. Remediation is available by upgrading affected packages to version 1.20.2.

3 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/@opennextjs/cloudflare

3 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/@opennextjs/cloudflare. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-2vc4-c4r6-p6v6 CVE-2026-100409 HIGH OpenNext Cloudflare: Cache interception can bypass middleware protection for encoded paths
GHSA-c7mq-gh6q-6q7c CVE-2026-3125 HIGH opennextjs-cloudflare has SSRF vulnerability via /cdn-cgi/ path normalization bypass
GHSA-rvpw-p7vw-wj3m CVE-2025-6087 HIGH OpenNext for Cloudflare (opennextjs-cloudflare) has a SSRF vulnerability via /_next/image endpoint

CVE-2026-100409 at a Glance

CVE Identifier CVE-2026-100409
GHSA Identifier GHSA-2vc4-c4r6-p6v6
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-177: Improper Handling of URL Encoding (Hex Encoding)
Affected Product OpenNext Cloudflare
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2026-100409

To remediate this vulnerability, upgrade all affected OpenNext Cloudflare dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

@opennextjs/cloudflare fixed: 1.20.2
npm install @opennextjs/cloudflare@1.20.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls @opennextjs/cloudflare

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-100409, inspect your project dependencies using npm:

npm ls @opennextjs/cloudflare

Analyze the terminal output to locate any version of OpenNext Cloudflare in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.20.2), your application is affected.

Note: The npm ls @opennextjs/cloudflare command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-177: Improper Handling of URL Encoding (Hex Encoding), where the product does not properly handle when all or part of an input has been url encoded. In OpenNext Cloudflare, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

## Summary When cache interception is enabled, `@opennextjs/cloudflare` can interpret percent-encoded paths differently during middleware matching and cache lookup. An encoded request may fail to match authorization middleware, then be decoded into the cache key of a protected route. The cached response may consequently be returned without invoking the middleware. `enableCacheInterception` is disabled by default. ## Impact A remote unauthenticated attacker may retrieve cached content from routes intended to be protected by middleware. An application is affected when it: - explicitly enables `enableCacheInterception`; - relies on middleware for access control; and - has a matching cached route. ## Details Middleware matching previously used the encoded request pathname, while cache interception decoded the pathname before selecting a cache entry. For example, consider an application with: - middleware matcher `/admin/:path*`; - middleware returning `401 Authentication required` for `/admin`; - a statically generated, cached `/admin` route; and - cache interception enabled: ```ts export default defineCloudflareConfig({ incrementalCache: staticAssetsIncrementalCache, enableCacheInterception: true, }); ``` An attacker can request: ```http GET /%61dmin ``` The encoded pathname does not match `/admin/:path*`, so the authorization middleware is not invoked. Cache interception then decodes `%61dmin` to `admin` and may return the cached `/admin` response: ```http HTTP/1.1 200 OK x-opennext-cache: HIT Protected content ``` Malformed paths exposed an additional inconsistency. For example: ```http GET /%61dmin/%ZZ ``` The previous implementation decoded each segment independently. It decoded `%61dmin` to `admin` but retained the malformed `%ZZ` segment, allowing cache lookup to continue using a partially decoded pathname. ## Patches The fix aligns encoded-path handling across middleware matching and cache lookup, and rejects malformed paths instead of partially decoding them. See the upstream fixes in [opennextjs-aws#1199](https://github.com/opennextjs/opennextjs-aws/pull/1199) and [opennextjs-aws#1200](https://github.com/opennextjs/opennextjs-aws/pull/1200). Users should upgrade to `@opennextjs/cloudflare@1.20.2` or later. ## Workarounds If upgrading is not immediately possible for an application: 1. Disable cache interception by removing `enableCacheInterception: true`. 2. Enforce authorization inside protected route handlers rather than relying exclusively on middleware. 3. Reject encoded paths for protected routes at a trusted proxy before they reach the Worker. Adding individual encoded matcher variants is not a complete workaround because pathnames can have multiple equivalent encodings.

CVE-2026-100409 Affected OpenNext Cloudflare Versions

1 component(s)
Fixed Versions:
1.20.2
Product / Package Ecosystem Affected Versions Fixed Version
@opennextjs/cloudflare
npm
≥ 0.3.0
< 1.20.2
1.20.2

References

Frequently Asked Questions

What is CVE-2026-100409?
CVE-2026-100409 is a security vulnerability in OpenNext Cloudflare involving Cache interception can bypass middleware protection for encoded paths under CWE-177: Improper Handling of URL Encoding (Hex Encoding).
Which OpenNext Cloudflare versions are affected?
Affected versions include releases prior to 1.20.2 across affected packages: @opennextjs/cloudflare.
What version fixes CVE-2026-100409?
Upgrading to 1.20.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @opennextjs/cloudflare affected?
Yes, @opennextjs/cloudflare is affected in releases prior to 1.20.2. Upgrade your dependency to 1.20.2 or later.
What is the CVSS score of CVE-2026-100409?
CVE-2026-100409 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2026-100409?
CVE-2026-100409 is classified under CWE-177: Improper Handling of URL Encoding (Hex Encoding) (The product does not properly handle when all or part of an input has been URL encoded.).
How can I check npm dependencies for CVE-2026-100409?
Run the dependency tree command: 'npm ls @opennextjs/cloudflare'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-2vc4-c4r6-p6v6",
  "modified" : "2026-10-15T20:15:17Z",
  "published" : "2026-10-15T20:15:17Z",
  "aliases" : [ "CVE-2026-100409" ],
  "summary" : "OpenNext Cloudflare: Cache interception can bypass middleware protection for encoded paths",
  "details" : "## Summary\n\nWhen cache interception is enabled, `@opennextjs/cloudflare` can interpret percent-encoded paths differently during middleware matching and cache lookup.\n\nAn encoded request may fail to match authorization middleware, then be decoded into the cache key of a protected route. The cached response may consequently be returned without invoking the middleware.\n\n`enableCacheInterception` is disabled by default.\n\n## Impact\n\nA remote unauthenticated attacker may retrieve cached content from routes intended to be protected by middleware.\n\nAn application is affected when it:\n\n- explicitly enables `enableCacheInterception`;\n- relies on middleware for access control; and\n- has a matching cached route.\n\n## Details\n\nMiddleware matching previously used the encoded request pathname, while cache interception decoded the pathname before selecting a cache entry.\n\nFor example, consider an application with:\n\n- middleware matcher `/admin/:path*`;\n- middleware returning `401 Authentication required` for `/admin`;\n- a statically generated, cached `/admin` route; and\n- cache interception enabled:\n\n```ts\nexport default defineCloudflareConfig({\n  incrementalCache: staticAssetsIncrementalCache,\n  enableCacheInterception: true,\n});\n```\n\nAn attacker can request:\n\n```http\nGET /%61dmin\n```\n\nThe encoded pathname does not match `/admin/:path*`, so the authorization middleware is not invoked. Cache interception then decodes `%61dmin` to `admin` and may return the cached `/admin` response:\n\n```http\nHTTP/1.1 200 OK\nx-opennext-cache: HIT\n\nProtected content\n```\n\nMalformed paths exposed an additional inconsistency. For example:\n\n```http\nGET /%61dmin/%ZZ\n```\n\nThe previous implementation decoded each segment independently. It decoded `%61dmin` to `admin` but retained the malformed `%ZZ` segment, allowing cache lookup to continue using a partially decoded pathname.\n\n## Patches\n\nThe fix aligns encoded-path handling across middleware matching and cache lookup, and rejects malformed paths instead of partially decoding them. See the upstream fixes in [opennextjs-aws#1199](https://github.com/opennextjs/opennextjs-aws/pull/1199) and [opennextjs-aws#1200](https://github.com/opennextjs/opennextjs-aws/pull/1200).\n\nUsers should upgrade to `@opennextjs/cloudflare@1.20.2` or later.\n\n## Workarounds\n\nIf upgrading is not immediately possible for an application:\n\n1. Disable cache interception by removing `enableCacheInterception: true`.\n2. Enforce authorization inside protected route handlers rather than relying exclusively on middleware.\n3. Reject encoded paths for protected routes at a trusted proxy before they reach the Worker.\n\nAdding individual encoded matcher variants is not a complete workaround because pathnames can have multiple equivalent encodings.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@opennextjs/cloudflare"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.3.0"
      }, {
        "fixed" : "1.20.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/opennextjs/opennextjs-cloudflare/security/advisories/GHSA-2vc4-c4r6-p6v6"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-100409"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/opennextjs/opennextjs-aws/pull/1199"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/opennextjs/opennextjs-aws/pull/1200"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/opennextjs/opennextjs-cloudflare/commit/38ea40b669be272ddf09a7df7e70c69d0b57404b"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/opennextjs/opennextjs-cloudflare"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/opennextjs/opennextjs-cloudflare/releases/tag/@opennextjs/cloudflare@1.20.2"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-177", "CWE-180" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-10-15T20:15:17Z",
    "nvd_published_at" : "2026-10-15T17:17:07Z"
  }
}