Skip to content
OpenAdvisories
Medium · 4.0 CVE-2021-32822 EUVD-2021-2003GHSA-7f5c-rpf4-86p8

File disclosure in hbs

Published Aug 16, 2021 · Updated Aug 3, 2024 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
pillarjs hbs all —

Affected packages

EcosystemPackageAffectedFixedRecord
npm hbs <= 4.4.0 — GHSA-7f5c-rpf4-86p8

Advisories 1

References