Skip to content

CVE-2021-32817 File disclosure in express-hbs

MediumCVSS 6.8 EPSS 1.3%
Published
Updated
Exploit status
No public exploit known

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.

Upgrade path

3 packages: 2 fixed.

PackageAffectedFixed inStatus
express handlebars project express handlebars <= 5.3.2 after 5.3.2 Fixed
npm express-hbs(npm) <= 2.4.0 after 2.4.0 Fixed
TryGhost express-hbs = < 2.4.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
npm express-hbs(npm) <= 2.4.0 No fix listed
express handlebars project express handlebars <= 5.3.2 No fix listed
TryGhost express-hbs = < 2.4.0 No fix listed

References