A security vulnerability has been identified in the ip package used by both @react-native-community/cli-doctor and @react-native-community/cli-hermes. The ip package versions <=2.0.1 are susceptible to Server-Side Request Forgery (SSRF) due to improper categorization of certain IP addresses via the isPublic function.
Impact: Potential for SSRF attacks, which can lead to unauthorized access to internal services or sensitive data.
Both @react-native-community/cli-doctor@11.3.2 and @react-native-community/cli-hermes@11.3.2 depend on ip@1.1.9, which falls within the vulnerable range.
Reproducible Demo
While this vulnerability doesn't involve a reproducible bug, it affects the project's security posture due to the following dependency tree:
Environment
Description
A security vulnerability has been identified in the
ip
package used by both@react-native-community/cli-doctor
and@react-native-community/cli-hermes
. Theip
package versions<=2.0.1
are susceptible to Server-Side Request Forgery (SSRF) due to improper categorization of certain IP addresses via theisPublic
function.Vulnerability Details:
ip@<=2.0.1
Both
@react-native-community/cli-doctor@11.3.2
and@react-native-community/cli-hermes@11.3.2
depend onip@1.1.9
, which falls within the vulnerable range.Reproducible Demo
While this vulnerability doesn't involve a reproducible bug, it affects the project's security posture due to the following dependency tree:
@react-native-community/cli-doctor@11.3.2 └─ ip@1.1.9 (via ^1.1.5)
@react-native-community/cli-hermes@11.3.2 └─ ip@1.1.9 (via ^1.1.5)
Steps to Identify the Vulnerability:
yarn why ip
and identified that both CLI packages depend onip@1.1.9
.ip@<=2.0.1
is vulnerable to SSRF attacks.Impact Assessment
@react-native-community/cli-doctor
and@react-native-community/cli-hermes
version11.3.2
are potentially affected.