CVE-2021-32818
MEDIUM 5.4CVSS 3.1Insecure template handling in haml-coffee
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.
- Published
- 14 May 2021
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-m7mf-vm62-7x3q
- Sources
- NVDJSONOSV GHSA-m7mf-vm62-7x3qJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.7 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.7 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | LOW 3.5 | AV:N/AC:M/Au:S/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | haml-coffee_project | haml-coffeecpe:2.3:a:haml-coffee_project:haml-coffee:*:*:*:*:*:node.js:*:* |
<= 1.14.1 | |
| OSV | npm | haml-coffee | <= 1.14.1 |
References
- https://securitylab.github.com/advisories/GHSL-2021-025-haml-coffee/ · Third Party Advisory, ADVISORY
- https://www.npmjs.com/package/haml-coffee · Exploit, Product, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-32818 · ADVISORY
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 14 May 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 17 May 2021)