{"answers":{"affected":"2 open source packages ship an affected version, including taro-css-to-react-native. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-5896 exists.","fix":"Upgrade taro-css-to-react-native to 4.1.2 or later.","what":"CVE-2025-5896 is a medium-severity denial of service vulnerability in tarojs taro, published on 9 Jun 2025. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-5896 and fix it if it is affected.\n\nWhat it is: CVE-2025-5896 is a medium-severity denial of service vulnerability in tarojs taro, published on 9 Jun 2025. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-5896 exists.\n\nAffected packages and fixed versions:\n- taro-css-to-react-native (npm): affected all versions; fixed in 4.1.2\n- taro-css-to-react-native (npm): affected all versions; fixed in 4.1.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-5896/ (Markdown: https://insights.sbomify.com/CVE-2025-5896/index.md)","id":"CVE-2025-5896","markdown":"https://insights.sbomify.com/CVE-2025-5896/index.md","name":"CVE-2025-5896","record":{"aliases":["GHSA-f5xg-cfpj-2mw6"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"TaroJS CSS library","requires_auth":"low_privilege","summary":"Remote attackers can cause denial of service via inefficient regular expressions in the TaroJS CSS-to-React-Native conversion library.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"VulDB","cpe":[{"product":"taro","vendor":"taro"}],"cvss":{"score":5.3,"severity":"medium","source":"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","version":"4.0"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"},{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"tarojs taro index.js redos","id":"CVE-2025-5896","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"denial_of_service","year":"2025"},"n_packages":2,"n_references":6,"next":{"headline":"vuejs vue-cli Markdown Code HtmlPwaPlugin.js HtmlPwaPlugin redos","id":"CVE-2025-5897"},"packages":[{"ecosystem":"npm","fixed":["4.1.2"],"introduced":["0"],"last_affected":[],"package":"taro-css-to-react-native","purl":null,"source":"GHSA-f5xg-cfpj-2mw6"},{"ecosystem":"npm","fixed":["4.1.2"],"introduced":["0"],"last_affected":[],"package":"taro-css-to-react-native","purl":"pkg:npm/taro-css-to-react-native","source":"GHSA-f5xg-cfpj-2mw6"}],"prev":{"headline":"Metabase dom.js parseDataUri redos","id":"CVE-2025-5895"},"products":["taro"],"published":"2025-06-09","related":[{"cvss_score":7.5,"headline":"Inefficient Regular Expression Complexity in nervjs/taro","id":"CVE-2021-3804","kev_date_added":null,"published":"2021-09-17"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-06-10","vendors":["tarojs"]},"summary":"Remote attackers can cause denial of service via inefficient regular expressions in the TaroJS CSS-to-React-Native conversion library.","url":"https://insights.sbomify.com/CVE-2025-5896/"}