Skip to content

Request to Backport Security Patch from v18.x to v15.x (Metro Dev Server RCE – SA20251106-01)Β #2733

@kyoungnowcom

Description

@kyoungnowcom

Hi maintainers πŸ‘‹,

We are currently using @react-native-community/cli v15.0.1 via our React Native toolchain, and we are tracking the recent security advisory regarding the Metro dev server RCE vulnerability (SA20251106-01 / CVE pending publication).

We noticed that the fix has been committed and released in CLI v18.x β€” specifically commit a8293dc29425f56249753507bc24d87b698d46e1οΏΌ which adds stricter URL validation to openURLMiddleware. Thank you for addressing this promptly.
οΏΌ

However, we are using React Native 0.76.3, which currently aligns with the CLI 15.x release line. Upgrading React Native and moving to CLI 18.x+ is a significant effort requiring regression testing and release scheduling, so we cannot complete that upgrade immediately.

Request

Would it be possible to backport the security patch from v18.x (commit a8293dc…) to the v15.x branch?

Several production apps are in the same situation where React Native versions in the 0.70–0.76 range rely on CLI 14–16. A backport would allow these teams to mitigate the vulnerability without forcing an app-wide RN upgrade ahead of schedule.

Current Environment

React Native 0.76.3
@react-native-community/cli 15.0.1
Platforms iOS + Android

Temporary Mitigation in Place

We have already applied compensating controls by binding the Metro dev server to localhost only:

npx react-native start --host 127.0.0.1
adb reverse tcp:8081 tcp:8081
# iOS simulator already uses localhost; USB tunnel is used for devices.

While this significantly reduces the exposure surface, we would prefer to apply an officially patched release for CLI 15.x.

We can help

We are happy to:
β€’ test the patched branch across both platforms,
β€’ verify behavior in RN 0.76.x environments,
β€’ provide logs or reproduce steps if required.

Thank you again for your work maintaining the CLI β€” it’s deeply appreciated by the React Native community πŸ™
Please let us know if a backport PR or test validation would be helpful.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions