{"id":"GHSA-7f5c-rpf4-86p8","revision":"97c620ab05f049faa3caebe87a0d3002","records":[{"revision":"97c620ab05f049faa3caebe87a0d3002","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-7f5c-rpf4-86p8","aliases":["CVE-2021-32822"],"title":"Insertion of Sensitive Information into Externally-Accessible File or Directory and Exposure of Sensitive Information to an Unauthorized Actor 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-09-02T17:16:46+00:00","modifiedAt":"2023-11-08T04:06:01.378338+00:00","affected":[{"ecosystem":"npm","name":"hbs","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"last_affected","version":"4.1.2"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://nvd.nist.gov/vuln/detail/CVE-2021-32822","https://github.com/pillarjs/hbs","https://securitylab.github.com/advisories/GHSL-2021-020-pillarjs-hbs"],"sourceUrl":"https://github.com/advisories/GHSA-7f5c-rpf4-86p8","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-7f5c-rpf4-86p8","identifiers":["GHSA-7f5c-rpf4-86p8","CVE-2021-32822"]},"retained":false,"historicalAffected":[]}],"coverage":[]}