Miggo Logo

CVE-2020-7751: Prototype pollution in pathval

7.2

CVSS Score
3.1

Basic Information

EPSS Score
0.69882%
Published
2/10/2022
Updated
2/1/2023
KEV Status
No
Technology
TechnologyJavaScript

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
pathvalnpm< 1.1.11.1.1

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from improper input validation in parsePath, which processes user-supplied paths. The commit diff shows a fix in parsePath that explicitly blocks 'constructor', 'proto', and 'prototype' path components. Since setPathValue relies on parsePath's output to modify objects, both functions are implicated. The Snyk PoC demonstrates exploitation via setPathValue, confirming its role in the attack chain.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

* prototyp* pollution vuln*r**ility *****ts *ll v*rsions o* p**k*** p*t*v*l un**r *.*.*.

Reasoning

T** vuln*r**ility st*ms *rom improp*r input v*li**tion in p*rs*P*t*, w*i** pro**ss*s us*r-suppli** p*t*s. T** *ommit *i** s*ows * *ix in p*rs*P*t* t**t *xpli*itly *lo*ks '*onstru*tor', '__proto__', *n* 'prototyp*' p*t* *ompon*nts. Sin** s*tP*t*V*lu*