Skip to content

Outdated and Vulnerable [email protected] Dependency in React Native 0.80.0Β #2688

@Siddhantshelake

Description

@Siddhantshelake

Description

πŸ›‘οΈ Security Vulnerability in [email protected] via React Native CLI dependencies

React Native 0.80.0 still includes a transitive dependency on the debug package version 2.6.9, which is known to have a CWE-1333: Regular Expression Denial of Service (ReDoS) vulnerability.

πŸ“¦ Affected Version

Steps to reproduce

πŸ” Steps to Reproduce

  • Create a new React Native project using version 0.80.0:
    npx react-native init TestVulnApp --version 0.80.0
    cd TestVulnApp
Install dependencies:
`npm install`
Run the following to trace the vulnerable debug version:
`npm ls debug`


You'll see [email protected] as a transitive dependency pulled in via:
`β”œβ”€β”¬ @react-native-community/[email protected]
β”‚ └─┬ @react-native-community/[email protected]
β”‚   β”œβ”€β”¬ [email protected]
β”‚   β”‚ └── [email protected]
β”‚   β”œβ”€β”¬ [email protected]
β”‚   β”‚ └── [email protected]
β”‚   β”œβ”€β”¬ [email protected]
β”‚   β”‚ β”œβ”€β”€ [email protected]
β”‚   β”‚ └─┬ [email protected]
β”‚   β”‚   └── [email protected]
β”‚   └─┬ [email protected]
β”‚     └─┬ [email protected]
β”‚       └── [email protected]
└─┬ [email protected]
  └─┬ @react-native/[email protected]
    └─┬ @react-native/[email protected]
      └─┬ [email protected]
        └─┬ [email protected]
          └── [email protected]
`


### React Native Version

0.80.0

### Affected Platforms

Runtime - Android

### Output of `npx @react-native-community/cli info`

```text
na

Stacktrace or Logs

β”œβ”€β”¬ @react-native-community/[email protected]
β”‚ └─┬ @react-native-community/[email protected]
β”‚   β”œβ”€β”¬ [email protected]
β”‚   β”‚ └── [email protected]
β”‚   β”œβ”€β”¬ [email protected]
β”‚   β”‚ └── [email protected]
β”‚   β”œβ”€β”¬ [email protected]
β”‚   β”‚ β”œβ”€β”€ [email protected]
β”‚   β”‚ └─┬ [email protected]
β”‚   β”‚   └── [email protected]
β”‚   └─┬ [email protected]
β”‚     └─┬ [email protected]
β”‚       └── [email protected]
└─┬ [email protected]
  └─┬ @react-native/[email protected]
    └─┬ @react-native/[email protected]
      └─┬ [email protected]
        └─┬ [email protected]
          └── [email protected]

MANDATORY Reproducer

https://cwe.mitre.org/data/definitions/1333.html

Screenshots and Videos

References
CWE: https://cwe.mitre.org/data/definitions/1333.htm

Suggested Solution
Please consider upgrading internal dependencies that rely on [email protected] or refactor the CLI to use alternatives that depend on debug@^4.3.1.

This will help clean up security audit reports and improve compliance for teams using React Native.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions