{"answers":{"affected":"2 open source packages ship an affected version, including valibot.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-59952 exists.","fix":"Upgrade valibot to 1.4.2 or later.","what":"CVE-2026-59952 is a medium-severity denial of service vulnerability in open-circle valibot, published on 30 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-59952 and fix it if it is affected.\n\nWhat it is: CVE-2026-59952 is a medium-severity denial of service vulnerability in open-circle valibot, published on 30 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-59952 exists.\n\nAffected packages and fixed versions:\n- valibot (npm): affected all versions; fixed in 1.4.2\n- valibot (npm): affected all versions; fixed in 1.4.2\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-2026-59952/ (Markdown: https://insights.sbomify.com/CVE-2026-59952/index.md)","id":"CVE-2026-59952","markdown":"https://insights.sbomify.com/CVE-2026-59952/index.md","name":"CVE-2026-59952","record":{"aliases":["CLSA-2026-1792473247","GHSA-5qjj-4xww-7phc","MINI-cw78-33gv-44cf"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"JavaScript validation library","requires_auth":"none","summary":"Attackers can crash applications by triggering a TypeError in the flatten helper when validating objects with specific inherited property names.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":6.9,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-755","name":"Improper Handling of Exceptional Conditions"}],"description":"Valibot helps validate data using a schema. Versions prior to 1.4.2 can throw a TypeError inside its flatten() helper when validation issues contain attacker-controlled object keys such as toString, valueOf, or hasOwnProperty. The issue is reachable through normal record() validation. record() intentionally filters __proto__, prototype, and constructor, but it still accepts other own keys that collide with inherited Object.prototype properties. If the record key schema or value schema rejects such an entry, Valibot creates an issue path containing that key. Passing the resulting issues to Valibot's documented flatten() helper causes flatErrors.nested[dotPath] to resolve to the inherited method instead of an own error array, and the helper calls .push(...) on that function. This is not a global prototype pollution issue. The impact is availability/error handling: applications that validate user-controlled objects with record() and flatten validation errors for API responses can crash the request path with a TypeError instead of returning structured validation errors. This issue has been fixed in version 1.4.2.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Valibot: record() issue paths can make flatten() throw for inherited Object property names","id":"CVE-2026-59952","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":2,"n_references":4,"next":{"headline":"Apollo ConfigService access key authentication bypass via appId parsing and non-canonical matching","id":"CVE-2026-59954"},"packages":[{"ecosystem":"npm","fixed":["1.4.2"],"introduced":["0"],"last_affected":[],"package":"valibot","purl":null,"source":"GHSA-5qjj-4xww-7phc"},{"ecosystem":"npm","fixed":["1.4.2"],"introduced":["0"],"last_affected":[],"package":"valibot","purl":"pkg:npm/valibot","source":"GHSA-5qjj-4xww-7phc"}],"prev":{"headline":"MCP Python SDK: Unbounded Session Accumulation in StreamableHTTP Transport Enables Resource Exhaustion","id":"CVE-2026-59951"},"products":["valibot"],"published":"2026-07-30","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":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-07-30","vendors":["open-circle"]},"summary":"Attackers can crash applications by triggering a TypeError in the flatten helper when validating objects with specific inherited property names.","url":"https://insights.sbomify.com/CVE-2026-59952/"}