All reports
Medium

Improper Input Validation in url-js

Affected versions

Affected versions
< 2.1.0
Fixed version
2.1.0

Exploitation

CVE-2022-25839

Probability of exploitation in the next 30 days: 0.85%

FIRST EPSS · 2026-11-22

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.

Links