-
Notifications
You must be signed in to change notification settings - Fork 927
Outdated and Vulnerable [email protected] Dependency in React Native 0.80.0Β #2688
Copy link
Copy link
Open
Description
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
[email protected]
@react-native-community/[email protected]
- Transitive dependency:
[email protected]
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
Labels
No labels