Miggo Logo

CVE-2024-38988: @alizeait/unflatto Prototype Pollution

9.8

CVSS Score
3.1

Basic Information

EPSS Score
0.13625%
Published
4/1/2025
Updated
4/1/2025
KEV Status
No
Technology
TechnologyJavaScript

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
@alizeait/unflattonpm< 1.0.31.0.3

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The core vulnerability existed in the unflatto function's property assignment logic, which previously didn't validate keys for prototype pollution vectors. The security patch adds explicit checks for 'prototype', 'proto', and 'constructor' keys during the unflattening process. This function is directly referenced in all vulnerability reports and the CVE description as the entry point for prototype pollution. The commit diff shows critical security controls were added to this specific function, confirming it was the vulnerable component.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

### Imp**t *liz**it un*l*tto <= *.*.* w*s *is*ov*r** to *ont*in * prototyp* pollution vi* t** m*t*o* *xports.un*l*tto *t /*ist/in**x.js. T*is vuln*r**ility *llows *tt**k*rs to *x**ut* *r*itr*ry *o** or **us* * **ni*l o* S*rvi** (*oS) vi* inj**tin* *r

Reasoning

T** *or* vuln*r**ility *xist** in t** un*l*tto *un*tion's prop*rty *ssi*nm*nt lo*i*, w*i** pr*viously *i*n't v*li**t* k*ys *or prototyp* pollution v**tors. T** s**urity p*t** ***s *xpli*it ****ks *or 'prototyp*', '__proto__', *n* '*onstru*tor' k*ys *
CVE-2024-38988: unflatto Prototype Pollute RCE | Miggo