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.
Remediation
References
https://securitylab.github.com/advisories/GHSL-2021-025-haml-coffee/
https://www.npmjs.com/package/haml-coffee
Related Vulnerabilities
CVE-2021-33502 Vulnerability in npm package normalize-url
CVE-2022-36095 Vulnerability in maven package org.xwiki.platform:xwiki-platform-web-templates
CVE-2018-8815 Vulnerability in maven package org.opencms:opencms-core
CVE-2018-3745 Vulnerability in maven package org.webjars.npm:atob
CVE-2021-29620 Vulnerability in maven package com.epam.reportportal:service-api