{"answers":{"affected":"2 open source packages ship an affected version, including kurwov.","exploited":"There is no known exploitation of CVE-2024-34075 in the wild and no public exploit code.","fix":"Upgrade kurwov to 3.2.5 or later.","what":"CVE-2024-34075 is a medium-severity denial of service vulnerability in xiboon kurwov, published on 3 May 2024. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-34075 and fix it if it is affected.\n\nWhat it is: CVE-2024-34075 is a medium-severity denial of service vulnerability in xiboon kurwov, published on 3 May 2024. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-34075 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- kurwov (npm): affected from 3.1.0; fixed in 3.2.5\n- kurwov (npm): affected from 3.1.0; fixed in 3.2.5\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-34075/ (Markdown: https://insights.sbomify.com/CVE-2024-34075/index.md)","id":"CVE-2024-34075","markdown":"https://insights.sbomify.com/CVE-2024-34075/index.md","name":"CVE-2024-34075","record":{"aliases":["GHSA-hfrv-h3q8-9jpr"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"JavaScript Markov library","requires_auth":"none","summary":"Attackers can cause denial of service in kurwov by injecting specific substrings into datasets, preventing proper generation.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":6.2,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"kurwov vulnerable to Denial of Service due to improper data sanitization","id":"CVE-2024-34075","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"denial_of_service","year":"2024"},"n_packages":2,"n_references":3,"next":{"headline":"MantisBT user account takeover in the signup/reset password process","id":"CVE-2024-34077"},"packages":[{"ecosystem":"npm","fixed":["3.2.5"],"introduced":["3.1.0"],"last_affected":[],"package":"kurwov","purl":null,"source":"GHSA-hfrv-h3q8-9jpr"},{"ecosystem":"npm","fixed":["3.2.5"],"introduced":["3.1.0"],"last_affected":[],"package":"kurwov","purl":"pkg:npm/kurwov","source":"GHSA-hfrv-h3q8-9jpr"}],"prev":{"headline":"Frappe vuilnerable to an open redirect on login page","id":"CVE-2024-34074"},"products":["kurwov"],"published":"2024-05-03","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-02","vendors":["xiboon"]},"summary":"Attackers can cause denial of service in kurwov by injecting specific substrings into datasets, preventing proper generation.","url":"https://insights.sbomify.com/CVE-2024-34075/"}