Skip to content

[HIGH] [0.87] Remove FileIoHandler from packager connections - #58331

Open
OskarEichler wants to merge 1 commit into
react:0.87-stablefrom
OskarEichler:codex/security-remove-file-io-handler-087
Open

[HIGH] [0.87] Remove FileIoHandler from packager connections#58331
OskarEichler wants to merge 1 commit into
react:0.87-stablefrom
OskarEichler:codex/security-remove-file-io-handler-087

Conversation

@OskarEichler

Copy link
Copy Markdown
Contributor

Summary:

Backports the security fix from #58096 / e3598fac12d4a1169a8b25519e0669fb9e2e37c2 to the 0.87 stable line.

FileIoHandler lets the connected packager open and read arbitrary files accessible to the Android app process. The handler was an internal-only legacy capability, has no iOS equivalent, and was removed from main because leaving it available to a packager connection is a major security risk. React Native 0.87.1 and the current 0.87-stable branch still register it.

This removes the handler registration, implementation, and Android API snapshot entry. It is intentionally the same narrowly scoped fix already reviewed and landed on main.

Changelog:

[ANDROID] [SECURITY] - Remove legacy packager file-read message handlers from the 0.87 stable line.

Test Plan:

  • git diff --check origin/0.87-stable...HEAD
  • Confirmed the three-file removal matches the implementation already reviewed for Remove FileIoHandler #58096 on main.
  • Confirmed no remaining FileIoHandler reference exists in the changed Android API and dev-support paths.

Backport e3598fa.

Co-authored-by: Pieter De Baets <pieterdb@meta.com>
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Pick Request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant