# CVE-2026-59952: Valibot: record() issue paths can make flatten() throw for inherited Object property names

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.9
- **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:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.52% (percentile 38, 2026-11-26)
- **CWE:** CWE-755
- **Aliases:** GHSA-5qjj-4xww-7phc
- **Published:** 2026-07-24T16:14:31.000Z
- **Modified:** 2026-10-23T22:10:00.160Z

## Who should check

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

## 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

- npm `valibot`: affected \< 1.4.2; fixed 1.4.2 (osv)
- open-circle valibot: \< 1.4.2 (cvelist)

## Mitigation

- Upgrade valibot to 1.4.2 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://github.com/open-circle/valibot/security/advisories/GHSA-5qjj-4xww-7phc>
- patch: <https://github.com/open-circle/valibot/pull/1522>
- patch: <https://github.com/open-circle/valibot/commit/1bd01c304657cd0809cc92694360b6cc60f700bf>
- other: <https://github.com/open-circle/valibot/releases/tag/v1.4.2>
- other: <https://github.com/open-circle/valibot>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-59952>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-5qjj-4xww-7phc> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-59952> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-59952>
