{"cve":"CVE-2024-34075","nvd":{"published":"2024-05-03T18:15:09.970","modified":"2026-06-17T07:32:51.543","status":"Deferred","description":"kurwov is a fast, dependency-free library for creating Markov Chains. An unsafe sanitization of dataset contents on the `MarkovData#getNext` method used in `Markov#generate` and `Markov#choose` allows a maliciously crafted string on the dataset to throw and stop the function from running properly. If a string contains a forbidden substring (i.e. `__proto__`) followed by a space character, the code will access a special property in `MarkovData#finalData` by removing the last character of the string, bypassing the dataset sanitization (as it is supposed to be already sanitized before this function is called). Any dataset can be contaminated with the substring making it unable to properly generate anything in some cases. This issue has been addressed in version 3.2.5 and all users are advised to upgrade. There are no known workarounds for this vulnerability.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":6.2},"cwes":["CWE-502"],"references":["https://github.com/xiboon/kurwov/blob/0d58dfa42135ab40e830e92622857282f980ca89/src/MarkovData.ts#L38-L44","https://github.com/xiboon/kurwov/commit/85d63e652594f121d6656177d7a3c0d823c976c9","https://github.com/xiboon/kurwov/security/advisories/GHSA-hfrv-h3q8-9jpr","https://github.com/xiboon/kurwov/blob/0d58dfa42135ab40e830e92622857282f980ca89/src/MarkovData.ts#L38-L44","https://github.com/xiboon/kurwov/commit/85d63e652594f121d6656177d7a3c0d823c976c9"],"products":[],"source":"nvd","synced_at":"2026-10-19T21:49:23.840078609+00:00"},"epss":{"cve":"CVE-2024-34075","score":0.00299,"percentile":0.22618,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-hfrv-h3q8-9jpr","url":"https://osv.dev/vulnerability/GHSA-hfrv-h3q8-9jpr","summary":"kurwov vulnerable to Denial of Service due to improper data sanitization","modified":"2026-09-10T03:50:00.430987236Z","packages":[{"ecosystem":"npm","name":"kurwov","purl":"pkg:npm/kurwov","ranges":[">=3.1.0 <3.2.5"],"fixed":["3.2.5"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}