← Database

CVE-2022-25839

MEDIUM CVSS: 4.3 Published: 2022-03-11 Modified: 2026-06-17

Description

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 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.

Affected Platforms

Url-Js Project Url-Js

Weakness Type

CWE-20

References