Improper handling of exceptional conditions in Valibot - CVE-2026-59952
Published: July 9, 2026
Valibot
Detailed vulnerability description
The vulnerability allows a remote attacker to cause a denial of service.
The vulnerability exists due to improper handling of exceptional conditions in the flatten() helper when processing validation issues containing attacker-controlled object keys that collide with inherited Object.prototype property names. A remote attacker can supply a crafted JSON object that causes record() validation to produce an issue path such as toString and trigger a TypeError in flatten() to cause a denial of service.
This issue is reachable through normal record() validation and affects applications that flatten validation errors for API responses.