Vulnerabilities in pkg:npm/react-native-reanimated
PACKAGECVE-2022-24373 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-1333: Inefficient Regular Expression Complexity) affecting React native reanimated libraries in the npm ecosystem. The issue involves react-native-reanimated vulnerable to redos. Remediation is available by upgrading affected packages to version 2.10.0.
pkg:npm/react-native-reanimated
Vulnerability advisories affecting package pkg:npm/react-native-reanimated. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-2j79-8pqc-r7x6 | CVE-2022-24373 | HIGH | react-native-reanimated vulnerable to ReDoS |
CVE-2022-24373 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2022-24373
To remediate this vulnerability, upgrade all affected React native reanimated dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install react-native-reanimated@2.10.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls react-native-reanimated
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2022-24373, inspect your project dependencies using npm:
npm ls react-native-reanimated
Analyze the terminal output to locate any version of React native reanimated in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.10.0), your application is affected.
Note: The npm ls react-native-reanimated command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-1333: Inefficient Regular Expression Complexity, where the product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential. In React native reanimated, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2022-24373 Affected React native reanimated Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
react-native-reanimated
|
npm |
< 2.10.0
|
2.10.0
|
References
Frequently Asked Questions
What is CVE-2022-24373?
Which React native reanimated versions are affected?
What version fixes CVE-2022-24373?
Is react-native-reanimated affected?
What is the CVSS score of CVE-2022-24373?
What CWE is associated with CVE-2022-24373?
How can I check npm dependencies for CVE-2022-24373?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-2j79-8pqc-r7x6",
"modified" : "2023-04-12T20:46:47Z",
"published" : "2022-10-01T00:00:24Z",
"aliases" : [ "CVE-2022-24373" ],
"summary" : "react-native-reanimated vulnerable to ReDoS",
"details" : "The package react-native-reanimated before 2.10.0 is vulnerable to Regular Expression Denial of Service (ReDoS) due to improper usage of regular expression in the parser of Colors.js.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "react-native-reanimated"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.10.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-24373"
}, {
"type" : "WEB",
"url" : "https://github.com/software-mansion/react-native-reanimated/pull/3382"
}, {
"type" : "WEB",
"url" : "https://github.com/software-mansion/react-native-reanimated/pull/3382/commits/7adf06d0c59382d884a04be86a96eede3d0432fa"
}, {
"type" : "WEB",
"url" : "https://github.com/software-mansion/react-native-reanimated/commit/8a927904366fa2d02df7a11553f8b0aa93471279"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/software-mansion/react-native-reanimated"
}, {
"type" : "WEB",
"url" : "https://github.com/software-mansion/react-native-reanimated/compare/2.9.1...2.10.0"
}, {
"type" : "WEB",
"url" : "https://github.com/software-mansion/react-native-reanimated/releases/tag/3.0.0-rc.1"
}, {
"type" : "WEB",
"url" : "https://security.snyk.io/vuln/SNYK-JS-REACTNATIVEREANIMATED-2949507"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1333" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2022-10-04T21:16:38Z",
"nvd_published_at" : "2022-09-30T05:15:00Z"
}
}