CVE-2021-32818
JSON

7.7high

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

Severity
7.7high CVSS:3.1 by GitHub_M
Exploit likelihood
0.70% (higher than 54% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-m7mf-vm62-7x3q

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.

Affected

Product or packageVersionsReported by
netzpirat haml-coffee<= 1.14.1CVE List
haml-coffee (npm)up to 1.14.1GitHub Advisory Database
haml-coffee_project haml-coffeeup to 1.14.1NVD

All scores

GitHub_M7.7high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N
GitHub7.7high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N
NVD5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
NVD3.5low CVSS:2.0AV:N/AC:M/Au:S/C:N/I:P/A:N

Classification

What each source says

CVE List

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.

NVD (es)

haml-coffee es una solución de creación de plantillas de JavaScript.&#xa0;haml-coffee mezcla datos de plantilla puros con opciones de configuración del motor mediante la API de renderizado Express.&#xa0;Más específicamente, haml-coffee admite la incomprobación de una serie de funciones auxiliares de HTML mediante sus opciones de configuración.&#xa0;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.&#xa0;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.&#xa0;Actualmente, no presenta una solución para estos problemas a partir de la publicación de este CVE.&#xa0;La última versión de haml-coffee es actualmente la versión 1.14.1.&#xa0;Para obtener detalles completos, consulte la referencia GHSL-2021-025

References

Sources

SourceRecordLicence
CVE ListCVE-2021-32818 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-m7mf-vm62-7x3q changed 2023-11-08CC-BY-4.0
NVDCVE-2021-32818 changed 2026-06-17Public domain