Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-59952

MEDIUM 6.9EPSS 38%

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

Also known as GHSA-5qjj-4xww-7phc

Mitigation

  • Upgrade valibot to 1.4.2 or later.

Who should check

  • Projects that depend on npm package valibot (< 1.4.2)
  • Anyone running open-circle valibot < 1.4.2

Vulnerability facts

Affected
valibot < 1.4.2
Fixed in
1.4.2
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
6.9 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Attack requirements: None
  • Privileges required: None
  • User interaction: None
  • Confidentiality impact: None
  • Integrity impact: None
  • Availability impact: Low
  • Confidentiality impact on other systems: None
  • Integrity impact on other systems: None
  • Availability impact on other systems: None
EPSS
0.52% chance of exploitation in 30 days (percentile 38, 2026-11-26)
CWE
CWE-755
Published
Modified

Description

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.

Affected and fixed versions

Package / productAffectedFixedSource
npm valibot< 1.4.21.4.2osv
open-circle valibot< 1.4.2—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-59952. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-59952.md
Affected: valibot < 1.4.2
Fixed in: 1.4.2

Steps:
1. Search this machine and project for valibot (npm), open-circle valibot: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2026-59952 being exploited?

There is no confirmed exploitation: CVE-2026-59952 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.52% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2026-59952?

Medium: CVSS 6.9 (v4.0, scored by CNA). Remote, no login needed.

Which versions are affected by CVE-2026-59952?

valibot < 1.4.2.

Is there a fix for CVE-2026-59952?

Yes. Fixed in 1.4.2. Upgrade valibot to 1.4.2 or later.

How do I check if I'm affected by CVE-2026-59952?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors