CVE-2021-32817 File disclosure in express-hbs
- 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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch third-party-advisory
- github.com product release-notes third-party-advisory
- securitylab.github.com exploit patch third-party-advisory vendor-advisory
- www.npmjs.com product
- github.com