CVE-2022-24373: react-native-reanimated Regular Expression Denial of Service (ReDoS)

react-native-reanimated Updated 02 Oct 2025

Summary

01/10/2022
Yes i
High
7.5

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 ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

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 →

Share this vulnerability

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.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback