Vulnerability · Published Jun 9, 2025 · Assigned by VulDB
CVE-2025-5896tarojs taro index.js redos
Medium 4.3
In plain English
A medium-severity regular-expression denial of service in taro from tarojs. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 52% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | taro-css-to-react-native | 4.1.2 | GHSA-f5xg-cfpj-2mw6 |
Affected products (as reported)
Weakness: CWE-1333, CWE-400 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L/E:X/RL:O/RC:C
References
- VDB-311668 | tarojs taro index.js redos vdb-entry
- VDB-311668 | CTI Indicators (IOB, IOC, TTP, IOA) signature, permissions-required
- Submit #585796 | @tarojs/taro 4.1.1 Inefficient Regular Expression Complexity third-party-advisory
- https://github.com/NervJS/taro/pull/17619 issue-tracking
- https://github.com/NervJS/taro/commit/c2e321a8b6fc873427c466c69f41ed0b5e8814bf patch
- https://github.com/NervJS/taro/releases/tag/v4.1.2 patch