{"cve":"CVE-2021-32817","nvd":{"published":"2021-05-14T19:15:07.840","modified":"2026-06-17T03:53:41.543","status":"Modified","description":"express-hbs is an Express handlebars template engine. express-hbs 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 .hbs appended to them. For complete details refer to the referenced GHSL-2021-019 report. Notes in documentation have been added to help users of express-hbs avoid this potential information exposure vulnerability.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N","score":6.8},"cwes":["CWE-94","CWE-200"],"references":["https://github.com/TryGhost/express-hbs#%EF%B8%8F-this-creates-a-potential-security-vulnerability","https://github.com/TryGhost/express-hbs/commit/ff6fad6e357699412d4e916273314e5e7af1500e","https://securitylab.github.com/advisories/GHSL-2021-019-express-hbs/","https://www.npmjs.com/package/express-hbs","https://github.com/TryGhost/express-hbs#%EF%B8%8F-this-creates-a-potential-security-vulnerability"],"products":["express_handlebars_project:express_handlebars"],"source":"nvd","synced_at":"2026-10-19T21:18:09.669877188+00:00"},"epss":{"cve":"CVE-2021-32817","score":0.01268,"percentile":0.69776,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-rwxp-hwwf-653v","url":"https://osv.dev/vulnerability/GHSA-rwxp-hwwf-653v","summary":"Insecure template handling in express-hbs","modified":"2023-12-06T01:01:15.976094Z","packages":[{"ecosystem":"npm","name":"express-hbs","purl":"pkg:npm/express-hbs","ranges":["<=2.4.0"],"fixed":[]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}