{"id":"CVE-2021-32822","revision":"b8ffa5cc181b44ef800f5f0782c3e2c7","records":[{"revision":"b8ffa5cc181b44ef800f5f0782c3e2c7","observedAt":"2026-10-24T18:17:28.628+00:00","statement":{"source":"nvd","id":"CVE-2021-32822","aliases":[],"title":"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 wi…","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-16T19:15:14.083+00:00","modifiedAt":"2026-06-17T03:53:42.127+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N","score":4,"severity":"MEDIUM"},{"system":"CVSS 3.1 · nvd@nist.gov · Primary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"severity":"MEDIUM"},{"system":"CVSS 2.0 · nvd@nist.gov · Primary","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","score":5,"severity":"MEDIUM"}],"references":["https://securitylab.github.com/advisories/GHSL-2021-020-pillarjs-hbs/"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2021-32822","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Modified","weaknesses":["CWE-538","CWE-94"],"productCriteria":["cpe:2.3:a:hbs_project:hbs:-:*:*:*:*:node.js:*:*"],"sourceDates":{"published":"2021-08-16T19:15:14.083","lastModified":"2026-06-17T03:53:42.127"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2021-32822","identifiers":["CVE-2021-32822"]},"retained":false,"historicalAffected":[]}],"coverage":[]}