CVE-2021-32817
File disclosure in express-hbs
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
1Exploited in Wild
-Decision
Descriptions
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.
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
CVSS Scores
SSVC
- Decision:-
Timeline
- 2021-05-12 CVE Reserved
- 2021-05-14 CVE Published
- 2024-01-28 EPSS Updated
- 2024-08-03 CVE Updated
- 2024-08-03 First Exploit
- ---------- Exploited in Wild
- ---------- KEV Due Date
CWE
- CWE-94: Improper Control of Generation of Code ('Code Injection')
- CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
CAPEC
References (4)
URL | Tag | Source |
---|---|---|
https://github.com/TryGhost/express-hbs#%EF%B8%8F-this-creates-a-potential-security-vulnerability | Release Notes | |
https://www.npmjs.com/package/express-hbs | Product |
URL | Date | SRC |
---|---|---|
https://securitylab.github.com/advisories/GHSL-2021-019-express-hbs | 2024-08-03 |
URL | Date | SRC |
---|---|---|
https://github.com/TryGhost/express-hbs/commit/ff6fad6e357699412d4e916273314e5e7af1500e | 2022-07-02 |
URL | Date | SRC |
---|
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Express Handlebars Project Search vendor "Express Handlebars Project" | Express Handlebars Search vendor "Express Handlebars Project" for product "Express Handlebars" | <= 5.3.2 Search vendor "Express Handlebars Project" for product "Express Handlebars" and version " <= 5.3.2" | node.js |
Affected
|