CVE-2021-32818: Insecure template handling in haml-coffee
Summary
CVE-2021-32818: Insecure template handling in haml-coffee. Affects haml-coffee versions < 1.14.1. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
haml-coffee is a JavaScript templating solution that mixes pure template data with engine configuration options through the Express render API. It supports overriding HTML helper functions through its configuration options. The latest version of haml-coffee is 1.14.1.
Vulnerability Detail
The vulnerability in haml-coffee allows for remote code execution (RCE) if a vulnerable application passes user-controlled request objects to the template engine. Additionally, control over the escapeHtml parameter through template configuration pollution can lead to reflected Cross-Site Scripting (XSS) attacks against downstream applications. The issue has a severity rating of HIGH (CVSS score: 7.7).
How To Fix
No fixed version is published for this vulnerability.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
No workaround is available for this vulnerability.
Conclusion
The vulnerability in haml-coffee exposes applications to potential remote code execution (RCE) and reflected Cross-Site Scripting (XSS) attacks. It is important to stay updated on security advisories and apply the latest version of haml-coffee once a fix is available. For further support on vulnerability remediation, contact DevNack.com.
See every vulnerability recorded for haml-coffee →
FAQ
haml-coffee is a JavaScript templating solution that allows for the creation of dynamic HTML templates.
The vulnerability can lead to remote code execution (RCE) and reflected Cross-Site Scripting (XSS) attacks.
No, there is currently no fix available. It is recommended to monitor for updates and apply the latest version of haml-coffee once a fix is released.
Regularly check for security advisories, follow best practices for secure template handling, and consider alternative templating solutions if necessary.
You can find more information about this vulnerability in the referenced GHSL-2021-025 advisory.