{"id":"GHSA-hmqg-p8f8-3qrw","summary":"Out-of-bounds Read in fast-string-search","details":"All versions of package fast-string-search are vulnerable to Out-of-bounds Read due to incorrect memory freeing and length calculation for any non-string input as the source. This allows the attacker to read previously allocated memory.","aliases":["CVE-2022-25872"],"modified":"2026-03-16T03:12:34.772460Z","published":"2022-06-18T00:00:19Z","database_specific":{"nvd_published_at":"2022-06-17T20:15:00Z","cwe_ids":["CWE-125"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2022-06-20T22:28:11Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25872"},{"type":"PACKAGE","url":"https://github.com/magiclen/node-fast-string-search"},{"type":"WEB","url":"https://github.com/magiclen/node-fast-string-search/blob/c8dd9fc966abc80b327f509e63360f59e0de9fb5/src/fast-string-search.c%23L192"},{"type":"WEB","url":"https://snyk.io/vuln/SNYK-JS-FASTSTRINGSEARCH-2392368"}],"affected":[{"package":{"name":"fast-string-search","ecosystem":"npm","purl":"pkg:npm/fast-string-search"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"1.4.3"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/06/GHSA-hmqg-p8f8-3qrw/GHSA-hmqg-p8f8-3qrw.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"}]}