Remote code execution and Reflected cross site scripting in haml-coffee
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- Required
- Attack complexity
- High
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| netzpirat | haml-coffee | up to 1.14.1 | — | No fix listed | CNA |
| — | haml-coffee (npm) | up to 1.14.1 | — | No fix listed | GHSA-m7mf-vm62-7x3q |
- haml-coffee Vendornetzpirat Affected up to 1.14.1 Fixed in — No fix listed CNA
- haml-coffee (npm) Vendor— Affected up to 1.14.1 Fixed in — No fix listed GHSA-m7mf-vm62-7x3q
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:haml-coffee_project:haml-coffee:*:*:*:*:*:node.js:*:* | up to 1.14.1 | Vulnerable | Haml-coffee Project |
- cpe:2.3:a:haml-coffee_project:haml-coffee:*:*:*:*:*:node.js:*:* Versions up to 1.14.1 Vulnerable ·Haml-coffee Project
Remediation
No fixed version listed by the sources yet.
Timeline
- 2026-10-02 Threatist record created from CVE-2021-32818
- 2026-10-03 Alias added: GHSA-m7mf-vm62-7x3q
References
Sources
- CVE-2021-32818 · CVE Program
- CVE-2021-32818 · NVD
- FIRST EPSS
- GHSA-m7mf-vm62-7x3q · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences