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

High 7.7 Published Updated
Exploited in the wild
Not known
Fix
None listed

What is CVE-2021-32818?

CVE-2021-32818 is a high-severity vulnerability in netzpirat haml-coffee, published on 14 May 2021.

Official 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.

Weakness: CWE-79

Which versions are affected by CVE-2021-32818?

2 open source packages ship an affected version, including haml-coffee. It affects 1 product.

PackageAffectedFixed in
haml-coffee npmAll versions to 1.14.1None
haml-coffee npmAll versions to 1.14.1None

Products include Haml-Coffee Project Haml-Coffee.

How do I fix CVE-2021-32818?

No fix has been published for CVE-2021-32818 yet. Limit exposure of the affected software until one is available.

Is CVE-2021-32818 being exploited?

There is no known exploitation of CVE-2021-32818 in the wild and no public exploit code.

Sources

Also known as GHSA-m7mf-vm62-7x3q.

Is CVE-2021-32818 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free