Skip to content
Fencer Vulns
high 8.6

CVE-2023-43646 json

Inefficient Regular Expression Complexity in get-func-name

published 2023-09-26 3 y ago modified 2026-08-07 3 mo ago also GHSA-4q6p-r6v2-jvc5 , EUVD-2023-2419

cvss
8.6
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
1.4%
EPSS 1.4% chance of exploitation in 30 days, percentile 72%
public exploits
0
none known

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.

Patch / fix

  • npm get-func-name 2.0.1
  • chaijs get-func-name 2.0.1
  • node-get-func-name Debian 14, Debian 13 2.0.2-1

debian advisories DEBIAN-CVE-2023-43646

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2023-43646 updated cvss 7.5

get-func-name: ReDoS in chai module

  • Red Hat OpenShift Service Mesh 2 openshift-service-mesh/kiali-rhel8
    affected: no fix available
  • Red Hat JBoss Data Grid 7 get-func-name
    affected: no fix planned “Out of support scope”
  • Red Hat OpenShift Container Platform 4 openshift4/ose-console
    affected: no fix planned “Will not fix”
  • Red Hat OpenShift Dev Spaces devspaces/traefik-rhel8
    affected: no fix available
  • Red Hat RHODF 4.15 for RHEL 9 odf4/odf-console-rhel9 v4.15.0-57
    fixed: vendor fix RHSA-2024:1383
  • Red Hat RHODF 4.16 for RHEL 9 odf4/odf-multicluster-console-rhel9 v4.16.0-58
    fixed: vendor fix RHSA-2024:4591
  • Red Hat Enterprise Linux 8 pcs, pcs-snmp Red Hat JBoss Enterprise Application Platform 8 get-func-name Red Hat RHODF 4.15 for RHEL 9 odf4/cephcsi-rhel9 v4.15.0-37, odf4/odf-cli-rhel9 v4.15.0-22, odf4/mcg-core-rhel9 v4.15.0-68, odf4/mcg-rhel9-operator v4.15.0-39, odf4/ocs-rhel9-operator v4.15.0-79, odf4/odf-rhel9-operator v4.15.0-19, +19 more Red Hat RHODF 4.16 for RHEL 9 odf4/cephcsi-rhel9 v4.16.0-33, odf4/odf-cli-rhel9 v4.16.0-44, odf4/mcg-core-rhel9 v4.16.0-60, odf4/odf-console-rhel9 v4.16.0-57, odf4/mcg-rhel9-operator v4.16.0-38, odf4/ocs-rhel9-operator v4.16.0-76, +22 more
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
Proof of concept is public
Automatable
yes
Technical impact
partial
Assessed
2 y ago

Exploit prediction

1.38% chance of exploitation in the next 30 days, higher than 72% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • github.com https://github.com/chaijs/get-func-name/security/advisories/GHSA-4q6p-r6v2-jvc5 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 3.1 8.6 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H
NVD 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHub 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected packages

ecosystem package affected fixed in
npm get-func-name
<2.0.1
2.0.1

Affected products

  • chaijs get-func-name

Classification

Weakness
  • CWE-400 Uncontrolled Resource Consumption
  • CWE-1333 Inefficient Regular Expression Complexity

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.