{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-32820","id":"CVE-2021-32820","title":"File disclosure in Express Handlebars","description":"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) ","descriptionLong":"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.","published":"2021-05-14T18:25:14.000Z","updated":"2026-10-20T10:54:43.234592771Z","reserved":"2021-05-12T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","rating":"high","source":"NVD"},"metrics":[{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","rating":"high","source":"NVD"},{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","rating":"high","source":"OSV"},{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","rating":"high","source":"GitHub"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","rating":"medium","source":"NVD"}],"rating":"high","products":["express-handlebars"],"affectedProducts":[{"vendor":"express-handlebars","product":"express-handlebars","defaultStatus":null,"versions":[{"status":"affected","version":"<= 5.3.2"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"express-handlebars","purl":"pkg:npm/express-handlebars","ranges":["<5.3.1"],"fixed":["5.3.1"],"advisory":"GHSA-fr76-2wp8-fp92"}],"cwes":["CWE-200","CWE-94"],"aliases":["BIT-handlebars-2021-32820","GHSA-fr76-2wp8-fp92"],"references":[{"url":"https://securitylab.github.com/advisories/GHSL-2021-018-express-handlebars/","tags":["x_refsource_CONFIRM","x_transferred","Exploit","Third Party Advisory","evidence"]},{"url":"https://www.npmjs.com/package/express-handlebars","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://github.com/express-handlebars/express-handlebars/pull/163","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence","web"]},{"url":"https://github.com/express-handlebars/express-handlebars/commit/78c47a235c4ad7bc2674bddd8ec2721567ed8c72","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/express-handlebars/express-handlebars/blob/78c47a235c4ad7bc2674bddd8ec2721567ed8c72/README.md#danger-","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32820","tags":["advisory"]},{"url":"https://github.com/express-handlebars/express-handlebars#danger-","tags":["web"]},{"url":"https://securitylab.github.com/advisories/GHSL-2021-018-express-handlebars","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.15743,"epssPercentile":0.9693,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-32820","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32820","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-32820","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-fr76-2wp8-fp92","ok":true,"note":"GHSA-fr76-2wp8-fp92"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-32820","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":["EPSS 16% with CVSS 8.6"],"attention":null}