{
  "schema_version": "1.4.0",
  "id": "GHSA-2mp5-m968-gwr2",
  "modified": "2023-02-03T20:45:52Z",
  "published": "2019-07-16T00:41:34Z",
  "aliases": [
    "CVE-2019-5447"
  ],
  "summary": "Path Traversal in http-file-server",
  "details": "All versions of `http-file-server` are vulnerable to Path Traversal. The package fails to sanitize URLs, allowing attackers to access server files outside of the served folder using relative paths.\n\n\n## Recommendation\n\nNo fix is currently available. Consider using an alternative package until a fix is made available.",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
    }
  ],
  "affected": [
    {
      "package": {
        "ecosystem": "npm",
        "name": "http-file-server"
      },
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            }
          ]
        }
      ],
      "database_specific": {
        "last_known_affected_version_range": "< 0.2.6"
      }
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2019-5447"
    },
    {
      "type": "WEB",
      "url": "https://hackerone.com/reports/570133"
    },
    {
      "type": "WEB",
      "url": "https://www.npmjs.com/advisories/1077"
    }
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-22"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2019-07-15T21:41:32Z",
    "nvd_published_at": "2019-07-15T18:15:00Z"
  }
}