{"answers":{"affected":"2 open source packages ship an affected version, including @vue/cli-plugin-pwa. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-5897 exists.","fix":"No fix has been published for CVE-2025-5897 yet. Limit exposure of the affected software until one is available.","what":"CVE-2025-5897 is a medium-severity denial of service vulnerability in vuejs vue-cli, 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-5897 and fix it if it is affected.\n\nWhat it is: CVE-2025-5897 is a medium-severity denial of service vulnerability in vuejs vue-cli, 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-5897 exists.\n\nAffected packages and fixed versions:\n- @vue/cli-plugin-pwa (npm): affected all versions up to 5.0.8; no fix listed\n- @vue/cli-plugin-pwa (npm): affected all versions up to 5.0.8; no fix listed\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-5897/ (Markdown: https://insights.sbomify.com/CVE-2025-5897/index.md)","id":"CVE-2025-5897","markdown":"https://insights.sbomify.com/CVE-2025-5897/index.md","name":"CVE-2025-5897","record":{"aliases":["GHSA-79vf-hf9f-j9q8"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Vue CLI PWA plugin","requires_auth":"low_privilege","summary":"Remote attackers can cause denial of service in Vue CLI PWA plugin via inefficient regular expressions in HtmlPwaPlugin.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"VulDB","cpe":[{"product":"vue_cli","vendor":"vuejs"}],"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 vuejs vue-cli up to 5.0.8. It has been rated as problematic. This issue affects the function HtmlPwaPlugin of the file packages/@vue/cli-plugin-pwa/lib/HtmlPwaPlugin.js of the component Markdown Code Handler. The manipulation leads to inefficient regular expression complexity. The attack may be initiated remotely.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":false,"headline":"vuejs vue-cli Markdown Code HtmlPwaPlugin.js HtmlPwaPlugin redos","id":"CVE-2025-5897","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"denial_of_service","year":"2025"},"n_packages":2,"n_references":4,"next":{"headline":"GNU PSPP pspp-convert.c parse_variables_option out-of-bounds write","id":"CVE-2025-5898"},"packages":[{"ecosystem":"npm","fixed":[],"introduced":["0"],"last_affected":["5.0.8"],"package":"@vue/cli-plugin-pwa","purl":null,"source":"GHSA-79vf-hf9f-j9q8"},{"ecosystem":"npm","fixed":[],"introduced":["0"],"last_affected":["5.0.8"],"package":"@vue/cli-plugin-pwa","purl":"pkg:npm/%40vue/cli-plugin-pwa","source":"GHSA-79vf-hf9f-j9q8"}],"prev":{"headline":"tarojs taro index.js redos","id":"CVE-2025-5896"},"products":["vue-cli"],"published":"2025-06-09","related":[],"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":["vuejs"]},"summary":"Remote attackers can cause denial of service in Vue CLI PWA plugin via inefficient regular expressions in HtmlPwaPlugin.","url":"https://insights.sbomify.com/CVE-2025-5897/"}