CVE-2020-7741
CRITICAL 9.9CVSS 3.1XSS in hello.js
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).
- Published
- 6 Oct 2020
- Last modified
- 8 Jul 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-7jh9-6cpf-h4m7SNYK-JS-HELLOJS-1014546
- Sources
- NVDJSONOSV GHSA-7jh9-6cpf-h4m7JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | CRITICAL 9.9 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.9 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | hello.js_project | hello.jscpe:2.3:a:hello.js_project:hello.js:*:*:*:*:*:node.js:*:* |
< 1.18.6 | 1.18.6 |
| OSV | npm | hellojs | < 1.18.6 | 1.18.6 |
References
- https://github.com/MrSwitch/hello.js/blob/3b79ec93781b3d7b9c0b56f598e060301d1f3e73/dist/hello.all.js%23L1545 · Broken Link, WEB
- https://github.com/MrSwitch/hello.js/commit/d6f5137f30de6e0ef7048191ee6ae575fdc2f669 · Patch, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JS-HELLOJS-1014546 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2020-7741 · ADVISORY
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 6 Oct 2020)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 13 Jan 2021)