logo

CVE-2021-32817 express-hbs

Package

Manager: npm
Name: express-hbs
Vulnerable Version: >=0 <=2.4.0

Severity

Level: Medium

CVSS v3.1: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N

CVSS v4.0: CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N

EPSS: 0.00477 pctl0.64025

Details

Insecure template handling in express-hbs express-hbs is an Express handlebars template engine. express-hbs mixes pure template data with engine configuration options through the Express render API. More specifically, the layout parameter may trigger file disclosure vulnerabilities in downstream applications. This potential vulnerability is somewhat restricted in that only files with existing extentions (i.e. file.extension) can be included, files that lack an extension will have .hbs appended to them. For complete details refer to the referenced GHSL-2021-019 report. Notes in documentation have been added to help users of express-hbs avoid this potential information exposure vulnerability.

Metadata

Created: 2021-05-17T20:58:51Z
Modified: 2023-04-04T17:30:41Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/05/GHSA-rwxp-hwwf-653v/GHSA-rwxp-hwwf-653v.json
CWE IDs: ["CWE-200", "CWE-94"]
Alternative ID: GHSA-rwxp-hwwf-653v
Finding: F422
Auto approve: 1