{"id":"CVE-2021-32822","published":"2021-08-16T18:45:10Z","modified":"2024-08-03T23:33:55Z","title":"File disclosure in hbs","vendor":"pillarjs","product":"hbs","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00982,"percentile":0.61063,"provenance":"source"},"cwes":[{"id":"CWE-538","name":"Insertion of Sensitive Information into Externally-Accessible File or Directory"}],"references":[{"url":"https://securitylab.github.com/advisories/GHSL-2021-020-pillarjs-hbs/","tags":["x_refsource_CONFIRM"]}],"priority":{"score":15.0,"factors":[{"name":"EPSS percentile","points":12.21},{"name":"CVSS severity","points":2.8}]},"vendorSlug":"pillarjs","affectedVersions":[{"vendor":"pillarjs","product":"hbs","versions":["all"]}],"affected":[{"ecosystem":"npm","package":"hbs","vulnerableRanges":["<=4.4.0"],"patched":[],"from":["GHSA-7f5c-rpf4-86p8"],"provenance":"source"}],"euvd":{"id":"EUVD-2021-2003","exploited":false,"provenance":"source"}}