[HIGH] [0.87] Remove FileIoHandler from packager connections - #58331
Open
OskarEichler wants to merge 1 commit into
Open
[HIGH] [0.87] Remove FileIoHandler from packager connections#58331OskarEichler wants to merge 1 commit into
OskarEichler wants to merge 1 commit into
Conversation
Backport e3598fa. Co-authored-by: Pieter De Baets <pieterdb@meta.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary:
Backports the security fix from #58096 /
e3598fac12d4a1169a8b25519e0669fb9e2e37c2to the 0.87 stable line.FileIoHandlerlets 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 frommainbecause leaving it available to a packager connection is a major security risk. React Native 0.87.1 and the current0.87-stablebranch 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...HEADmain.FileIoHandlerreference exists in the changed Android API and dev-support paths.