Live threats

All CVEs / Express Handlebars Project

CVE-2021-32820Express Handlebars Project Express Handlebars

High 8.6 No auth neededHigh EPSS

Priority
68
CVSS 3.1
8.6
EPSS
15.7%
probability of exploitation in 30 days · percentile 97
Auth required
No
Published
May 14, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-200, CWE-94
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N

What happens

Express-handlebars is a Handlebars view engine for Express. Express-handlebars 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 .handlebars appended to them. For complete details refer to the referenced GHSL-2021-018 report. Notes in documentation have been added to help users avoid this potential information exposure vulnerability.

Original NVD text.

What to do

  1. Apply the vendor's security update for Express Handlebars.
  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 express-handlebars < 5.3.1 5.3.1 npm install express-handlebars@5.3.1

Per OSV / GitHub Advisories (GHSA-fr76-2wp8-fp92). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
express_handlebars_projectexpress_handlebars≤ 5.3.2

Official sources

References

Links published by the sources. Open them with care.