{
  "schema_version": "1.4.0",
  "id": "GHSA-frpw-jrwx-hcfv",
  "modified": "2023-09-07T22:38:20Z",
  "published": "2021-04-13T15:30:00Z",
  "aliases": [
    "CVE-2021-25864"
  ],
  "summary": "Path Traversal in node-red-contrib-huemagic",
  "details": "node-red-contrib-huemagic 3.0.0 is affected by `hue/assets/..%2F` Directory Traversal.in the `res.sendFile` API, used in file hue-magic.js, to fetch an arbitrary file.",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
    }
  ],
  "affected": [
    {
      "package": {
        "ecosystem": "npm",
        "name": "node-red-contrib-huemagic"
      },
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "3.0.0"
            }
          ]
        }
      ]
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-25864"
    },
    {
      "type": "WEB",
      "url": "https://github.com/Foddy/node-red-contrib-huemagic/issues/217"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/Foddy/node-red-contrib-huemagic"
    }
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-22"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2021-04-05T23:24:50Z",
    "nvd_published_at": "2021-01-26T18:16:00Z"
  }
}