Vulnerability · Published Apr 23, 2024 · Assigned by GitHub_M
CVE-2024-32866Conform contains Prototype Pollution Vulnerability in `parseWith...` function
High 8.6
In plain English
A high-severity prototype pollution in conform from edmundhung. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 54% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | @conform-to/dom | 1.1.1 | GHSA-624g-8qjg-8qxf |
| npm | @conform-to/dom | 0.9.2 | GHSA-624g-8qjg-8qxf |
| npm | @conform-to/yup | 1.1.1 | GHSA-624g-8qjg-8qxf |
| npm | @conform-to/yup | 0.9.2 | GHSA-624g-8qjg-8qxf |
| npm | @conform-to/zod | 1.1.1 | GHSA-624g-8qjg-8qxf |
| npm | @conform-to/zod | 0.9.2 | GHSA-624g-8qjg-8qxf |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| edmundhung | conform | < 1.1.1 |
Weakness: CWE-1321 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H
References
- https://github.com/edmundhung/conform/security/advisories/GHSA-624g-8qjg-8qxf x_refsource_CONFIRM
- https://github.com/edmundhung/conform/commit/4819d51b5a53fd5486fc85c17cdc148eb160e3de x_refsource_MISC
- https://github.com/edmundhung/conform/blob/59156d7115a7207fa3b6f8a70a4342a9b24c2501/packages/conform-dom/formdata.ts#L117 x_refsource_MISC