PT-2021-3172
CVE-2021-21353
·
تاريخ النشر
2021-02-10
·
تاريخ التحديث
2026-11-10
الوصف من
CVSS 3.1
9.3
حرجةالمقاييسAV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions
pug versions prior to 3.0.1
pug-code-gen versions prior to 2.0.3
Description
The issue is related to the insufficient neutralization of special elements in the output of the Pug HTML preprocessor, specifically in the VisitMixin and visitMixinBlock functions. This can allow a remote attacker to execute arbitrary code if they can control the
pretty option of the pug compiler, for example, by spreading a user-provided object into the pug template inputs.Recommendations
For pug versions prior to 3.0.1, upgrade to version 3.0.1 or later.
For pug-code-gen versions prior to 2.0.3, upgrade to version 2.0.3 or later.
As a temporary workaround, consider compiling templates in advance before applying user input to them, to prevent un-trusted input from being passed to pug as the
pretty option.قابلية الاستغلال
استغلال
إصلاح
التأثيرات
المورّدون
المنتجات المتأثرة
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾