CVE-2026-59952

Source
https://cve.org/CVERecord?id=CVE-2026-59952
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-59952.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-59952
Aliases
Published
2026-07-30T00:10:32.598Z
Modified
2026-07-30T04:02:52.847799730Z
Severity
  • 6.9 (Medium) CVSS_V4 - 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 Calculator
Summary
Valibot: record() issue paths can make flatten() throw for inherited Object property names
Details

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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59952.json",
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-755"
    ]
}
References

Affected packages

Git / github.com/open-circle/valibot

Affected ranges

Type
GIT
Repo
https://github.com/open-circle/valibot
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
{
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "1.4.2"
        }
    ],
    "source": "AFFECTED_FIELD"
}

Affected versions

1.*
1.0.0-beta.0-to-json-schema
v0.*
v0.1.0
v0.1.0-to-json-schema
v0.1.0-zod-to-valibot
v0.1.1-to-json-schema
v0.1.1-zod-to-valibot
v0.1.2-zod-to-valibot
v0.10.0
v0.11.0
v0.11.1
v0.12.0
v0.13.0
v0.13.1
v0.14.0
v0.15.0
v0.16.0
v0.17.0
v0.17.1
v0.18.0
v0.19.0
v0.2.0
v0.2.0-to-json-schema
v0.2.1
v0.2.1-to-json-schema
v0.20.0
v0.20.1
v0.21.0
v0.22.0
v0.23.0
v0.24.0
v0.24.1
v0.25.0
v0.26.0
v0.27.0
v0.27.1
v0.28.0
v0.28.1
v0.29.0
v0.3.0
v0.30.0
v0.31.0
v0.31.0-rc.1
v0.31.0-rc.10
v0.31.0-rc.11
v0.31.0-rc.12
v0.31.0-rc.2
v0.31.0-rc.3
v0.31.0-rc.4
v0.31.0-rc.5
v0.31.0-rc.6
v0.31.0-rc.7
v0.31.0-rc.8
v0.31.0-rc.9
v0.31.1
v0.32.0
v0.33.0
v0.33.1
v0.33.2
v0.33.3
v0.34.0
v0.35.0
v0.36.0
v0.37.0
v0.38.0
v0.39.0
v0.4.0
v0.40.0
v0.41.0
v0.42.0
v0.42.1
v0.5.0
v0.6.0
v0.7.0
v0.8.0
v0.9.0
v1.*
v1.0.0
v1.0.0-beta.0
v1.0.0-beta.0-i18n
v1.0.0-beta.1
v1.0.0-beta.1-i18n
v1.0.0-beta.1-to-json-schema
v1.0.0-beta.10
v1.0.0-beta.11
v1.0.0-beta.12
v1.0.0-beta.13
v1.0.0-beta.14
v1.0.0-beta.15
v1.0.0-beta.2
v1.0.0-beta.2-i18n
v1.0.0-beta.2-to-json-schema
v1.0.0-beta.3
v1.0.0-beta.3-to-json-schema
v1.0.0-beta.4
v1.0.0-beta.4-to-json-schema
v1.0.0-beta.5
v1.0.0-beta.5-to-json-schema
v1.0.0-beta.6
v1.0.0-beta.7
v1.0.0-beta.8
v1.0.0-beta.9
v1.0.0-i18n
v1.0.0-rc.0
v1.0.0-rc.0-i18n
v1.0.0-rc.0-to-json-schema
v1.0.0-rc.1
v1.0.0-rc.2
v1.0.0-rc.3
v1.0.0-rc.4
v1.0.0-to-json-schema
v1.1.0
v1.1.0-i18n
v1.1.0-to-json-schema
v1.2.0
v1.2.0-i18n
v1.2.0-to-json-schema
v1.3.0
v1.3.0-to-json-schema
v1.3.1
v1.4.0
v1.4.0-to-json-schema
v1.4.1
v1.5.0-to-json-schema
v1.6.0-to-json-schema
v1.7.0-to-json-schema
v1.7.1-to-json-schema

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-59952.json"