CVE-2021-32818
Remote code execution and Reflected cross site scripting in haml-coffee
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
1Exploited in Wild
-Decision
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
CVSS Scores
SSVC
- Decision:-
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
References (2)
URL | Tag | Source |
---|---|---|
https://securitylab.github.com/advisories/GHSL-2021-025-haml-coffee | Third Party Advisory |
URL | Date | SRC |
---|---|---|
https://www.npmjs.com/package/haml-coffee | 2024-08-03 |
URL | Date | SRC |
---|
URL | Date | SRC |
---|
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
|