CVE-2021-32817
MEDIUMexpress-hbs < 5.3.2 - File Disclosure via Layout Parameter
Title source: llmDescription
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.
References (4)
Core 4
Core References
Exploit, Patch, Third Party Advisory x_refsource_confirm
https://securitylab.github.com/advisories/GHSL-2021-019-express-hbs/
Product x_refsource_misc
https://www.npmjs.com/package/express-hbs
Release Notes, Third Party Advisory x_refsource_misc
https://github.com/TryGhost/express-hbs#%EF%B8%8F-this-creates-a-potential-security-vulnerability
Patch, Third Party Advisory x_refsource_misc
https://github.com/TryGhost/express-hbs/commit/ff6fad6e357699412d4e916273314e5e7af1500e
Scores
CVSS v3
5.4
EPSS
0.0127
EPSS Percentile
66.1%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N
Details
CWE
CWE-200
CWE-94
Status
published
Products (2)
express_handlebars_project/express_handlebars
< 5.3.2
npm/express-hbs
0npm
Published
May 14, 2021
Tracked Since
Feb 18, 2026