{
  "schema_version": "1.4.0",
  "id": "GHSA-4j46-mp85-mv8c",
  "modified": "2021-05-18T01:51:52Z",
  "published": "2021-05-18T01:52:24Z",
  "aliases": [
    "CVE-2020-7684"
  ],
  "summary": "Path traversal in rollup-plugin-serve",
  "details": "Path traversal in npm package `rollup-plugin-serve` before version 1.0.2. There is no path sanitization in `readFile` operation.",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
    }
  ],
  "affected": [
    {
      "package": {
        "ecosystem": "npm",
        "name": "rollup-plugin-serve"
      },
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1.0.2"
            }
          ]
        }
      ]
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2020-7684"
    },
    {
      "type": "WEB",
      "url": "https://github.com/thgh/rollup-plugin-serve/commit/3d144f2f47e86fcba34f5a144968da94220e3969"
    },
    {
      "type": "WEB",
      "url": "https://github.com/thgh/rollup-plugin-serve/releases/tag/v1.0.2"
    },
    {
      "type": "WEB",
      "url": "https://vuldb.com/?id.158745"
    }
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-22"
    ],
    "severity": "CRITICAL",
    "github_reviewed": true,
    "github_reviewed_at": "2021-05-10T21:12:24Z",
    "nvd_published_at": "2020-07-17T08:15:00Z"
  }
}