csirt@kutim:~/threat-intel/cve/CVE-2021-21353

Katalog CVE

CVSS 9.0 · Critical EPSS 4,3%

Kerentanan Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') pada pugjs pug, pugjs pug-code-gen. Skor CVSS 3.1 9.0 (Critical) menurut NVD.

Deskripsi (NVD)

Pug is an npm package which is a high-performance template engine. In pug before version 3.0.1, if a remote attacker was able to control the `pretty` option of the pug compiler, e.g. if you spread a user provided object such as the query parameters of a request into the pug template inputs, it was possible for them to achieve remote code execution on the node.js backend. This is fixed in version 3.0.1. This advisory applies to multiple pug packages including "pug", "pug-code-gen". pug-code-gen has a backported fix at version 2.0.3. This advisory is not exploitable if there is no way for un-trusted input to be passed to pug as the `pretty` option, e.g. if you compile templates in advance before applying user input to them, you do not need to upgrade.

Rincian

Terbit di NVD
3 Maret 2021
Terakhir diubah
17 Juni 2026
Status NVD
Analyzed
CVSS 3.1
9.0 (Critical), sumber NVD
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H · uraikan di kalkulator
Jenis kelemahan (CWE)
CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
CWE-94: Improper Control of Generation of Code ('Code Injection')
EPSS (30 hari)
4,3% peluang dieksploitasi; lebih tinggi dari 90,9% CVE lain

Produk dan versi terdampak

VendorProdukVersi terdampak
pugjs pug Semua versi sebelum 3.0.1
pugjs pug-code-gen Semua versi sebelum 2.0.3
pugjs pug-code-gen Versi 3.0.0 hingga sebelum 3.0.2

> Data dari konfigurasi CPE di NVD.

Referensi dan perbaikan

Sumber: NVD · CVE.org · EPSS. Halaman ini disusun otomatis dari data tersebut; pembaruan terakhir 5 Okt 2026, 20:10 WITA. Kalau sistem di Perangkat Daerah memakai produk ini dan butuh bantuan, laporkan lewat kanal pelaporan.