CVE-2022-25839

MEDIUM

url-js < 2.1.0 - Hostname Spoofing via Improper Input Validation

Title source: llm
STIX 2.1

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.

References (2)

Core 2
Core References
Exploit, Patch, Third Party Advisory x_refsource_misc
https://snyk.io/vuln/SNYK-JS-URLJS-2414030

Scores

CVSS v3 4.3
EPSS 0.0021
EPSS Percentile 42.5%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N

Details

CWE
CWE-20
Status published
Products (2)
npm/url-js 0 - 2.1.0npm
url-js_project/url-js < 2.1.0
Published Mar 11, 2022
Tracked Since Feb 18, 2026