-
Notifications
You must be signed in to change notification settings - Fork 177
Description
I'm encountering a critical security and compatibility issue with OpenNext and esbuild:
-
Security Vulnerability: OpenNext requires esbuild 0.19.2, which has a known security vulnerability ([GHSA-67mh-4wv8-2f99](https://github.com/advisories/GHSA-
67mh-4wv8-2f99)) allowing any website to send requests to the development server and read responses. -
Compatibility Problem: When attempting to follow the suggestion to "update your version of esbuild" to a secure version (0.25.x), OpenNext 3.6.0 fails with
the error:Error: [opennext-edge] "onResolve" filter is not a valid Go regular expression: "(?g)\.(mjs|wasm)$"
-
Regression Issue: OpenNext 3.5.3 works with esbuild 0.25.x override (though still depends on 0.19.2), but 3.6.0 breaks with the same override.
This creates a no-win situation where we must choose between:
• Using a version with a known security vulnerability
• Breaking our build process
Request: Please update the regex pattern in OpenNext to be compatible with newer esbuild versions, allowing users to secure their build environments while continuing to use OpenNext.