Skip to content

CVE-2021-32822 File disclosure in hbs

MediumCVSS 5.3 EPSS 0.98%
Published
Updated
Exploit status
No public exploit known

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.

Upgrade path

3 packages: 1 fixed, 2 with no fix yet.

PackageAffectedFixed inStatus
hbs project hbs All versions No fix listed No fix yet
pillarjs hbs All versions No fix listed No fix yet
npm hbs(npm) <= 4.4.0 after 4.4.0 Fixed

Affected products

ProductAffected versionsFixed in
npm hbs(npm) <= 4.4.0 No fix listed
hbs project hbs All versions No fix listed
pillarjs hbs All versions No fix listed

References