Live threats

All CVEs / Hbs Project

CVE-2021-32822Hbs Project Hbs

Medium 5.3 No auth needed

Priority
47
CVSS 3.1
5.3
EPSS
1.0%
probability of exploitation in 30 days · percentile 61
Auth required
No
Published
Aug 16, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-538, CWE-94
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Hbs.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm hbs ≤ 4.4.0 no fixed version —

Per OSV / GitHub Advisories (GHSA-7f5c-rpf4-86p8). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
hbs_projecthbsall

Official sources

References

Links published by the sources. Open them with care.