{"cve":"CVE-2023-43646","nvd":{"published":"2023-09-27T15:19:34.427","modified":"2026-06-17T06:26:08.773","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5},"cwes":["CWE-400","CWE-1333"],"references":["https://github.com/chaijs/get-func-name/commit/f934b228b5e2cb94d6c8576d3aac05493f667c69","https://github.com/chaijs/get-func-name/security/advisories/GHSA-4q6p-r6v2-jvc5","https://github.com/chaijs/get-func-name/commit/f934b228b5e2cb94d6c8576d3aac05493f667c69","https://github.com/chaijs/get-func-name/security/advisories/GHSA-4q6p-r6v2-jvc5"],"products":["chaijs:get-func-name"],"source":"nvd","synced_at":"2026-10-19T21:39:34.467980132+00:00"},"epss":{"cve":"CVE-2023-43646","score":0.01383,"percentile":0.72176,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-4q6p-r6v2-jvc5","url":"https://osv.dev/vulnerability/GHSA-4q6p-r6v2-jvc5","summary":"Chaijs/get-func-name vulnerable to ReDoS","modified":"2026-08-07T08:12:08.968840480Z","packages":[{"ecosystem":"npm","name":"get-func-name","purl":"pkg:npm/get-func-name","ranges":["<2.0.1"],"fixed":["2.0.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}