PT-2021-19951 · Unknown · Haml-Coffee
Agustin Gianni
+1
·
Published
2021-05-14
·
Updated
2021-08-12
·
CVE-2021-32818
CVSS v3.1
7.7
High
| Vector | AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N |
Name of the Vulnerable Software and Affected Versions
haml-coffee versions prior to 1.14.1
Description
haml-coffee is a JavaScript templating solution that mixes pure template data with engine configuration options through the Express render API. It 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 Remote Code Execution (RCE) vulnerabilities. Additionally, control over the
escapeHtml parameter through template configuration pollution ensures that haml-coffee would not sanitize template inputs, which may result in reflected Cross Site Scripting attacks against downstream applications.Recommendations
At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Exploit
XSS
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Haml-Coffee