{
  "schema_version": "1.4.0",
  "id": "GHSA-hh8v-jmh3-9437",
  "modified": "2021-04-06T21:51:28Z",
  "published": "2021-04-13T15:25:33Z",
  "aliases": [
    "CVE-2020-8823"
  ],
  "summary": "Cross-site scripting in SocksJS-node",
  "details": "htmlfile in lib/transport/htmlfile.js in SockJS before 0.3.0 is vulnerable to Reflected XSS via the /htmlfile c (aka callback) parameter.",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
    }
  ],
  "affected": [
    {
      "package": {
        "ecosystem": "npm",
        "name": "sockjs"
      },
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "0.3.0"
            }
          ]
        }
      ]
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2020-8823"
    },
    {
      "type": "WEB",
      "url": "https://github.com/theyiyibest/Reflected-XSS-on-SockJS/issues/1"
    },
    {
      "type": "WEB",
      "url": "https://github.com/theyiyibest/Reflected-XSS-on-SockJS"
    },
    {
      "type": "WEB",
      "url": "https://snyk.io/vuln/SNYK-JS-SOCKJS-548397"
    },
    {
      "type": "WEB",
      "url": "https://www.npmjs.com/package/sockjs"
    },
    {
      "type": "WEB",
      "url": "https://www.sockjs.org"
    }
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-79"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2021-04-06T21:51:28Z",
    "nvd_published_at": "2020-02-10T03:15:00Z"
  }
}