CVE-2020-28460: Prototype pollution in multi-ini
5.6
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.66305%
CWE
Published
4/13/2021
Updated
1/27/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
multi-ini | npm | < 2.1.2 | 2.1.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from insufficient key validation in the INI parsing logic. The commit diff shows the regex pattern REGEXP_IGNORE_KEYS was expanded from checking only proto to include 'constructor' and 'prototype'. Before this fix, the parser would process keys containing 'constructor.proto' or 'prototype', allowing prototype pollution through specially crafted INI files. The Snyk PoC demonstrates this using '[constructor] prototype.polluted' syntax. The core vulnerability exists in the key validation logic within the Parser class in parser.js that handles property assignment.