CVE-2026-59952 Details
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.
A denial-of-service vulnerability has been identified in Valibot versions prior to 1.4.2. The issue arises within the flatten() helper, which can throw a TypeError when validation issues include attacker-controlled object keys that overlap with inherited Object.prototype properties, such as toString, valueOf, or hasOwnProperty. This vulnerability is triggered during normal record() validation, which, while filtering out certain keys, still accepts others that can collide with inherited properties. When the schema rejects these entries, Valibot creates an issue path that, when processed by flatten(), leads to an error. This issue disrupts error handling by causing applications to crash instead of providing structured validation responses.
Users can update Valibot to version 1.4.2 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 30, 2026CISA-ADP
Assessed Jul 30, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/open-circle/valibot/security/advisories/GHSA-5qjj-4xww-7phc | CISA-ADP | AdvisoryExploitRemedyVendor |
| https://github.com/open-circle/valibot/commit/1bd01c304657cd0809cc92694360b6cc60f700bf | [email protected] | Source CodeVendor |
| https://github.com/open-circle/valibot/pull/1522 | [email protected] | Source CodeVendor |
| https://github.com/open-circle/valibot/releases/tag/v1.4.2 | [email protected] | Release NotesVendor |
| https://github.com/open-circle/valibot/security/advisories/GHSA-5qjj-4xww-7phc | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-755 | Improper Handling of Exceptional Conditions | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| open-circle Valibot | <= 1.4.1 (semver) |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 23, 2026 | CVE Translated | [email protected] |
| Jul 30, 2026 | CVE Modified | CISA-ADP |
| Jul 30, 2026 | New CVE Received | [email protected] |
Volerion