What’s Vulnerable › Vulnerabilities
CVE-2021-32818: Remote code execution and Reflected cross site scripting in haml-coffee
- Severity: medium (CVSS 5.4 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.7% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2021-05-14 · updated 2026-06-17
- Weakness: CWE-79
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.
Affected products
- netzpirat haml-coffee: through 1.14.1
References
- https://securitylab.github.com/advisories/GHSL-2021-025-haml-coffee/
- https://www.npmjs.com/package/haml-coffee
- https://securitylab.github.com/advisories/GHSL-2021-025-haml-coffee/
- https://www.npmjs.com/package/haml-coffee
Get alerted when CVE-2021-32818 or the next vulnerability affects your stack