VYPR
High severityNVD Advisory· Published Jun 17, 2022· Updated Sep 17, 2024

Denial of Service (DoS)

CVE-2022-22138

Description

All versions of fast-string-search are vulnerable to Denial of Service via incorrect computations for non-string inputs leading to segmentation fault.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

All versions of fast-string-search are vulnerable to Denial of Service via incorrect computations for non-string inputs leading to segmentation fault.

The fast-string-search npm package, which provides fast substring search using N-API and Boyer-Moore-MagicLen, contains a vulnerability that causes a Denial of Service (DoS) when non-string inputs are provided [1]. The flaw arises because the package does not properly validate input types, leading to incorrect computations that violate memory access permissions [2].

An attacker can exploit this vulnerability by calling functions such as indexOfSkip with a non-string argument (e.g., 1 instead of a string). This triggers a segmentation fault in the Node.js V8 engine, crashing the application [2]. The attack requires no authentication and can be triggered remotely if the application processes user-supplied data through the vulnerable functions.

Successful exploitation results in a complete service outage due to process termination. The vulnerability affects all versions of the package, and no fix is available [2]. The only mitigation is to avoid using the package or to implement input validation to ensure only string arguments are passed to its functions.

AI Insight generated on May 21, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
fast-string-searchnpm
<= 1.4.3

Affected products

2

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

3

News mentions

0

No linked articles in our index yet.