CVE-2021-21353 is a critical remote code execution (RCE) vulnerability affecting the Pug template engine (npm packages "pug" and "pug-code-gen") versions prior to 3.0.1 and 2.0.3 respectively. An attacker can achieve RCE by manipulating the 'pretty' option of the Pug compiler if user-controlled input is spread into template inputs. This vulnerability has a CVSS score of 9.0 (CRITICAL) due to its network attack vector, high impact on confidentiality, integrity, and availability, and low attack complexity. While no active exploitation, public exploits, or significant community discussion have been observed, organizations using affected Pug versions should upgrade to mitigate this severe risk.
| Vendor | Product | Version(s) | CPE |
|---|---|---|---|
< 3.0.1CPE matchmatch criteria | cpe:2.3:a:pugjs:pug:*:*:*:*:*:node.js:*:* | ||
< 2.0.3CPE matchmatch criteria | cpe:2.3:a:pugjs:pug-code-gen:*:*:*:*:*:node.js:*:* | ||
>= 3.0.0, < 3.0.2CPE matchmatch criteria | cpe:2.3:a:pugjs:pug-code-gen:*:*:*:*:*:node.js:*:* |
CVSS version used by this source: 3.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N
The average CVE in this peer group has 0.0 Twitter, 0.4 Reddit, 1.3 Bluesky, 0.9 Mastodon, and 2.3 GitHub mentions.
No media coverage found for this CVE.
The average CVE in this peer group has 0.8 InfoSec Media, 0.0 Vendor Blog, and 0.0 Security Researcher mentions.