Description
valibot 1.4.1 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.
Recommendation
Update the valibot package to the latest compatible version. Followings are version details:
- Affected version(s): <= 1.4.1
- Patched version(s): 1.4.2
References
Could your website be exposed too?
SmartScanner can check your website for Valibot: record() issue paths can make flatten() throw for inherited Object property names and gives you actionable findings to investigate.
Start a free scanRelated Issues
- Axios Node HTTP adapter can use an inherited proxy after interceptor config cloning - CVE-2026-67320
- beautiful-mermaid contains an SVG attribute injection issue that can lead to cross-site scripting (XSS) - CVE-2026-26226
- @phun-ky/defaults-deep Has a Prototype Pollution issue via Unsafe Recursive Property Merging - CVE-2026-54737
- msgpackr's conversion of property names to strings can trigger infinite recursion - CVE-2023-52079


