Skip to content

CVE-2021-32818 Remote code execution and Reflected cross site scripting in haml-coffee

MediumCVSS 5.4 EPSS 0.70%
Published
Updated
Exploit status
No public exploit known

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.

Upgrade path

3 packages: 2 fixed.

PackageAffectedFixed inStatus
haml-coffee project haml-coffee <= 1.14.1 after 1.14.1 Fixed
npm haml-coffee(npm) <= 1.14.1 after 1.14.1 Fixed
netzpirat haml-coffee = <= 1.14.1 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
npm haml-coffee(npm) <= 1.14.1 No fix listed
haml-coffee project haml-coffee <= 1.14.1 No fix listed
netzpirat haml-coffee = <= 1.14.1 No fix listed

References