GHSA-FR76-2WP8-FP92
Vulnerability from github – Published: 2022-02-10 23:35 – Updated: 2023-09-05 23:08
VLAI?
Summary
Insecure template handling in Express-handlebars
Details
Express-handlebars is a Handlebars view engine for Express. Express-handlebars 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 .handlebars appended to them. For complete details refer to the referenced GHSL-2021-018 report. Notes in documentation have been added to help users avoid this potential information exposure vulnerability.
A fix is discussed in https://github.com/express-handlebars/express-handlebars/pull/163
Severity ?
8.6 (High)
{
"affected": [
{
"package": {
"ecosystem": "npm",
"name": "express-handlebars"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "5.3.1"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2021-32820"
],
"database_specific": {
"cwe_ids": [
"CWE-200",
"CWE-94"
],
"github_reviewed": true,
"github_reviewed_at": "2021-05-17T18:45:00Z",
"nvd_published_at": "2021-05-14T19:15:00Z",
"severity": "HIGH"
},
"details": "Express-handlebars is a Handlebars view engine for Express. Express-handlebars 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 `.handlebars` appended to them. For complete details refer to the referenced GHSL-2021-018 report. Notes in documentation have been added to help users avoid this potential information exposure vulnerability.\n\nA fix is discussed in https://github.com/express-handlebars/express-handlebars/pull/163",
"id": "GHSA-fr76-2wp8-fp92",
"modified": "2023-09-05T23:08:50Z",
"published": "2022-02-10T23:35:21Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2021-32820"
},
{
"type": "WEB",
"url": "https://github.com/express-handlebars/express-handlebars/pull/163"
},
{
"type": "WEB",
"url": "https://github.com/express-handlebars/express-handlebars/commit/78c47a235c4ad7bc2674bddd8ec2721567ed8c72"
},
{
"type": "WEB",
"url": "https://github.com/express-handlebars/express-handlebars#danger-"
},
{
"type": "WEB",
"url": "https://github.com/express-handlebars/express-handlebars/blob/78c47a235c4ad7bc2674bddd8ec2721567ed8c72/README.md#danger-"
},
{
"type": "ADVISORY",
"url": "https://securitylab.github.com/advisories/GHSL-2021-018-express-handlebars"
},
{
"type": "WEB",
"url": "https://www.npmjs.com/package/express-handlebars"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N",
"type": "CVSS_V3"
}
],
"summary": "Insecure template handling in Express-handlebars"
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…