همهٔ گزارش‌ها
متوسط

Marp Core allows XSS by improper neutralization of HTML sanitization

متن اصلی

نسخه‌های متأثر

نسخه‌های متأثر
>= 3.0.2, <= 3.9.0
نسخهٔ اصلاح‌شده
3.9.1
نسخه‌های متأثر
= 4.0.0
نسخهٔ اصلاح‌شده
4.0.1

بهره‌برداری

CVE-2024-56510

احتمال بهره‌برداری در ۳۰ روز آینده: 0.32%

FIRST EPSS · ۱۴۰۵/۰۸/۳۰

شرح آسیب‌پذیری

Marp Core (@marp-team/marp-core) from v3.0.2 to v3.9.0 and v4.0.0, are vulnerable to cross-site scripting (XSS) due to improper neutralization of HTML sanitization.

Impact

Marp Core includes an HTML sanitizer with allowlist support. In the affected versions, the built-in allowlist is enabled by default. When the allowlist is active, if insufficient HTML comments are included, the sanitizer may fail to properly sanitize HTML content and lead cross-site scripting (XSS).

Patches

Marp Core v3.9.1 and v4.0.1 have been patched to fix that.

Workarounds

If you are unable to update the package immediately, disable all HTML tags by setting html: false option in the Marp class constructor.

const marp = new Marp({ html: false })
References
Credits

Thanks to @Ry0taK for finding out this vulnerability.

پیوندها

گزارش‌دهندگان

  • Ry0taK