ghsa-fr76-2wp8-fp92
Vulnerability from github
Published
2022-02-10 23:35
Modified
2023-09-05 23:08
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

Show details on source website


{
  "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"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading...

Loading...

Loading...

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.