Vulnerability · Published May 14, 2021 · Assigned by GitHub_M
CVE-2021-32817File disclosure in express-hbs
Medium 5.4
In plain English
A medium-severity information exposure in express-hbs from TryGhost. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.3% (higher than 70% of all known vulnerabilities).
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | express-hbs | no fix listed | GHSA-rwxp-hwwf-653v |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| TryGhost | express-hbs | < 2.4.0 |
Weakness: CWE-200 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N
References
- https://securitylab.github.com/advisories/GHSL-2021-019-express-hbs/ x_refsource_CONFIRM
- https://www.npmjs.com/package/express-hbs x_refsource_MISC
- https://github.com/TryGhost/express-hbs#%EF%B8%8F-this-creates-a-potential-security-vulnerability x_refsource_MISC
- https://github.com/TryGhost/express-hbs/commit/ff6fad6e357699412d4e916273314e5e7af1500e x_refsource_MISC