{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "0"
              },
              {
                "fixed": "1.18.6"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "3d694a97252b28dd09b39a2fd2b7dd3af1fdad63"
            },
            {
              "fixed": "d6f5137f30de6e0ef7048191ee6ae575fdc2f669"
            }
          ],
          "repo": "https://github.com/mrswitch/hello.js",
          "type": "GIT"
        }
      ]
    }
  ],
  "details": "This affects the package hellojs before 1.18.6. The code get the param oauth_redirect from url and pass it to location.assign without any check and sanitisation. So we can simply pass some XSS payloads into the url param oauth_redirect, such as javascript:alert(1).",
  "id": "CVE-2020-7741",
  "modified": "2026-03-13T21:50:48.729570149Z",
  "published": "2020-10-06T15:15:15.757Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/MrSwitch/hello.js/blob/3b79ec93781b3d7b9c0b56f598e060301d1f3e73/dist/hello.all.js%23L1545"
    },
    {
      "type": "ADVISORY",
      "url": "https://snyk.io/vuln/SNYK-JS-HELLOJS-1014546"
    },
    {
      "type": "FIX",
      "url": "https://github.com/MrSwitch/hello.js/commit/d6f5137f30de6e0ef7048191ee6ae575fdc2f669"
    }
  ],
  "related": [
    "SNYK-JS-HELLOJS-1014546"
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:H",
      "type": "CVSS_V3"
    }
  ]
}