GHSA-rwxp-hwwf-653v

Suggest an improvement
Source
https://github.com/advisories/GHSA-rwxp-hwwf-653v
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/05/GHSA-rwxp-hwwf-653v/GHSA-rwxp-hwwf-653v.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-rwxp-hwwf-653v
Aliases
Published
2021-05-17T20:58:51Z
Modified
2023-12-06T00:46:14.381810Z
Severity
  • 5.4 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N CVSS Calculator
Summary
Insecure template handling in express-hbs
Details

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.

Database specific
{
    "nvd_published_at": "2021-05-14T19:15:00Z",
    "cwe_ids": [
        "CWE-200",
        "CWE-94"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2021-05-17T19:09:07Z"
}
References

Affected packages

npm / express-hbs

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Last affected
2.4.0