Skip to content

[Snyk] Fix for 2 vulnerabilities#137

Open
shamoilattaar-wednesday wants to merge 1 commit intomasterfrom
snyk-fix-5a9996c5dba6cc5f27b49847769e26b5
Open

[Snyk] Fix for 2 vulnerabilities#137
shamoilattaar-wednesday wants to merge 1 commit intomasterfrom
snyk-fix-5a9996c5dba6cc5f27b49847769e26b5

Conversation

@shamoilattaar-wednesday
Copy link
Collaborator

snyk-top-banner

Snyk has created this PR to fix 2 vulnerabilities in the yarn dependencies of this project.

Snyk changed the following file(s):

  • package.json
  • yarn.lock

Note for zero-installs users

If you are using the Yarn feature zero-installs that was introduced in Yarn V2, note that this PR does not update the .yarn/cache/ directory meaning this code cannot be pulled and immediately developed on as one would expect for a zero-install project - you will need to run yarn to update the contents of the ./yarn/cache directory.
If you are not using zero-install you can ignore this as your flow should likely be unchanged.

Vulnerabilities that will be fixed with an upgrade:

Issue Score
high severity Prototype Pollution
SNYK-JS-AXIOS-15252993
  828  
medium severity Missing Release of Resource after Effective Lifetime
SNYK-JS-INFLIGHT-6095116
  631  

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.
  • This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.

For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic


Learn how to fix vulnerabilities with free interactive lessons:

🦉 Prototype Pollution

@coderabbitai
Copy link

coderabbitai bot commented Feb 14, 2026

Important

Review skipped

Ignore keyword(s) in the title.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch snyk-fix-5a9996c5dba6cc5f27b49847769e26b5

Tip

Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@gemini-code-assist
Copy link

Summary of Changes

Hello @shamoilattaar-wednesday, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request, automatically generated by Snyk, focuses on enhancing the project's security posture by upgrading key dependencies. It specifically targets and resolves two identified vulnerabilities: a high-severity Prototype Pollution issue in axios and a medium-severity resource release vulnerability in inflight. The changes involve direct updates in package.json and a comprehensive refresh of the yarn.lock file to reflect these and other transitive dependency upgrades, ensuring a more secure and up-to-date dependency tree.

Highlights

  • Security Vulnerability Fixes: Upgraded the axios dependency from ^0.27.2 to ^1.13.5 to resolve a high-severity Prototype Pollution vulnerability (SNYK-JS-AXIOS-15252993).
  • Transitive Dependency Security Update: Addressed a medium-severity 'Missing Release of Resource after Effective Lifetime' vulnerability (SNYK-JS-INFLIGHT-6095116) in a transitive dependency, inflight, through broader dependency upgrades.
  • Core Dependency Updates: Updated @react-native/metro-config from ^0.75.0-main to ^0.84.0, leading to a significant refresh of related Babel and Metro dependencies in yarn.lock.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • package.json
    • Updated axios dependency to ^1.13.5
    • Updated @react-native/metro-config dependency to ^0.84.0
  • yarn.lock
    • Updated axios to 1.13.5
    • Updated @react-native/metro-config to 0.84.0
    • Updated numerous @babel related packages to their latest stable versions, including @babel/code-frame, @babel/compat-data, @babel/core, @babel/generator, @babel/helper-annotate-as-pure, @babel/helper-compilation-targets, @babel/helper-create-class-features-plugin, @babel/helper-define-polyfill-provider, @babel/helper-globals, @babel/helper-member-expression-to-functions, @babel/helper-module-imports, @babel/helper-module-transforms, @babel/helper-optimise-call-expression, @babel/helper-plugin-utils, @babel/helper-replace-supers, @babel/helper-skip-transparent-expression-wrappers, @babel/helper-string-parser, @babel/helper-validator-identifier, @babel/helper-validator-option, @babel/helpers, @babel/parser, @babel/plugin-proposal-export-default-from, @babel/plugin-syntax-flow, @babel/plugin-syntax-jsx, @babel/plugin-syntax-typescript, @babel/plugin-transform-flow-strip-types, @babel/plugin-transform-private-methods, @babel/plugin-transform-react-jsx, @babel/plugin-transform-react-jsx-self, @babel/plugin-transform-react-jsx-source, @babel/plugin-transform-runtime, @babel/plugin-transform-typescript, @babel/runtime, @babel/template, @babel/traverse, and @babel/types
    • Updated @jridgewell packages, including gen-mapping, remapping, and trace-mapping
    • Updated agent-base to 7.1.4
    • Updated babel-plugin-polyfill-corejs2 to 0.4.15
    • Updated babel-plugin-polyfill-corejs3 to 0.13.0
    • Updated babel-plugin-polyfill-regenerator to 0.6.6
    • Added babel-plugin-syntax-hermes-parser@0.32.0
    • Updated baseline-browser-mapping to 2.9.19
    • Updated browserslist to 4.28.1
    • Added call-bind-apply-helpers@1.0.2
    • Updated caniuse-lite to 1.0.30001769
    • Updated core-js-compat to 3.48.0
    • Updated debug to 4.4.3
    • Added dunder-proto@1.0.1
    • Updated electron-to-chromium to 1.5.286
    • Added es-define-property@1.0.1, es-object-atoms@1.1.1, es-set-tostringtag@2.1.0
    • Updated escalade to 3.2.0
    • Added fdir@6.5.0
    • Updated follow-redirects to 1.15.11
    • Updated form-data to 4.0.5
    • Updated get-intrinsic to 1.3.0
    • Added get-proto@1.0.1
    • Updated gopd to 1.2.0
    • Updated has-symbols to 1.1.0
    • Updated hermes-estree to 0.32.0
    • Updated hermes-parser to 0.32.0
    • Added https-proxy-agent@7.0.6
    • Updated is-core-module to 2.16.1
    • Updated jsesc to 3.1.0
    • Added math-intrinsics@1.1.0
    • Updated metro and related packages (metro-babel-transformer, metro-cache, metro-cache-key, metro-config, metro-core, metro-file-map, metro-minify-terser, metro-resolver, metro-runtime, metro-source-map, metro-symbolicate, metro-transform-plugins, metro-transform-worker) to 0.83.3
    • Updated ms to 2.1.3
    • Updated node-releases to 2.0.27
    • Updated ob1 to 0.83.3
    • Updated picocolors to 1.1.1
    • Added picomatch@4.0.3
    • Updated resolve to 1.22.11
    • Updated string-width to 4.2.3
    • Updated strip-ansi to 6.0.1
    • Added tinyglobby@0.2.15
    • Updated update-browserslist-db to 1.2.3
    • Updated wrap-ansi to 7.0.0
    • Updated yaml to 2.8.2
Activity
  • This pull request was automatically created by Snyk to address identified vulnerabilities in the project's dependencies.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request, automatically generated by Snyk, addresses two security vulnerabilities by upgrading axios and @react-native/metro-config. While these upgrades are important for security, they both involve major version bumps and are flagged as containing breaking changes.

I've added specific comments on package.json highlighting the potential impact of these upgrades. The axios upgrade to v1.x has well-known breaking changes, particularly around error handling. The @react-native/metro-config update is also substantial and could affect your project's build and bundling process.

It is critical to perform thorough regression testing across the application after merging these changes to ensure that no functionality is broken. Pay special attention to network requests and error handling logic, as well as the overall build and development server stability.

"@react-native-async-storage/async-storage": "1.23.1",
"@react-native-community/masked-view": "^0.1.11",
"@react-native/metro-config": "^0.75.0-main",
"@react-native/metro-config": "^0.84.0",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

Upgrading @react-native/metro-config from ^0.75.0-main to ^0.84.0 is a significant jump for a core part of the React Native build system. This could introduce breaking changes to your Metro bundler configuration or behavior. It's crucial to test the application build, startup, and hot-reloading functionality thoroughly after this change.

"@react-navigation/stack": "^6.3.29",
"@sentry/react-native": "^5.30.0",
"axios": "^0.27.2",
"axios": "^1.13.5",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

This upgrade of axios from version 0.27.2 to 1.13.5 is a major version change that introduces breaking changes. For example, the error handling has changed significantly. In axios < 1.0, the error object was directly available, but now it's often nested under error.response. You may need to update your error handling logic in catch blocks.

Please refer to the axios v1.0.0 release notes and thoroughly test all parts of the application that make HTTP requests.

@github-actions
Copy link

Coverage report

Statements coverage not met for global: expected >=80%, but got 79.09604519774011%

St.
Category Percentage Covered / Total
🟡 Statements 79.1% 140/177
🔴 Branches 44% 11/25
🟡 Functions 67.24% 39/58
🟢 Lines 80.25% 126/157

Test suite run success

47 tests passing in 17 suites.

Report generated by 🧪jest coverage report action from 73ad28c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants