{
  "schema_version": "1.4.0",
  "id": "GHSA-2j2j-8rrv-264g",
  "modified": "2023-09-13T18:50:53Z",
  "published": "2018-09-11T18:58:40Z",
  "aliases": [
    "CVE-2018-16459"
  ],
  "summary": "Cross-Site Scripting in exceljs",
  "details": "Versions of `exceljs` before 1.6.0 are vulnerable to cross-site scripting. \n\nThis vulnerability is due to `exceljs` not validating data from parsed XLSX file and embedding HTML tags, like `<script>` directly into the sheet cells. Because of this it's possible to inject malicious JavaScript code and execute it when data from the sheet is displayed in the browser.\n\n\n\n\n## Recommendation\n\nUpdate to version 1.6.0 or later.",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
    }
  ],
  "affected": [
    {
      "package": {
        "ecosystem": "npm",
        "name": "exceljs"
      },
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1.6.0"
            }
          ]
        }
      ]
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2018-16459"
    },
    {
      "type": "WEB",
      "url": "https://hackerone.com/reports/356809"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/advisories/GHSA-2j2j-8rrv-264g"
    },
    {
      "type": "WEB",
      "url": "https://github.com/nodejs/security-wg/blob/master/vuln/npm/464.json"
    },
    {
      "type": "WEB",
      "url": "https://www.npmjs.com/advisories/733"
    }
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-79"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2020-06-16T20:52:14Z",
    "nvd_published_at": null
  }
}