๐Ÿ” CVE Alert

CVE-2026-59952

UNKNOWN 0.0

Valibot: record() issue paths can make flatten() throw for inherited Object property names

CVSS Score
0.0
EPSS Score
0.5%
EPSS Percentile
42th

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.

CWE CWE-755
Vendor open-circle
Product valibot
Published Jul 30, 2026
Last Updated Jul 30, 2026
Stay Ahead of the Next One

Get instant alerts for open-circle valibot

Be the first to know when new unknown vulnerabilities affecting open-circle valibot are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

Affected Versions

open-circle / valibot
< 1.4.2

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/open-circle/valibot/security/advisories/GHSA-5qjj-4xww-7phc github.com: https://github.com/open-circle/valibot/pull/1522 github.com: https://github.com/open-circle/valibot/commit/1bd01c304657cd0809cc92694360b6cc60f700bf github.com: https://github.com/open-circle/valibot/releases/tag/v1.4.2