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 package | Versions | Reported by |
|---|---|---|
| TryGhost express-hbs | < 2.4.0 | CVE List |
| express-hbs (npm) | up to 2.4.0 | GitHub Advisory Database |
| express_handlebars_project express_handlebars | up to 5.3.2 | NVD |
| handlebars (Bitnami) | before 5.3.3 | Bitnami Vulnerability Database |
All scores
| GitHub_M | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N |
| GitHub | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N |
| NVD | 6.8medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N |
| NVD | 4.3medium CVSS:2.0 | AV:N/AC:M/Au:N/C:P/I:N/A:N |
| Bitnami Vulnerability Database | medium 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. express-hbs mezcla datos de plantilla puros con opciones de configuración del motor mediante la API de renderizado Express. Más específicamente, el parámetro de diseño puede desencadenar vulnerabilidades de divulgación de archivos en aplicaciones posteriores. 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. Para obtener detalles completos, consulte el reporte GHSL-2021-019 al que se hace referencia. 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
| https://securitylab.github.com/advisories/GHSL-2021-019-express-hbs/ | advisory, exploit, patch, third-party-advisory | |
| https://www.npmjs.com/package/express-hbs | product, web | |
| https://github.com/TryGhost/express-hbs#%EF%B8%8F-this-creates-a-potential-security-vulnerability | advisory, release-notes, third-party-advisory, web | |
| https://github.com/TryGhost/express-hbs/commit/ff6fad6e357699412d4e916273314e5e7af1500e | advisory, patch, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-32817 | advisory, web | |
| https://github.com/TryGhost/express-hbs | package | |
| https://securitylab.github.com/advisories/GHSL-2021-019-express-hbs | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-32817 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-rwxp-hwwf-653v changed 2023-12-06 | CC-BY-4.0 |
| NVD | CVE-2021-32817 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-HANDLEBARS-2021-32817 changed 2026-09-08 | Apache-2.0 |