{"api_version":"1","generated_at":"2026-07-23T15:02:43+00:00","cve":"CVE-2021-32817","urls":{"html":"https://cve.report/CVE-2021-32817","api":"https://cve.report/api/cve/CVE-2021-32817.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-32817","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-32817"},"summary":{"title":"CVE-2021-32817","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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2021-05-14 19:15:00","updated_at":"2022-07-02 18:24:00"},"problem_types":["CWE-94"],"metrics":[],"references":[{"url":"https://www.npmjs.com/package/express-hbs","name":"https://www.npmjs.com/package/express-hbs","refsource":"MISC","tags":[],"title":"express-hbs  -  npm","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/TryGhost/express-hbs/commit/ff6fad6e357699412d4e916273314e5e7af1500e","name":"https://github.com/TryGhost/express-hbs/commit/ff6fad6e357699412d4e916273314e5e7af1500e","refsource":"MISC","tags":[],"title":"???? Added notes on a potential security vulnerability · TryGhost/express-hbs@ff6fad6 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://securitylab.github.com/advisories/GHSL-2021-019-express-hbs/","name":"https://securitylab.github.com/advisories/GHSL-2021-019-express-hbs/","refsource":"CONFIRM","tags":[],"title":"GHSL-2021-019: File disclosure in express-hbs - CVE-2021-32817 | GitHub Security Lab","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/TryGhost/express-hbs#%EF%B8%8F-this-creates-a-potential-security-vulnerability","name":"https://github.com/TryGhost/express-hbs#%EF%B8%8F-this-creates-a-potential-security-vulnerability","refsource":"MISC","tags":[],"title":"GitHub - TryGhost/express-hbs: Express handlebars template engine with inheritance, partials, i18n and async helpers.","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-32817","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32817","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"32817","vulnerable":"1","versionEndIncluding":"5.3.2","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"express_handlebars_project","cpe5":"express_handlebars","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"node.js","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-32817","qid":"982586","title":"Nodejs (npm) Security Update for express-hbs (GHSA-rwxp-hwwf-653v)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2021-32817","STATE":"PUBLIC","TITLE":"File disclosure in express-hbs"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"express-hbs","version":{"version_data":[{"version_value":"< 2.4.0"}]}}]},"vendor_name":"TryGhost"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"generator":{"engine":"Vulnogram 0.0.9"},"impact":{"cvss":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":5.4,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-200 Information Exposure"}]}]},"references":{"reference_data":[{"name":"https://securitylab.github.com/advisories/GHSL-2021-019-express-hbs/","refsource":"CONFIRM","url":"https://securitylab.github.com/advisories/GHSL-2021-019-express-hbs/"},{"name":"https://www.npmjs.com/package/express-hbs","refsource":"MISC","url":"https://www.npmjs.com/package/express-hbs"},{"name":"https://github.com/TryGhost/express-hbs#%EF%B8%8F-this-creates-a-potential-security-vulnerability","refsource":"MISC","url":"https://github.com/TryGhost/express-hbs#%EF%B8%8F-this-creates-a-potential-security-vulnerability"},{"name":"https://github.com/TryGhost/express-hbs/commit/ff6fad6e357699412d4e916273314e5e7af1500e","refsource":"MISC","url":"https://github.com/TryGhost/express-hbs/commit/ff6fad6e357699412d4e916273314e5e7af1500e"}]},"source":{"advisory":"GHSL-2021-019","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2021-05-14 19:15:00","lastModifiedDate":"2022-07-02 18:24:00","problem_types":["CWE-94"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"CHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":6.8,"baseSeverity":"MEDIUM"},"exploitabilityScore":2.2,"impactScore":4},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:P/I:N/A:N","accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":4.3},"severity":"MEDIUM","exploitabilityScore":8.6,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:express_handlebars_project:express_handlebars:*:*:*:*:*:node.js:*:*","versionEndIncluding":"5.3.2","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"32817","Ordinal":"208205","Title":"CVE-2021-32817","CVE":"CVE-2021-32817","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"32817","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2021","CveId":"32817","Ordinal":"2","NoteData":"2021-05-14","Type":"Other","Title":"Published"},{"CveYear":"2021","CveId":"32817","Ordinal":"3","NoteData":"2021-05-14","Type":"Other","Title":"Modified"}]}}}