CVE-2021-4278: tree-kit vulnerable to Prototype Pollution
7.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.12709%
CWE
Published
12/25/2022
Updated
2/2/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
tree-kit | npm | < 0.7.0 | 0.7.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The commit diff shows critical security checks were added to path.js and dotPath.js: 1) Explicit 'proto' validation 2) Function type checks 3) Prototype pollution error throwing. The vulnerability description specifically mentions .path()/.dotPath() fixes. The pre-patch code in these functions allowed uncontrolled property creation using special keys like 'proto', which is the root cause of prototype pollution. The high confidence comes from direct correlation between the vulnerability description, CWE-1321 classification, and the specific security checks added in the patch.