Vulnerability · Published Aug 16, 2021 · Assigned by GitHub_M

CVE-2021-32822File disclosure in hbs

Medium 4.0

In plain English

A medium-severity security flaw in hbs from pillarjs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.0% (higher than 62% of all known vulnerabilities).

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

Official description

The npm hbs package is an Express view engine wrapper for Handlebars. Depending on usage, users of hbs may be vulnerable to a file disclosure vulnerability. There is currently no patch for this vulnerability. hbs mixes pure template data with engine configuration options through the Express render API. By overwriting internal configuration options a file disclosure vulnerability may be triggered in downstream applications. For an example PoC see the referenced GHSL-2021-020.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmhbsno fix listedGHSA-7f5c-rpf4-86p8

Affected products (as reported)

VendorProductVersions
pillarjs hbs all

Weakness: CWE-538 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N

References