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

- Severity: Medium 6.9 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.38%, higher than 34% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-24T16:14:31.000Z
- Modified: 2026-10-23T22:10:00.160Z
- Also known as: GHSA-5qjj-4xww-7phc
- Weaknesses: CWE-755
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- open-circle valibot: < 1.4.2
- valibot (npm): before 1.4.2

## Every score

- GitHub_M: CVSS:4.0 6.9 Medium `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`
- GitHub: CVSS:4.0 Medium `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`

## References

- <https://github.com/open-circle/valibot/security/advisories/GHSA-5qjj-4xww-7phc> (exploit, web)
- <https://github.com/open-circle/valibot/pull/1522> (web)
- <https://github.com/open-circle/valibot/commit/1bd01c304657cd0809cc92694360b6cc60f700bf> (web)
- <https://github.com/open-circle/valibot/releases/tag/v1.4.2> (web)
- <https://github.com/open-circle/valibot> (package)

## Sources

- CVE List: [CVE-2026-59952](https://www.cve.org/CVERecord?id=CVE-2026-59952), CVE Terms of Use, modified 2026-07-30
- GitHub Advisory Database: [GHSA-5qjj-4xww-7phc](https://github.com/advisories/GHSA-5qjj-4xww-7phc), CC-BY-4.0, modified 2026-07-24
- NVD: [CVE-2026-59952](https://nvd.nist.gov/vuln/detail/CVE-2026-59952), Public domain, modified 2026-10-23

---

Page: https://cve.day/CVE-2026-59952 · Whole record: https://cve.day/CVE-2026-59952.json · Rebuilt by cve.day 2026-11-25T22:59:30.589Z
