Vulnerability library
Security checkJuly 24, 2026

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

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Medium severitynpmvalibot

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

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 scan

Related Issues

See something that needs correcting? Let us knowUpdated July 24, 2026