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).

Severity (CVSS 3.1)5.4Medium
Exploit odds (30 days)1.3%top 30.1% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
npmexpress-hbsno fix listedGHSA-rwxp-hwwf-653v

Affected products (as reported)

VendorProductVersions
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