Skip to main content
← All vulnerabilities
CVE-2021-32820GHSA-FR76-2WP8-FP92BIT-HANDLEBARS-2021-32820

File disclosure in Express Handlebars

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.3.1
1 Nuclei template

Summary

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.

Timeline

  1. CVE published
  2. Record last updated
  3. EPSS reached 10%

    FIRST estimates at least a 10% chance of exploitation in the next 30 days

Affected versions

  • express-handlebars express-handlebars

    through 5.3.2

  • express-handlebarsnpm

    fixed in 5.3.1

References 6

securitylab.github.com

npmjs.com

GitHub · express-handlebars/express-handlebars

GitHub · projectdiscovery/nuclei-templates