{"id":"CVE-2021-32822","revision":"2cf59724bc4d4e4da45a508ac30288cf","records":[{"revision":"2cf59724bc4d4e4da45a508ac30288cf","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2021-32822","aliases":[],"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.","state":0,"publishedAt":"2021-08-16T18:45:10+00:00","modifiedAt":"2024-08-03T23:33:55.94+00:00","affected":[{"ecosystem":"Vendor product","name":"hbs","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"hbs\",\n                    \"vendor\": \"pillarjs\",\n                    \"versions\": [\n                        {\n                            \"status\": \"affected\",\n                            \"version\": \"all\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N","score":4,"severity":"MEDIUM"}],"references":["https://securitylab.github.com/advisories/GHSL-2021-020-pillarjs-hbs/"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2021-32822","license":"CVE Program Terms of Use","key":"cve-program:CVE-2021-32822","identifiers":["CVE-2021-32822"]},"retained":false,"historicalAffected":[]}],"coverage":[]}