Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

๐Ÿšจ [security] Update react-native 0.73.7 โ†’ 0.78.2 (major) #243

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

depfu[bot]
Copy link
Contributor

@depfu depfu bot commented Apr 2, 2025


๐Ÿšจ Your current dependencies have known security vulnerabilities ๐Ÿšจ

This dependency update fixes known security vulnerabilities. Please see the details below and assess their impact carefully. We recommend to merge and deploy this as soon as possible!


Here is everything you need to know about this upgrade. Please take a good look at what changed and the test results before merging this pull request.

What changed?

โœณ๏ธ react-native (0.73.7 โ†’ 0.78.2) ยท Repo ยท Changelog

Release Notes

Too many releases to show here. View the full release notes.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

โ†—๏ธ @โ€‹babel/generator (indirect, 7.26.5 โ†’ 7.27.0) ยท Repo ยท Changelog

Release Notes

7.27.0

More info than we can show here.

7.26.10

More info than we can show here.

7.26.9

More info than we can show here.

7.26.8

More info than we can show here.

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

โ†—๏ธ @โ€‹babel/parser (indirect, 7.26.5 โ†’ 7.27.0) ยท Repo ยท Changelog

Release Notes

7.27.0

More info than we can show here.

7.26.10

More info than we can show here.

7.26.9

More info than we can show here.

7.26.8

More info than we can show here.

7.26.7

More info than we can show here.

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

โ†—๏ธ @โ€‹babel/plugin-transform-typescript (indirect, 7.26.5 โ†’ 7.27.0) ยท Repo ยท Changelog

Release Notes

7.27.0

More info than we can show here.

7.26.8

More info than we can show here.

7.26.7

More info than we can show here.

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

โ†—๏ธ @โ€‹babel/preset-flow (indirect, 7.24.1 โ†’ 7.25.9) ยท Repo ยท Changelog

Release Notes

7.25.9

More info than we can show here.

7.25.7

More info than we can show here.

7.24.7

More info than we can show here.

7.24.6

More info than we can show here.

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

โ†—๏ธ @โ€‹babel/preset-typescript (indirect, 7.24.1 โ†’ 7.27.0) ยท Repo ยท Changelog

Release Notes

7.27.0

More info than we can show here.

7.26.0

More info than we can show here.

7.25.9

More info than we can show here.

7.25.7

More info than we can show here.

7.24.7

More info than we can show here.

7.24.6

More info than we can show here.

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

โ†—๏ธ @โ€‹babel/register (indirect, 7.23.7 โ†’ 7.25.9) ยท Repo ยท Changelog

Release Notes

7.25.9

More info than we can show here.

7.25.7

More info than we can show here.

7.24.6

More info than we can show here.

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

โ†—๏ธ @โ€‹babel/runtime (indirect, 7.24.1 โ†’ 7.27.0) ยท Repo ยท Changelog

Security Advisories ๐Ÿšจ

๐Ÿšจ Babel has inefficient RexExp complexity in generated code with .replace when transpiling named capturing groups

Impact

When using Babel to compile regular expression named capturing groups, Babel will generate a polyfill for the .replace method that has quadratic complexity on some specific replacement pattern strings (i.e. the second argument passed to .replace).

Your generated code is vulnerable if all the following conditions are true:

  • You use Babel to compile regular expression named capturing groups
  • You use the .replace method on a regular expression that contains named capturing groups
  • Your code uses untrusted strings as the second argument of .replace

If you are using @babel/preset-env with the targets option, the transform that injects the vulnerable code is automatically enabled if:

  • you use duplicated named capturing groups, and target any browser older than Chrome/Edge 126, Opera 112, Firefox 129, Safari 17.4, or Node.js 23
  • you use any named capturing groups, and target any browser older than Chrome 64, Opera 71, Edge 79, Firefox 78, Safari 11.1, or Node.js 10

You can verify what transforms @babel/preset-env is using by enabling the debug option.

Patches

This problem has been fixed in @babel/helpers and @babel/runtime 7.26.10 and 8.0.0-alpha.17, please upgrade. It's likely that you do not directly depend on @babel/helpers, and instead you depend on @babel/core (which itself depends on @babel/helpers). Upgrading to @babel/core 7.26.10 is not required, but it guarantees that you are on a new enough @babel/helpers version.

Please note that just updating your Babel dependencies is not enough: you will also need to re-compile your code.

Workarounds

If you are passing user-provided strings as the second argument of .replace on regular expressions that contain named capturing groups, validate the input and make sure it does not contain the substring $< if it's then not followed by > (possibly with other characters in between).

References

This vulnerability was reported and fixed in #17173.

Release Notes

Too many releases to show here. View the full release notes.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

โ†—๏ธ @โ€‹babel/template (indirect, 7.25.9 โ†’ 7.27.0) ยท Repo ยท Changelog

Release Notes

7.27.0

More info than we can show here.

7.26.9

More info than we can show here.

7.26.8

More info than we can show here.

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

โ†—๏ธ @โ€‹babel/traverse (indirect, 7.26.5 โ†’ 7.27.0) ยท Repo ยท Changelog

Release Notes

7.27.0

More info than we can show here.

7.26.10

More info than we can show here.

7.26.9

More info than we can show here.

7.26.8

More info than we can show here.

7.26.7

More info than we can show here.

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

โ†—๏ธ @โ€‹babel/types (indirect, 7.26.5 โ†’ 7.27.0) ยท Repo ยท Changelog

Release Notes

7.27.0

More info than we can show here.

7.26.10

More info than we can show here.

7.26.9

More info than we can show here.

7.26.8

More info than we can show here.

7.26.7

More info than we can show here.

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

โ†—๏ธ @โ€‹react-native/babel-preset (indirect, 0.73.21 โ†’ 0.78.2) ยท Repo ยท Changelog

Release Notes

Too many releases to show here. View the full release notes.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

โ†—๏ธ @โ€‹react-native/gradle-plugin (indirect, 0.73.4 โ†’ 0.78.2) ยท Repo ยท Changelog

Release Notes

Too many releases to show here. View the full release notes.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

โ†—๏ธ @โ€‹react-native/metro-babel-transformer (indirect, 0.73.15 โ†’ 0.78.2) ยท Repo ยท Changelog

Release Notes

0.78.2

More info than we can show here.

0.78.1

More info than we can show here.

0.78.0

More info than we can show here.

0.77.1

More info than we can show here.

0.77.0

More info than we can show here.

0.76.6

More info than we can show here.

0.76.5

More info than we can show here.

0.76.4

More info than we can show here.

0.76.3

More info than we can show here.

0.76.2

More info than we can show here.

0.76.1

More info than we can show here.

0.76.0

More info than we can show here.

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

โ†—๏ธ image-size (indirect, 1.1.1 โ†’ 1.2.1) ยท Repo

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

โ†—๏ธ metro (indirect, 0.80.7 โ†’ 0.81.4) ยท Repo ยท Changelog

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

โ†—๏ธ metro-config (indirect, 0.80.7 โ†’ 0.81.4) ยท Repo ยท Changelog

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

โ†—๏ธ metro-core (indirect, 0.80.7 โ†’ 0.81.4) ยท Repo ยท Changelog

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

โ†—๏ธ metro-minify-terser (indirect, 0.80.7 โ†’ 0.81.4) ยท Repo ยท Changelog

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

โ†—๏ธ metro-resolver (indirect, 0.80.7 โ†’ 0.81.4) ยท Repo ยท Changelog

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

โ†—๏ธ react-devtools-core (indirect, 4.28.5 โ†’ 6.1.1) ยท Repo

Sorry, we couldn't find anything useful about this release.

โ†—๏ธ scheduler (indirect, 0.24.0-canary-efb381bbf-20230505 โ†’ 0.25.0) ยท Repo ยท Changelog

โ†—๏ธ send (indirect, 0.18.0 โ†’ 0.19.0) ยท Repo ยท Changelog

Security Advisories ๐Ÿšจ

๐Ÿšจ send vulnerable to template injection that can lead to XSS

Impact

passing untrusted user input - even after sanitizing it - to SendStream.redirect() may execute untrusted code

Patches

this issue is patched in send 0.19.0

Workarounds

users are encouraged to upgrade to the patched version of express, but otherwise can workaround this issue by making sure any untrusted inputs are safe, ideally by validating them against an explicit allowlist

Details

successful exploitation of this vector requires the following:

  1. The attacker MUST control the input to response.redirect()
  2. express MUST NOT redirect before the template appears
  3. the browser MUST NOT complete redirection before:
  4. the user MUST click on the link in the template
Release Notes

0.19.0

More info than we can show here.

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

โ†—๏ธ serve-static (indirect, 1.15.0 โ†’ 1.16.2) ยท Repo ยท Changelog

Security Advisories ๐Ÿšจ

๐Ÿšจ serve-static vulnerable to template injection that can lead to XSS

Impact

passing untrusted user input - even after sanitizing it - to redirect() may execute untrusted code

Patches

this issue is patched in serve-static 1.16.0

Workarounds

users are encouraged to upgrade to the patched version of express, but otherwise can workaround this issue by making sure any untrusted inputs are safe, ideally by validating them against an explicit allowlist

Details

successful exploitation of this vector requires the following:

  1. The attacker MUST control the input to response.redirect()
  2. express MUST NOT redirect before the template appears
  3. the browser MUST NOT complete redirection before:
  4. the user MUST click on the link in the template
Release Notes

1.16.0

More info than we can show here.

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

โ†—๏ธ shell-quote (indirect, 1.8.1 โ†’ 1.8.2) ยท Repo ยท Changelog

๐Ÿ†• @โ€‹babel/plugin-syntax-bigint (added, 7.8.3)

๐Ÿ†• @โ€‹babel/traverse--for-generate-function-map (added, 7.27.0)

๐Ÿ†• @โ€‹istanbuljs/load-nyc-config (added, 1.1.0)

๐Ÿ†• @โ€‹istanbuljs/schema (added, 0.1.3)

๐Ÿ†• @โ€‹jest/transform (added, 29.7.0)

๐Ÿ†• @โ€‹types/babel__core (added, 7.20.5)

๐Ÿ†• @โ€‹types/babel__generator (added, 7.6.8)

๐Ÿ†• @โ€‹types/babel__template (added, 7.4.4)

๐Ÿ†• @โ€‹types/babel__traverse (added, 7.20.7)

๐Ÿ†• @โ€‹types/graceful-fs (added, 4.1.9)

๐Ÿ†• babel-jest (added, 29.7.0)

๐Ÿ†• babel-plugin-istanbul (added, 6.1.1)

๐Ÿ†• babel-plugin-jest-hoist (added, 29.6.3)

๐Ÿ†• babel-preset-current-node-syntax (added, 1.1.0)

๐Ÿ†• babel-preset-jest (added, 29.6.3)

๐Ÿ†• exponential-backoff (added, 3.1.2)

๐Ÿ†• get-package-type (added, 0.1.0)

๐Ÿ†• istanbul-lib-coverage (added, 3.2.2)

๐Ÿ†• istanbul-lib-instrument (added, 5.2.1)

๐Ÿ†• jest-haste-map (added, 29.7.0)

๐Ÿ†• jest-regex-util (added, 29.6.3)

๐Ÿ†• test-exclude (added, 6.0.0)

๐Ÿ†• tiny-invariant (added, 1.3.3)

๐Ÿ†• ws (added, 7.5.10)

๐Ÿ†• ast-types (added, 0.16.1)

๐Ÿ†• jscodeshift (added, 17.3.0)

๐Ÿ†• recast (added, 0.23.11)

๐Ÿ†• write-file-atomic (added, 4.0.2)

๐Ÿ†• write-file-atomic (added, 5.0.1)

๐Ÿ—‘๏ธ @โ€‹babel/plugin-proposal-async-generator-functions (removed)

๐Ÿ—‘๏ธ @โ€‹babel/plugin-proposal-numeric-separator (removed)

๐Ÿ—‘๏ธ @โ€‹babel/plugin-proposal-object-rest-spread (removed)

๐Ÿ—‘๏ธ @โ€‹babel/plugin-proposal-optional-catch-binding (removed)

๐Ÿ—‘๏ธ @โ€‹hapi/hoek (removed)

๐Ÿ—‘๏ธ @โ€‹hapi/topo (removed)

๐Ÿ—‘๏ธ @โ€‹react-native-community/cli (removed)

๐Ÿ—‘๏ธ @โ€‹react-native-community/cli-clean (removed)

๐Ÿ—‘๏ธ @โ€‹react-native-community/cli-config (removed)

๐Ÿ—‘๏ธ @โ€‹react-native-community/cli-debugger-ui (removed)

๐Ÿ—‘๏ธ @โ€‹react-native-community/cli-doctor (removed)

๐Ÿ—‘๏ธ @โ€‹react-native-community/cli-hermes (removed)

๐Ÿ—‘๏ธ @โ€‹react-native-community/cli-platform-android (removed)

๐Ÿ—‘๏ธ @โ€‹react-native-community/cli-platform-ios (removed)

๐Ÿ—‘๏ธ @โ€‹react-native-community/cli-plugin-metro (removed)

๐Ÿ—‘๏ธ @โ€‹react-native-community/cli-server-api (removed)

๐Ÿ—‘๏ธ @โ€‹react-native-community/cli-tools (removed)

๐Ÿ—‘๏ธ @โ€‹react-native-community/cli-types (removed)

๐Ÿ—‘๏ธ @โ€‹sideway/address (removed)

๐Ÿ—‘๏ธ @โ€‹sideway/formula (removed)

๐Ÿ—‘๏ธ @โ€‹sideway/pinpoint (removed)

๐Ÿ—‘๏ธ ansi-fragments (removed)

๐Ÿ—‘๏ธ appdirsjs (removed)

๐Ÿ—‘๏ธ astral-regex (removed)

๐Ÿ—‘๏ธ core-util-is (removed)

๐Ÿ—‘๏ธ dayjs (removed)

๐Ÿ—‘๏ธ denodeify (removed)

๐Ÿ—‘๏ธ deprecated-react-native-prop-types (removed)

๐Ÿ—‘๏ธ errorhandler (removed)

๐Ÿ—‘๏ธ fast-xml-parser (removed)

๐Ÿ—‘๏ธ hermes-profile-transformer (removed)

๐Ÿ—‘๏ธ human-signals (removed)

๐Ÿ—‘๏ธ joi (removed)

๐Ÿ—‘๏ธ jsc-android (removed)

๐Ÿ—‘๏ธ logkitty (removed)

๐Ÿ—‘๏ธ nocache (removed)

๐Ÿ—‘๏ธ node-abort-controller (removed)

๐Ÿ—‘๏ธ node-stream-zip (removed)

๐Ÿ—‘๏ธ process-nextick-args (removed)

๐Ÿ—‘๏ธ react-shallow-renderer (removed)

๐Ÿ—‘๏ธ require-main-filename (removed)

๐Ÿ—‘๏ธ set-blocking (removed)

๐Ÿ—‘๏ธ slice-ansi (removed)

๐Ÿ—‘๏ธ strip-final-newline (removed)

๐Ÿ—‘๏ธ strnum (removed)

๐Ÿ—‘๏ธ through2 (removed)

๐Ÿ—‘๏ธ which-module (removed)

๐Ÿ—‘๏ธ xtend (removed)

๐Ÿ—‘๏ธ cliui (removed)

๐Ÿ—‘๏ธ yargs (removed)

๐Ÿ—‘๏ธ yargs-parser (removed)

๐Ÿ—‘๏ธ ws (removed)

๐Ÿ—‘๏ธ ws (removed)

๐Ÿ—‘๏ธ chromium-edge-launcher (removed)

๐Ÿ—‘๏ธ mime (removed)

๐Ÿ—‘๏ธ open (removed)

๐Ÿ—‘๏ธ ora (removed)

๐Ÿ—‘๏ธ sudo-prompt (removed)

๐Ÿ—‘๏ธ wrap-ansi (removed)

๐Ÿ—‘๏ธ @โ€‹jest/types (removed)

๐Ÿ—‘๏ธ execa (removed)

๐Ÿ—‘๏ธ get-stream (removed)

๐Ÿ—‘๏ธ yaml (removed)

๐Ÿ—‘๏ธ @โ€‹types/yargs (removed)

๐Ÿ—‘๏ธ pretty-format (removed)

๐Ÿ—‘๏ธ react-is (removed)

๐Ÿ—‘๏ธ is-wsl (removed)

๐Ÿ—‘๏ธ commander (removed)

๐Ÿ—‘๏ธ hermes-estree (removed)

๐Ÿ—‘๏ธ hermes-estree (removed)

๐Ÿ—‘๏ธ hermes-parser (removed)

๐Ÿ—‘๏ธ hermes-parser (removed)

๐Ÿ—‘๏ธ flow-parser (removed)

๐Ÿ—‘๏ธ colorette (removed)

๐Ÿ—‘๏ธ decamelize (removed)

๐Ÿ—‘๏ธ source-map (removed)

๐Ÿ—‘๏ธ is-fullwidth-code-point (removed)

๐Ÿ—‘๏ธ isarray (removed)

๐Ÿ—‘๏ธ y18n (removed)

๐Ÿ—‘๏ธ readable-stream (removed)

๐Ÿ—‘๏ธ string_decoder (removed)


Depfu Status

Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.

All Depfu comment commands
@โ€‹depfu rebase
Rebases against your default branch and redoes this update
@โ€‹depfu recreate
Recreates this PR, overwriting any edits that you've made to it
@โ€‹depfu merge
Merges this PR once your tests are passing and conflicts are resolved
@โ€‹depfu cancel merge
Cancels automatic merging of this PR
@โ€‹depfu close
Closes this PR and deletes the branch
@โ€‹depfu reopen
Restores the branch and reopens this PR (if it's closed)
@โ€‹depfu pause
Ignores all future updates for this dependency and closes this PR
@โ€‹depfu pause [minor|major]
Ignores all future minor/major updates for this dependency and closes this PR
@โ€‹depfu resume
Future versions of this dependency will create PRs again (leaves this PR as is)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant