{"answers":{"affected":"2 open source packages ship an affected version, including get-func-name. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-43646 exists.","fix":"Upgrade get-func-name to 2.0.1 or later.","what":"CVE-2023-43646 is a high-severity denial of service vulnerability in chaijs get-func-name, published on 26 Sep 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-43646 and fix it if it is affected.\n\nWhat it is: CVE-2023-43646 is a high-severity denial of service vulnerability in chaijs get-func-name, published on 26 Sep 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-43646 exists.\n\nAffected packages and fixed versions:\n- get-func-name (npm): affected all versions; fixed in 2.0.1\n- get-func-name (npm): affected all versions; fixed in 2.0.1\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-2023-43646/ (Markdown: https://insights.sbomify.com/CVE-2023-43646/index.md)","id":"CVE-2023-43646","markdown":"https://insights.sbomify.com/CVE-2023-43646/index.md","name":"CVE-2023-43646","record":{"aliases":["DEBIAN-CVE-2023-43646","GHSA-4q6p-r6v2-jvc5","UBUNTU-CVE-2023-43646"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"JavaScript utility library","requires_auth":"none","summary":"Attackers can cause denial of service via excessive CPU usage by exploiting inefficient regular expressions in the get-func-name library.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"get-func-name","vendor":"chaijs"}],"cvss":{"score":8.6,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"},{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"description":"get-func-name is a module to retrieve a function's name securely and consistently both in NodeJS and the browser. Versions prior to 2.0.1 are subject to a regular expression denial of service (redos) vulnerability which may lead to a denial of service when parsing malicious input. This vulnerability can be exploited when there is an imbalance in parentheses, which results in excessive backtracking and subsequently increases the CPU load and processing time significantly. This vulnerability can be triggered using the following input: '\\t'.repeat(54773) + '\\t/function/i'. This issue has been addressed in commit `f934b228b` which has been included in releases from 2.0.1. Users are advised to upgrade. There are no known workarounds for this vulnerability.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":"2024-08-21","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2024-08-21T04:11:44Z","kind":"github_poc","ref":"https://github.com/200101WhoAmI/CVE-2023-43646","stars":0,"title":"redos"}],"tier":"weaponised"},"has_fix":true,"headline":"Inefficient Regular Expression Complexity in get-func-name","id":"CVE-2023-43646","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"denial_of_service","year":"2023"},"n_packages":2,"n_references":2,"next":{"headline":"baserCMS Cross-site Scripting vulnerability in File upload Feature","id":"CVE-2023-43647"},"packages":[{"ecosystem":"npm","fixed":["2.0.1"],"introduced":["0"],"last_affected":[],"package":"get-func-name","purl":null,"source":"GHSA-4q6p-r6v2-jvc5"},{"ecosystem":"npm","fixed":["2.0.1"],"introduced":["0"],"last_affected":[],"package":"get-func-name","purl":"pkg:npm/get-func-name","source":"GHSA-4q6p-r6v2-jvc5"}],"prev":{"headline":"Denial of service from circular relationship definitions in OpenFGA","id":"CVE-2023-43645"},"products":["get-func-name"],"published":"2023-09-26","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)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-09-24","vendors":["chaijs"]},"summary":"Attackers can cause denial of service via excessive CPU usage by exploiting inefficient regular expressions in the get-func-name library.","url":"https://insights.sbomify.com/CVE-2023-43646/"}