Skip to content

[Snyk] Fix for 3 vulnerabilities#21

Open
revan-zhang wants to merge 1 commit intomasterfrom
snyk-fix-eb846521404ecb940cd4621e52023823
Open

[Snyk] Fix for 3 vulnerabilities#21
revan-zhang wants to merge 1 commit intomasterfrom
snyk-fix-eb846521404ecb940cd4621e52023823

Conversation

@revan-zhang
Copy link
Copy Markdown

@revan-zhang revan-zhang commented Apr 4, 2026

snyk-top-banner

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

Snyk changed the following file(s):

  • Example/package.json
  • Example/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 XML Injection
SNYK-JS-XMLDOM-15869637
  660  
high severity Arbitrary Code Injection
SNYK-JS-LODASH-15869625
  630  
medium severity Prototype Pollution
SNYK-JS-LODASH-15869619
  545  

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
🦉 Arbitrary Code Injection
🦉 XML Injection


Open with Devin

@revan-zhang
Copy link
Copy Markdown
Author

revan-zhang commented Apr 4, 2026

Snyk checks have failed. 5 issues have been found so far.

Status Scan Engine Critical High Medium Low Total (5)
Open Source Security 0 3 2 0 5 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@socket-security
Copy link
Copy Markdown

Warning

Review the following alerts detected in dependencies.

According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.

Action Severity Alert  (click "▶" to expand/collapse)
Warn High
Obfuscated code: npm @react-native/debugger-frontend is 96.0% likely obfuscated

Confidence: 0.96

Location: Package overview

From: ?npm/react-native@0.83.1npm/@react-native/debugger-frontend@0.83.1

ℹ Read more on: This package | This alert | What is obfuscated code?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should not obfuscate their code. Consider not using packages with obfuscated code.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@react-native/debugger-frontend@0.83.1. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn High
Obfuscated code: npm entities is 91.0% likely obfuscated

Confidence: 0.91

Location: Package overview

From: ?npm/react-native-svg@12.1.0npm/react-native-svg@15.15.1npm/entities@4.5.0

ℹ Read more on: This package | This alert | What is obfuscated code?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should not obfuscate their code. Consider not using packages with obfuscated code.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/entities@4.5.0. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

View full report

Copy link
Copy Markdown

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

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

Devin Review found 1 potential issue.

View 2 additional findings in Devin Review.

Open in Devin Review

Comment thread Example/package.json
"react": "16.13.1",
"react-coin-icon": "^0.1.19",
"react-native": "0.63.2",
"react-native": "0.69.12",
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔴 react-native 0.69.12 requires React 18 but React is still pinned to 16.13.1

react-native was bumped from 0.63.2 to 0.69.12, but react remains pinned at 16.13.1 (line 17) and react-test-renderer at 16.13.1 (line 36). React Native 0.69.12 has a peer dependency on react: 18.0.0. This version mismatch will cause peer dependency warnings and likely runtime failures, as React Native 0.69 relies on React 18 internals.

Prompt for agents
In Example/package.json, react-native was upgraded to 0.69.12 which requires react 18.0.0 as a peer dependency. The react version on line 17 needs to be updated from 16.13.1 to 18.0.0, and react-test-renderer on line 36 should also be updated to match (18.0.0). Other dependencies like react-native-reanimated (currently ^2.0.0-alpha.7) may also need version bumps to be compatible with React Native 0.69.
Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

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