Inefficient Regular Expression Complexity Affecting node-get-func-name package, versions <2.0.2-1


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.62% (69th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Inefficient Regular Expression Complexity vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-DEBIAN13-NODEGETFUNCNAME-5926455
  • published30 Sept 2023
  • disclosed27 Sept 2023

Introduced: 27 Sep 2023

CVE-2023-43646  (opens in a new tab)
CWE-1333  (opens in a new tab)
CWE-400  (opens in a new tab)

How to fix?

Upgrade Debian:13 node-get-func-name to version 2.0.2-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream node-get-func-name package and not the node-get-func-name package as distributed by Debian. See How to fix? for Debian:13 relevant fixed versions and status.

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 Base Scores

version 3.1