Denial of Service (DoS)
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.
| Package | Affected versions | Patched versions |
|---|---|---|
fast-string-searchnpm | <= 1.4.3 | — |
Affected products
2- fast-string-search/fast-string-searchdescription
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
3- github.com/advisories/GHSA-4263-q746-94mwghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2022-22138ghsaADVISORY
- snyk.io/vuln/SNYK-JS-FASTSTRINGSEARCH-2392367ghsax_refsource_MISCWEB
News mentions
0No linked articles in our index yet.