{"id":"CVE-2021-32822","state":"PUBLISHED","title":"File disclosure in hbs","description":"The npm hbs package is an Express view engine wrapper for Handlebars. Depending on usage, users of hbs may be vulnerable to a file disclosure vulnerability. There is currently no patch for this vulnerability. hbs mixes pure template data with engine configuration options through the Express render API. By overwriting internal configuration options a file disclosure vulnerability may be triggered in downstream applications. For an example PoC see the referenced GHSL-2021-020.","publishedAt":"2021-08-16T18:45:10.000Z","updatedAt":"2024-08-03T23:33:55.940Z","severity":{"score":4,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["pillarjs hbs"],"affected":[{"vendor":"pillarjs","product":"hbs","versions":[{"version":"all","status":"affected"}]}],"references":["https://securitylab.github.com/advisories/GHSL-2021-020-pillarjs-hbs/"],"weaknesses":["CWE-538"],"ingestedAt":"2026-10-29T19:48:33.225Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/32xxx/CVE-2021-32822.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2021-32822","state":"PUBLISHED","datePublished":"2021-08-16T18:45:10.000Z","dateUpdated":"2024-08-03T23:33:55.940Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2021-05-12T00:00:00.000Z"},"containers":{"cna":{"title":"File disclosure in hbs","descriptions":[{"lang":"en","value":"The npm hbs package is an Express view engine wrapper for Handlebars. Depending on usage, users of hbs may be vulnerable to a file disclosure vulnerability. There is currently no patch for this vulnerability. hbs mixes pure template data with engine configuration options through the Express render API. By overwriting internal configuration options a file disclosure vulnerability may be triggered in downstream applications. For an example PoC see the referenced GHSL-2021-020."}],"affected":[{"vendor":"pillarjs","product":"hbs","versions":[{"version":"all","status":"affected"}]}],"references":[{"url":"https://securitylab.github.com/advisories/GHSL-2021-020-pillarjs-hbs/","tags":["x_refsource_CONFIRM"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":4,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-538","description":"CWE-538 File and Directory Information Exposure","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","dateUpdated":"2021-08-16T18:45:10.000Z","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa"},"source":{"advisory":"GHSL-2021-020","discovery":"INTERNAL"},"x_generator":{"engine":"Vulnogram 0.0.9"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2021-32822","STATE":"PUBLIC","TITLE":"File disclosure in hbs"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"hbs","version":{"version_data":[{"version_value":"all"}]}}]},"vendor_name":"pillarjs"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"The npm hbs package is an Express view engine wrapper for Handlebars. Depending on usage, users of hbs may be vulnerable to a file disclosure vulnerability. There is currently no patch for this vulnerability. hbs mixes pure template data with engine configuration options through the Express render API. By overwriting internal configuration options a file disclosure vulnerability may be triggered in downstream applications. For an example PoC see the referenced GHSL-2021-020."}]},"generator":{"engine":"Vulnogram 0.0.9"},"impact":{"cvss":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":4,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-538 File and Directory Information Exposure"}]}]},"references":{"reference_data":[{"name":"https://securitylab.github.com/advisories/GHSL-2021-020-pillarjs-hbs/","refsource":"CONFIRM","url":"https://securitylab.github.com/advisories/GHSL-2021-020-pillarjs-hbs/"}]},"source":{"advisory":"GHSL-2021-020","discovery":"INTERNAL"}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://securitylab.github.com/advisories/GHSL-2021-020-pillarjs-hbs/","tags":["x_refsource_CONFIRM","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T23:33:55.940Z"}}]}}}