CVE-2022-24373: react-native-reanimated Regular Expression Denial of Service (ReDoS)
Summary
CVE-2022-24373: react-native-reanimated vulnerable to ReDoS. Affects react-native-reanimated versions < 2.10.0. Fixed in 2.10.0. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
react-native-reanimated is an npm package that provides a set of high-performance, fully customizable, and declarative animation primitives for React Native applications. It allows developers to create smooth and interactive animations with ease. However, versions prior to 2.10.0 are vulnerable to a Regular Expression Denial of Service (ReDoS) attack. This vulnerability arises from improper usage of regular expressions in the parser of Colors.js, a module within react-native-reanimated.
Vulnerability Detail
The vulnerability in react-native-reanimated can be exploited through malicious input that triggers a ReDoS attack. An attacker can craft a specially crafted input that causes the regular expression parser in Colors.js to enter into an inefficient matching process. This can lead to a significant increase in CPU usage and potentially result in a denial of service condition. The severity of this vulnerability is rated as HIGH with a CVSS score of 7.5.
How To Fix
Latest published version: 4.7.1 as of 22 Oct 2026
npm install react-native-reanimated@4.7.1
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
2.10.0
This is the first release that contains the fix.
npm install react-native-reanimated@2.10.0
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
There is no known workaround for this vulnerability. It is recommended to upgrade to the fixed version of react-native-reanimated as soon as possible.
Conclusion
The react-native-reanimated package prior to version 2.10.0 is vulnerable to a Regular Expression Denial of Service (ReDoS) attack. This vulnerability can be mitigated by upgrading to version 2.10.0 or later. It is recommended to update the package as soon as possible to prevent the possibility of a denial of service condition. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for react-native-reanimated →
FAQ
react-native-reanimated is an npm package that provides animation primitives for React Native applications, allowing developers to create smooth and interactive animations.
A ReDoS attack is a type of denial of service attack that exploits inefficient regular expressions, causing the target application to consume excessive CPU resources and potentially become unresponsive.
This vulnerability can lead to a denial of service condition in applications that use react-native-reanimated. An attacker can exploit the vulnerability to cause the application to consume excessive CPU resources, potentially rendering it unresponsive.
You can use Vulert's playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities, using just the package-lock.json file.
For further support on vulnerability remediation, you can reach out to info@devnack.com. They can provide guidance and assistance in fixing the vulnerability in your application.