{"id":"CVE-2024-32866","aliases":["CVE-2024-32866","GHSA-624g-8qjg-8qxf"],"related":[],"kind":"vulnerability","state":"published","title":"Conform contains Prototype Pollution Vulnerability in `parseWith...` function","summary":"Conform, a type-safe form validation library, allows the parsing of nested objects in the form of `object.property`. Due to an improper implementation of this feature in versions prior to 1.1.1, an attacker can exploit the feature to trigger prototype pollution by passing a crafted input to `parseWith...` functions. Applications that use conform for server-side validation of form data or URL parameters are affected by this vulnerability. Version 1.1.1 contains a patch for the issue.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Conform, a type-safe form validation library, allows the parsing of nested objects in the form of `object.property`. Due to an improper implementation of this feature in versions prior to 1.1.1, an attacker can exploit the feature to trigger prototype pollution by passing a crafted input to `parseWith...` functions. Applications that use conform for server-side validation of form data or URL parameters are affected by this vulnerability. Version 1.1.1 contains a patch for the issue.","source":"cvelist"},{"lang":"en","text":"### 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Conform, una librería de validación de formularios con seguridad de tipos, permite el análisis de objetos anidados en forma de `object.property`. Debido a una implementación incorrecta de esta característica en versiones anteriores a la 1.1.1, un atacante puede explotar la característica para desencadenar la contaminación del prototipo pasando una entrada manipulada a las funciones `parseWith...`. Esta vulnerabilidad afecta a las aplicaciones que utilizan conform para la validación del lado del servidor de datos de formulario o parámetros de URL. La versión 1.1.1 contiene un parche para el problema.","source":"nvd"}],"published":"2024-04-23T21:07:06.216Z","modified":"2026-09-10T03:49:18.732Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H","score":8.6,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H","score":8.6,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H","score":8.6,"rating":"HIGH"}],"cwes":["CWE-1321"],"affected":[{"ranges":[{"version":"< 1.1.1","status":"affected"}],"vendor":"edmundhung","product":"conform","source":"cvelist"},{"ranges":[{"version":"*","status":"affected"}],"vendor":"edmundhung","product":"conform","cpe":"cpe:2.3:a:edmundhung:conform:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.0.0","status":"affected","fixed":"1.1.1"}],"ecosystem":"npm","package":"@conform-to/dom","purl":"pkg:npm/%40conform-to/dom","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.0.0","status":"affected","fixed":"1.1.1"}],"ecosystem":"npm","package":"@conform-to/zod","purl":"pkg:npm/%40conform-to/zod","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.0.0","status":"affected","fixed":"1.1.1"}],"ecosystem":"npm","package":"@conform-to/yup","purl":"pkg:npm/%40conform-to/yup","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.9.2"}],"ecosystem":"npm","package":"@conform-to/zod","purl":"pkg:npm/%40conform-to/zod","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.9.2"}],"ecosystem":"npm","package":"@conform-to/yup","purl":"pkg:npm/%40conform-to/yup","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.9.2"}],"ecosystem":"npm","package":"@conform-to/dom","purl":"pkg:npm/%40conform-to/dom","source":"ghsa"}],"references":[{"url":"https://github.com/edmundhung/conform/security/advisories/GHSA-624g-8qjg-8qxf","tags":["web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/edmundhung/conform/commit/4819d51b5a53fd5486fc85c17cdc148eb160e3de","tags":["web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/edmundhung/conform/blob/59156d7115a7207fa3b6f8a70a4342a9b24c2501/packages/conform-dom/formdata.ts#L117","tags":["web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-32866","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/edmundhung/conform/commit/cb604dd58b99e2d12716d901a23bfca724e741ef","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/edmundhung/conform","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2024-04-29T12:18:26.633Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-32866","url":"https://www.cve.org/CVERecord?id=CVE-2024-32866","licence":"CVE Terms of Use","modified":"2024-08-02T02:20:35.639Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-624g-8qjg-8qxf","url":"https://github.com/advisories/GHSA-624g-8qjg-8qxf","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:18.732Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-32866","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-32866","licence":"Public domain","modified":"2026-06-17T07:30:34.873Z"}],"updatedAt":"2026-11-25T22:58:39.536Z","epss":{"score":0.00725,"percentile":0.55301,"date":"2026-12-01T12:00:22.000Z"}}