CVE-2021-32817
JSON

5.4medium

File disclosure in express-hbs

Severity
5.4medium CVSS:3.1 by GitHub_M
Exploit likelihood
1.27% (higher than 70% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-rwxp-hwwf-653vBIT-HANDLEBARS-2021-32817

Description

express-hbs is an Express handlebars template engine. express-hbs mixes pure template data with engine configuration options through the Express render API. More specifically, the layout parameter may trigger file disclosure vulnerabilities in downstream applications. This potential vulnerability is somewhat restricted in that only files with existing extentions (i.e. file.extension) can be included, files that lack an extension will have .hbs appended to them. For complete details refer to the referenced GHSL-2021-019 report. Notes in documentation have been added to help users of express-hbs avoid this potential information exposure vulnerability.

Affected

Product or packageVersionsReported by
TryGhost express-hbs< 2.4.0CVE List
express-hbs (npm)up to 2.4.0GitHub Advisory Database
express_handlebars_project express_handlebarsup to 5.3.2NVD
handlebars (Bitnami)before 5.3.3Bitnami Vulnerability Database

All scores

GitHub_M5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N
GitHub5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N
NVD6.8medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N
NVD4.3medium CVSS:2.0AV:N/AC:M/Au:N/C:P/I:N/A:N
Bitnami Vulnerability Databasemedium rating

Classification

What each source says

CVE List

express-hbs is an Express handlebars template engine. express-hbs mixes pure template data with engine configuration options through the Express render API. More specifically, the layout parameter may trigger file disclosure vulnerabilities in downstream applications. This potential vulnerability is somewhat restricted in that only files with existing extentions (i.e. file.extension) can be included, files that lack an extension will have .hbs appended to them. For complete details refer to the referenced GHSL-2021-019 report. Notes in documentation have been added to help users of express-hbs avoid this potential information exposure vulnerability.

NVD (es)

express-hbs es un motor de plantilla handlebars Express.&#xa0;express-hbs mezcla datos de plantilla puros con opciones de configuración del motor mediante la API de renderizado Express.&#xa0;Más específicamente, el parámetro de diseño puede desencadenar vulnerabilidades de divulgación de archivos en aplicaciones posteriores.&#xa0;Esta vulnerabilidad potencial está algo restringida en el sentido de que solo pueden ser incluidos archivos con extensiones existentes (es decir, file.extension); los archivos que carecen de extensión tendrán .hbs adjunto a ellos.&#xa0;Para obtener detalles completos, consulte el reporte GHSL-2021-019 al que se hace referencia.&#xa0;Se han agregado notas en una documentación para ayudar a usuarios de express-hbs a evitar esta potencial vulnerabilidad de exposición de información

References

Sources

SourceRecordLicence
CVE ListCVE-2021-32817 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-rwxp-hwwf-653v changed 2023-12-06CC-BY-4.0
NVDCVE-2021-32817 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-HANDLEBARS-2021-32817 changed 2026-09-08Apache-2.0