CVE-2023-0163: convict vulnerable to Prototype Pollution
8.4
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.32576%
CWE
Published
1/10/2023
Updated
11/26/2024
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
convict | npm | < 6.2.4 | 6.2.4 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from insufficient validation in the set() function when processing configuration keys. The commit diff shows the FORBIDDEN_KEY_PATHS array was updated from checking 'this.constructor.prototype.' to 'constructor.prototype.', indicating the original implementation missed a critical prototype pollution vector. The associated test cases demonstrate that setting 'constructor.prototype.polluted...' properties could modify Object.prototype before the patch. As the set() function is responsible for applying configuration values, its failure to properly validate these paths directly enabled the prototype pollution.