CVE-2018-3719: Prototype Pollution in mixin-deep
8.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.50101%
CWE
Published
7/26/2018
Updated
3/1/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
mixin-deep | npm | < 1.3.1 | 1.3.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the recursive merging logic in the copy function. The pre-patch code (shown in commit 578b0bc) lacked a check for 'proto' key during property merging. This allowed attackers to manipulate Object.prototype through specially crafted objects. The fix explicitly checks for 'proto' key in the copy function, confirming this was the vulnerable code path. The CWE-471 (MAID) classification further supports this analysis as it directly relates to prototype pollution via property injection.