Intel

AIKIDO-2026-263108

@opennextjs/cloudflare is vulnerable to Improper Handling of URL Encoding

Improper Handling of URL EncodingGHSA-2vc4-c4r6-p6v6 Published 4 days ago

75

High Risk

This Affects:

JS@opennextjs/cloudflare
0.3.0 - 1.20.1
Fixed in 1.20.2
Are you affected? Scan for Free

TL;DR

When cache interception is enabled, @opennextjs/cloudflare matches authorization middleware against the encoded request path but decodes the path before selecting a cache entry. A remote unauthenticated request using a percent-encoded path can skip the middleware matcher while still resolving to the cache key of a protected route, returning the cached response. Malformed paths were also partially decoded, letting cache lookup continue on an inconsistent path. The fix aligns encoded-path handling between middleware matching and cache lookup and rejects malformed paths instead of partially decoding them.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application enables cache interception and relies on middleware for access control.

Background info

@opennextjs/cloudflare is vulnerable to Improper Handling of URL Encoding in versions 0.3.0 - 1.20.1.

How to fix this

Upgrade the @opennextjs/cloudflare library to the patch version.