Skip to content

esbuild Vulnerability and Compatibility Issue #846

@Paulos-se

Description

@Paulos-se

I'm encountering a critical security and compatibility issue with OpenNext and esbuild:

  1. 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.

  2. 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)$"

  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions