CVE-2021-32818
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
haml-coffeenpm | <= 1.14.1 | — |
Affected products
3- cpe:2.3:a:haml-coffee_project:haml-coffee:*:*:*:*:*:node.js:*:*Range: <=1.14.1
- netzpirat/haml-coffeev5Range: <= 1.14.1
Patches
Vulnerability mechanics
References
5- www.npmjs.com/package/haml-coffeenvdExploitProductWEB
- github.com/advisories/GHSA-m7mf-vm62-7x3qghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2021-32818ghsaADVISORY
- securitylab.github.com/advisories/GHSL-2021-025-haml-coffeeghsaADVISORY
- securitylab.github.com/advisories/GHSL-2021-025-haml-coffee/nvdThird Party Advisory
News mentions
0No linked articles in our index yet.