{
  "schema_version": "1.4.0",
  "id": "GHSA-jp6r-xcjj-5h7r",
  "modified": "2021-08-17T22:11:11Z",
  "published": "2019-08-27T17:36:32Z",
  "aliases": [
    "CVE-2019-15532"
  ],
  "summary": "Cross-Site Scripting in cyberchef",
  "details": "Versions of `cyberchef` prior to 8.31.3 are vulnerable to Cross-Site Scripting. In `Text Encoding Brute Force` the table rows are created by concatenating the `value` variable unsanitized in the HTML code. If this variable is controlled by user input it allows attackers to execute arbitrary JavaScript in a victim's browser.\n\n\n## Recommendation\n\nUpgrade to version 8.31.3 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": "cyberchef"
      },
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "8.31.3"
            }
          ]
        }
      ]
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2019-15532"
    },
    {
      "type": "WEB",
      "url": "https://github.com/gchq/CyberChef/issues/539"
    },
    {
      "type": "WEB",
      "url": "https://github.com/gchq/CyberChef/issues/544"
    },
    {
      "type": "WEB",
      "url": "https://github.com/gchq/CyberChef/commit/01f0625d6a177f9c5df9281f12a27c814c2d8bcf"
    },
    {
      "type": "WEB",
      "url": "https://github.com/gchq/CyberChef/compare/v8.31.1...v8.31.2"
    },
    {
      "type": "WEB",
      "url": "https://snyk.io/vuln/SNYK-JS-CYBERCHEF-460296"
    },
    {
      "type": "WEB",
      "url": "https://www.npmjs.com/advisories/1149"
    }
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-79"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2019-08-27T15:50:14Z",
    "nvd_published_at": null
  }
}