GitHub Advisoryadvisory · npm

GHSA-rf54-44jr-q5vf Improper Input Validation in url-js

MEDIUM Published 2022-03-12 Modified 2022-03-28 Official page ↗
Aliases
CVE-2022-25839
Ecosystem
npm
Packages
url-js
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Weaknesses
CWE-20
Reviewed
2022-03-14

Affected packages

• npm url-js: < 2.1.0 → fixed in 2.1.0

Description

The package url-js before 2.1.0 is vulnerable to Improper Input Validation due to improper parsing, which makes it is possible for the hostname to be spoofed. http://\\\\\\\\localhost and http://localhost are the same URL. However, the hostname is not parsed as localhost, and the backslash is reflected as it is.

Related

Alias · CVE (1)

  • CVE-2022-25839 The package url-js before 2.1.0 are vulnerable to Improper Input Validation due to improper parsing, which makes it is possible for the… vulnerability

Weakness · CWE (1)

  • CWE-20 Improper Input Validation weakness

References