{"id":"CVE-2020-7741","published":"2020-10-06T14:30:15Z","modified":"2024-09-16T16:42:49Z","title":"Cross-site Scripting (XSS)","vendor":null,"product":null,"tier":"tail","description":{"text":"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).","provenance":"source","from":"CVE.org"},"cvss":{"score":9.9,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01476,"percentile":0.74481,"provenance":"source"},"cwes":[],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-HELLOJS-1014546","tags":["x_refsource_MISC"]},{"url":"https://github.com/MrSwitch/hello.js/blob/3b79ec93781b3d7b9c0b56f598e060301d1f3e73/dist/hello.all.js%23L1545","tags":["x_refsource_MISC"]},{"url":"https://github.com/MrSwitch/hello.js/commit/d6f5137f30de6e0ef7048191ee6ae575fdc2f669","tags":["x_refsource_MISC"]}],"priority":{"score":21.8,"factors":[{"name":"EPSS percentile","points":14.9},{"name":"CVSS severity","points":6.93}]},"affectedVersions":[{"vendor":"n/a","product":"hellojs","versions":[">= unspecified, < 1.18.6"]}],"affected":[{"ecosystem":"npm","package":"hellojs","vulnerableRanges":["<1.18.6"],"patched":["1.18.6"],"from":["GHSA-7jh9-6cpf-h4m7"],"provenance":"source"}],"summary":{"text":"The flaw is a cross-site scripting issue in the hellojs package before 1.18.6, where the oauth_redirect URL parameter is read and passed directly to location.assign without validation or sanitisation. An attacker who can supply a crafted URL containing a javascript: payload in that parameter can get script executed in the context of the affected page, and the attack requires no privileges and no network-level access beyond reaching the page with the malicious link, though the victim must be induced to open it.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:45:24Z"},"euvd":{"id":"EUVD-2021-0496","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-hellojs-cve-2020-7741","children":[{"from":"CVE-2020-7741","to":"CVE-2021-26505","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/hello.js"],"commits":["https://github.com/MrSwitch/hello.js/commit/d6f5137f30de6e0ef7048191ee6ae575fdc2f669","https://github.com/MrSwitch/hello.js/commit/7ab50aeff2d41991f08d4ad6c0481125eea8f6b7"],"basis":"rarely changed file"}]},{"from":"CVE-2020-7741","to":"CVE-2020-26938","relation":"related","confidence":"low","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"related","quote":"NOTE: this vulnerability is similar to CVE-2020-7741.","from":"CVE.org","in":"CVE-2020-26938"}]}]}}