Inefficient Regular Expression Complexity in get-func-name
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2023-43646
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 8 Nov 2026, 02:04 UTC · Revision 1
Source evidence
Inefficient Regular Expression Complexity in get-func-name
core-osv · Original sourcePublished 26 Sept 2023, 18:19 UTC
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.
osv:CVE-2023-43646
Complete source record
{
"id": "237e4131c7087ec2130db2f92479a61ed1e232769f812ad5a92987dd2bd53dba",
"url": "https://osv.dev/vulnerability/CVE-2023-43646",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Inefficient Regular Expression Complexity in get-func-name",
"summary": "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.",
"evidence": "osv:CVE-2023-43646",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2023-43646",
"aliases": [
"CVE-2023-43646",
"GHSA-4q6p-r6v2-jvc5"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/chaijs/get-func-name",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "27ad8ba2225ebc10292a82c619258ad8c042e638"
},
{
"fixed": "f934b228b5e2cb94d6c8576d3aac05493f667c69"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:chaijs:get-func-name:*:*:*:*:*:node.js:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "2.0.1"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "f934b228b5e2cb94d6c8576d3aac05493f667c69"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-43646.json"
}
}
],
"modified": "2026-10-28T02:30:52.982479015Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/43xxx/CVE-2023-43646.json",
"https://github.com/chaijs/get-func-name/security/advisories/GHSA-4q6p-r6v2-jvc5",
"https://nvd.nist.gov/vuln/detail/CVE-2023-43646",
"https://github.com/chaijs/get-func-name/commit/f934b228b5e2cb94d6c8576d3aac05493f667c69"
],
"provider_metadata": {
"cwe_ids": [
"CWE-1333",
"CWE-400"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/43xxx/CVE-2023-43646.json"
}
},
"related_cves": [
{
"value": "CVE-2023-43646",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 521611,
"published_at": "2023-09-26T18:19:29.443+00:00"
}