Skip to main content
← All vulnerabilities
CVE-2021-32818GHSA-M7MF-VM62-7X3Q

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

Published
Last modified
published
Not listed in CISA KEV
None on Exploit-DB, Metasploit or GitHub

Summary

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.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • netzpirat haml-coffee

    through 1.14.1

  • haml-coffeenpm

    through 1.14.1

References 2

securitylab.github.com

npmjs.com