CVE-2025-5896: Taro css to react native Denial of Service Vulnerability
MODERATECVE-2025-5896 is a MODERATE (CVSS 4.3) denial of service vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Taro css to react native libraries in the npm ecosystem. The issue involves taro-css-to-react-native regular expression denial of service vulnerability. Remediation is available by upgrading affected packages to version 4.1.2.
CVE-2025-5896 at a Glance
Security Impact
CVSS: 4.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L).
How to Fix CVE-2025-5896
To remediate this vulnerability, upgrade all affected Taro css to react native 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 taro-css-to-react-native@4.1.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls taro-css-to-react-native
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2025-5896, inspect your project dependencies using npm:
npm ls taro-css-to-react-native
Analyze the terminal output to locate any version of Taro css to react native in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.1.2), your application is affected.
Note: The npm ls taro-css-to-react-native 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-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Taro css to react native, 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-2025-5896 Affected Taro css to react native Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
taro-css-to-react-native
|
npm |
< 4.1.2
|
4.1.2
|
References
Frequently Asked Questions
What is CVE-2025-5896?
Which Taro css to react native versions are affected?
What version fixes CVE-2025-5896?
Is taro-css-to-react-native affected?
What is the CVSS score of CVE-2025-5896?
What CWE is associated with CVE-2025-5896?
How can I check npm dependencies for CVE-2025-5896?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-f5xg-cfpj-2mw6",
"modified" : "2025-06-09T23:08:45Z",
"published" : "2025-06-09T21:30:52Z",
"aliases" : [ "CVE-2025-5896" ],
"summary" : "taro-css-to-react-native Regular Expression Denial of Service vulnerability",
"details" : "A vulnerability was found in tarojs taro up to 4.1.1. It has been declared as problematic. This vulnerability affects unknown code of the file taro/packages/css-to-react-native/src/index.js. The manipulation leads to inefficient regular expression complexity. The attack can be initiated remotely. Upgrading to version 4.1.2 is able to address this issue. The name of the patch is c2e321a8b6fc873427c466c69f41ed0b5e8814bf. It is recommended to upgrade the affected component.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "taro-css-to-react-native"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.1.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-5896"
}, {
"type" : "WEB",
"url" : "https://github.com/NervJS/taro/pull/17619"
}, {
"type" : "WEB",
"url" : "https://github.com/NervJS/taro/commit/c2e321a8b6fc873427c466c69f41ed0b5e8814bf"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/NervJS/taro"
}, {
"type" : "WEB",
"url" : "https://github.com/NervJS/taro/releases/tag/v4.1.2"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/?ctiid.311668"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/?id.311668"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/?submit.585796"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1333", "CWE-400" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-06-09T23:08:45Z",
"nvd_published_at" : "2025-06-09T21:15:47Z"
}
}