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).
Remediation
References
https://github.com/MrSwitch/hello.js/blob/3b79ec93781b3d7b9c0b56f598e060301d1f3e73/dist/hello.all.js%23L1545
https://github.com/MrSwitch/hello.js/commit/d6f5137f30de6e0ef7048191ee6ae575fdc2f669
https://snyk.io/vuln/SNYK-JS-HELLOJS-1014546
Related Vulnerabilities
CVE-2018-20676 Vulnerability in maven package org.fujion.webjars:bootstrap
CVE-2021-23383 Vulnerability in maven package org.webjars.npm:handlebars
CVE-2022-23596 Vulnerability in maven package com.github.junrar:junrar
CVE-2022-25878 Vulnerability in maven package org.webjars.npm:protobufjs
CVE-2021-23329 Vulnerability in npm package nested-object-assign