Read the docs
TI-2026-42757 Aliases CVE-2026-59952GHSA-5qjj-4xww-7phc

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

Priority HIGH 70CWE-755Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
—
Confidentiality · integrity · availability
None · None · Low
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub.

Summary

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00383 32nd percentileScored 2026-11-07
Fix Fixed valibot (open-circle): 1.4.2valibot (npm): 1.4.2

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
Yes
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
open-circlevalibotbefore 1.4.21.4.2Patch availableCNA
—valibot (npm)before 1.4.21.4.2Patch availableGHSA-5qjj-4xww-7phc
  • valibot Vendoropen-circle Affected before 1.4.2 Fixed in 1.4.2 Patch available CNA
  • valibot (npm) Vendor— Affected before 1.4.2 Fixed in 1.4.2 Patch available GHSA-5qjj-4xww-7phc

Remediation

  • Fix · CNA valibot (open-circle) Fixed in 1.4.2
  • Fix · GHSA-5qjj-4xww-7phc valibot (npm) Fixed in 1.4.2 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-59952
  2. 2026-10-03 Alias added: GHSA-5qjj-4xww-7phc

References

  • TI-2025-40546 Valibot has a ReDoS vulnerability in `EMOJI_REGEX` CVSS 3.1HIGH 7.5

Sources