CVE-2021-32818 Remote code execution and Reflected cross site scripting in haml-coffee
- Exploited in the wild
- Not known
- Fix
- None listed
What is CVE-2021-32818?
CVE-2021-32818 is a high-severity vulnerability in netzpirat haml-coffee, published on 14 May 2021.
Official description
haml-coffee is a JavaScript templating solution. haml-coffee mixes pure template data with engine configuration options through the Express render API. More specifically, haml-coffee supports overriding a series of HTML helper functions through its configuration options. A vulnerable application that passes user controlled request objects to the haml-coffee template engine may introduce RCE vulnerabilities. Additionally control over the escapeHtml parameter through template configuration pollution ensures that haml-coffee would not sanitize template inputs that may result in reflected Cross Site Scripting attacks against downstream applications. There is currently no fix for these issues as of the publication of this CVE. The latest version of haml-coffee is currently 1.14.1. For complete details refer to the referenced GHSL-2021-025.
Weakness: CWE-79
Which versions are affected by CVE-2021-32818?
2 open source packages ship an affected version, including haml-coffee. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
haml-coffee npm | All versions to 1.14.1 | None |
haml-coffee npm | All versions to 1.14.1 | None |
Products include Haml-Coffee Project Haml-Coffee.
How do I fix CVE-2021-32818?
No fix has been published for CVE-2021-32818 yet. Limit exposure of the affected software until one is available.
Is CVE-2021-32818 being exploited?
There is no known exploitation of CVE-2021-32818 in the wild and no public exploit code.
Sources
Also known as GHSA-m7mf-vm62-7x3q.