CVE-2020-7751: Prototype pollution in pathval
7.2
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.69882%
CWE
Published
2/10/2022
Updated
2/1/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
pathval | npm | < 1.1.1 | 1.1.1 |
Vulnerability Intelligence
Miggo AI
Root 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.