CVE-2025-5896: taro-css-to-react-native Regular Expression Denial of Service vulnerability
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.
References
- github.com/NervJS/taro
- github.com/NervJS/taro/commit/c2e321a8b6fc873427c466c69f41ed0b5e8814bf
- github.com/NervJS/taro/pull/17619
- github.com/NervJS/taro/releases/tag/v4.1.2
- github.com/advisories/GHSA-f5xg-cfpj-2mw6
- nvd.nist.gov/vuln/detail/CVE-2025-5896
- vuldb.com/?ctiid.311668
- vuldb.com/?id.311668
- vuldb.com/?submit.585796
Code Behaviors & Features
Detect and mitigate CVE-2025-5896 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →