// For flags

CVE-2021-32818

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

Severity Score

5.4
*CVSS v3.1

Exploit Likelihood

*EPSS

Affected Versions

*CPE

Public Exploits

1
*Multiple Sources

Exploited in Wild

-
*KEV

Decision

-
*SSVC
Descriptions

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.

haml-coffee es una solución de creación de plantillas de JavaScript. haml-coffee mezcla datos de plantilla puros con opciones de configuración del motor mediante la API de renderizado Express. Más específicamente, haml-coffee admite la incomprobación de una serie de funciones auxiliares de HTML mediante sus opciones de configuración. Una aplicación vulnerable que pasa objetos de petición controlados por el usuario al motor de plantilla haml-coffee puede introducir vulnerabilidades de RCE. Además, el control sobre el parámetro escapeHtml mediante la contaminación de la configuración de la plantilla asegura que haml-coffee no sanearía las entradas de la plantilla que pueden resultar en ataques de tipo Cross Site Scripting reflejado contra aplicaciones posteriores. Actualmente, no presenta una solución para estos problemas a partir de la publicación de este CVE. La última versión de haml-coffee es actualmente la versión 1.14.1. Para obtener detalles completos, consulte la referencia GHSL-2021-025

*Credits: N/A
CVSS Scores
Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None
Attack Vector
Network
Attack Complexity
High
Privileges Required
Low
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
None
Attack Vector
Network
Attack Complexity
Medium
Authentication
Single
Confidentiality
None
Integrity
Partial
Availability
None
* Common Vulnerability Scoring System
SSVC
  • Decision:-
Exploitation
-
Automatable
-
Tech. Impact
-
* Organization's Worst-case Scenario
Timeline
  • 2021-05-12 CVE Reserved
  • 2021-05-14 CVE Published
  • 2023-03-08 EPSS Updated
  • 2024-08-03 CVE Updated
  • 2024-08-03 First Exploit
  • ---------- Exploited in Wild
  • ---------- KEV Due Date
CWE
  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
CAPEC
Affected Vendors, Products, and Versions
Vendor Product Version Other Status
Vendor Product Version Other Status <-- --> Vendor Product Version Other Status
Haml-coffee Project
Search vendor "Haml-coffee Project"
Haml-coffee
Search vendor "Haml-coffee Project" for product "Haml-coffee"
<= 1.14.1
Search vendor "Haml-coffee Project" for product "Haml-coffee" and version " <= 1.14.1"
node.js
Affected