CVE-2021-32818

HIGH

haml-coffee 1.14.1 - Code Execution via Template Configuration Pollution

Title source: manual
STIX 2.1

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.

References (2)

Core 2
Core References
Exploit, Product x_refsource_misc
https://www.npmjs.com/package/haml-coffee

Scores

CVSS v3 7.7
EPSS 0.0070
EPSS Percentile 49.0%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N

Details

CWE
CWE-79
Status published
Products (2)
haml-coffee_project/haml-coffee < 1.14.1
npm/haml-coffee 0npm
Published May 14, 2021
Tracked Since Feb 18, 2026