GitHub Advisoryadvisory · npm

GHSA-7jh9-6cpf-h4m7 XSS in hello.js

CRITICAL Published 2021-01-13 Modified 2023-09-12 Official page ↗
Aliases
CVE-2020-7741
Ecosystem
npm
Packages
hellojs
Severity
Critical
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:H
Weaknesses
CWE-79
Reviewed
2021-01-13

Affected packages

• npm hellojs: < 1.18.6 → fixed in 1.18.6

Description

This affects the package hello.js 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)`.

Related

Alias · CVE (1)

  • CVE-2020-7741 This affects the package hellojs before 1.18.6. vulnerability

Weakness · CWE (1)

  • CWE-79 Improper Neutralization of Input During Web Page Generation weakness

References