Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. hellojs
  4. ›
  5. CVE-2020-7741

CVE-2020-7741: Cross-site Scripting

October 6, 2020 (updated October 19, 2020)

This affects the package hellojs. 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).

References

  • nvd.nist.gov/vuln/detail/CVE-2020-7741

Code Behaviors & Features

Detect and mitigate CVE-2020-7741 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.18.6

Fixed versions

  • 1.18.6

Solution

Upgrade to version 1.18.6 or above.

Impact 9.9 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:H

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

npm/hellojs/CVE-2020-7741.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:17 +0000.