{"api_version":"1","generated_at":"2026-07-23T09:48:42+00:00","cve":"CVE-2020-7741","urls":{"html":"https://cve.report/CVE-2020-7741","api":"https://cve.report/api/cve/CVE-2020-7741.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2020-7741","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2020-7741"},"summary":{"title":"CVE-2020-7741","description":"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).","state":"PUBLIC","assigner":"report@snyk.io","published_at":"2020-10-06 15:15:00","updated_at":"2020-10-19 19:44:00"},"problem_types":["CWE-79"],"metrics":[],"references":[{"url":"https://github.com/MrSwitch/hello.js/commit/d6f5137f30de6e0ef7048191ee6ae575fdc2f669","name":"https://github.com/MrSwitch/hello.js/commit/d6f5137f30de6e0ef7048191ee6ae575fdc2f669","refsource":"MISC","tags":["Patch","Third Party Advisory"],"title":"fix(xss): oauth_redirect should be a valid url · MrSwitch/hello.js@d6f5137 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://snyk.io/vuln/SNYK-JS-HELLOJS-1014546","name":"https://snyk.io/vuln/SNYK-JS-HELLOJS-1014546","refsource":"MISC","tags":["Third Party Advisory"],"title":"Cross-site Scripting (XSS) in hellojs | Snyk","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/MrSwitch/hello.js/blob/3b79ec93781b3d7b9c0b56f598e060301d1f3e73/dist/hello.all.js%23L1545","name":"https://github.com/MrSwitch/hello.js/blob/3b79ec93781b3d7b9c0b56f598e060301d1f3e73/dist/hello.all.js%23L1545","refsource":"MISC","tags":["Broken Link"],"title":"","mime":"","httpstatus":"","archivestatus":""},{"url":"https://github.com/MrSwitch/hello.js/blob/3b79ec93781b3d7b9c0b56f598e060301d1f3e73/dist/hello.all.js#L1545","name":"MISC:https://github.com/MrSwitch/hello.js/blob/3b79ec93781b3d7b9c0b56f598e060301d1f3e73/dist/hello.all.js%23L1545","refsource":"MITRE","tags":[],"title":"hello.js/hello.all.js at 3b79ec93781b3d7b9c0b56f598e060301d1f3e73 · MrSwitch/hello.js · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2020-7741","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-7741","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[{"source":"LEGACY","value":"Anonymous Reporter","lang":""}],"nvd_cpes":[{"cve_year":"2020","cve_id":"7741","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"hello.js_project","cpe5":"hello.js","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"node.js","cpe12":"*","cpe13":"*"},{"cve_year":"2020","cve_id":"7741","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"hello.js_project","cpe5":"hello.js","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"node.js","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2020-7741","qid":"983715","title":"Nodejs (npm) Security Update for hellojs (GHSA-7jh9-6cpf-h4m7)"}]},"source_records":{"cve_program":{"data_type":"CVE","data_format":"MITRE","data_version":"4.0","CVE_data_meta":{"ASSIGNER":"report@snyk.io","DATE_PUBLIC":"2020-10-06T14:25:07.003619Z","ID":"CVE-2020-7741","STATE":"PUBLIC","TITLE":"Cross-site Scripting (XSS)"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"hellojs","version":{"version_data":[{"version_affected":"<","version_value":"1.18.6"}]}}]},"vendor_name":"n/a"}]}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"Cross-site Scripting (XSS)"}]}]},"references":{"reference_data":[{"refsource":"MISC","url":"https://snyk.io/vuln/SNYK-JS-HELLOJS-1014546","name":"https://snyk.io/vuln/SNYK-JS-HELLOJS-1014546"},{"refsource":"MISC","url":"https://github.com/MrSwitch/hello.js/blob/3b79ec93781b3d7b9c0b56f598e060301d1f3e73/dist/hello.all.js%23L1545","name":"https://github.com/MrSwitch/hello.js/blob/3b79ec93781b3d7b9c0b56f598e060301d1f3e73/dist/hello.all.js%23L1545"},{"refsource":"MISC","url":"https://github.com/MrSwitch/hello.js/commit/d6f5137f30de6e0ef7048191ee6ae575fdc2f669","name":"https://github.com/MrSwitch/hello.js/commit/d6f5137f30de6e0ef7048191ee6ae575fdc2f669"}]},"description":{"description_data":[{"lang":"eng","value":"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)."}]},"impact":{"cvss":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:H","baseScore":9.9,"baseSeverity":"CRITICAL","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"CHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"HIGH"}},"credit":[{"lang":"eng","value":" Anonymous Reporter"}]},"nvd":{"publishedDate":"2020-10-06 15:15:00","lastModifiedDate":"2020-10-19 19:44:00","problem_types":["CWE-79"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"CHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"HIGH","baseScore":9.9,"baseSeverity":"CRITICAL"},"exploitabilityScore":3.9,"impactScore":5.3},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:P","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL","baseScore":7.5},"severity":"HIGH","exploitabilityScore":10,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:hello.js_project:hello.js:*:*:*:*:*:node.js:*:*","versionEndExcluding":"1.18.6","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2020","CveId":"7741","Ordinal":"168022","Title":"CVE-2020-7741","CVE":"CVE-2020-7741","Year":"2020"},"notes":[{"CveYear":"2020","CveId":"7741","Ordinal":"1","NoteData":"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).","Type":"Description","Title":null},{"CveYear":"2020","CveId":"7741","Ordinal":"2","NoteData":"2020-10-06","Type":"Other","Title":"Published"},{"CveYear":"2020","CveId":"7741","Ordinal":"3","NoteData":"2020-10-06","Type":"Other","Title":"Modified"}]}}}