Vulnerability · Published Dec 26, 2024 · Assigned by GitHub_M
CVE-2024-56510Marp Core allows XSS by improper neutralization of HTML sanitization
Medium 5.3
In plain English
A medium-severity cross-site scripting in marp-core from marp-team. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 25% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
@marp-team/marp-core is the core for Marp, which is the ecosystem to write your presentation with plain Markdown. 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. Marp Core v3.9.1 and v4.0.1 have been patched to fix that. If you are unable to update the package immediately, disable all HTML tags by setting html: false option in the Marp class constructor.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | @marp-team/marp-core | 3.9.1 | GHSA-x52f-h5g4-8qv5 |
| npm | @marp-team/marp-core | 4.0.1 | GHSA-x52f-h5g4-8qv5 |
Affected products (as reported)
Weakness: CWE-79 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L
References
- https://github.com/marp-team/marp-core/security/advisories/GHSA-x52f-h5g4-8qv5 x_refsource_CONFIRM
- https://github.com/marp-team/marp-core/pull/282 x_refsource_MISC
- https://github.com/marp-team/marp-core/commit/61a1def244d1b6faa8e2c0be97ec0b68cab3ab49 x_refsource_MISC
- https://github.com/marp-team/marp-core/releases/tag/v3.9.1 x_refsource_MISC
- https://github.com/marp-team/marp-core/releases/tag/v4.0.1 x_refsource_MISC