# CVE-2023-43646: Inefficient Regular Expression Complexity in get-func-name

- Severity: High 8.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.38%, higher than 72% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-09-26T18:19:29.443Z
- Modified: 2026-08-07T08:12:08.968Z
- Also known as: GHSA-4q6p-r6v2-jvc5
- Weaknesses: CWE-400, CWE-1333
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- chaijs get-func-name: < 2.0.1; before 2.0.1
- get-func-name (npm): before 2.0.1

## Every score

- GitHub_M: CVSS:3.1 8.6 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/chaijs/get-func-name/security/advisories/GHSA-4q6p-r6v2-jvc5> (exploit, third-party-advisory, web)
- <https://github.com/chaijs/get-func-name/commit/f934b228b5e2cb94d6c8576d3aac05493f667c69> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-43646> (advisory)
- <https://github.com/chaijs/get-func-name> (package)
- <https://github.com/chaijs/get-func-name/blob/78ad756441a83f3dc203e50f76c113ae3ac017dc/index.js#L15> (web)

## Sources

- CVE List: [CVE-2023-43646](https://www.cve.org/CVERecord?id=CVE-2023-43646), CVE Terms of Use, modified 2024-09-24
- GitHub Advisory Database: [GHSA-4q6p-r6v2-jvc5](https://github.com/advisories/GHSA-4q6p-r6v2-jvc5), CC-BY-4.0, modified 2026-08-07
- NVD: [CVE-2023-43646](https://nvd.nist.gov/vuln/detail/CVE-2023-43646), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-43646 · Whole record: https://cve.day/CVE-2023-43646.json · Rebuilt by cve.day 2026-11-25T22:58:28.183Z
