CVE-2020-8141: Improper Control of Generation of Code in doT
8.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.76436%
CWE
Published
5/24/2022
Updated
1/27/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 |
---|---|---|---|
dot | npm | <= 1.1.2 | 1.1.3 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from prototype pollution affecting templateSettings.varname
used in doT.template
's Function()
constructor. The patch fixes the initialization of settings in InstallDots
, but the exploit occurs when doT.template
uses a polluted varname
. The test case demonstrates code execution via prototype pollution, which would trigger during template compilation in doT.template
.