CVE-2022-25839

Improper Input Validation

Published Mar 11, 2022 CVSS 3.1 · 4.3 Medium EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2022-1531 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.
Github GHSA Github GHSA GHSA-rf54-44jr-q5vf Improper Input Validation in url-js
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
snyk
Published
Updated
Sep 16, 2024, 10:35 PM
Reserved
Feb 24, 2022, 12:00 AM
Status
Modified
Published
Mar 11, 2022, 8:15 PM
Modified
Jun 17, 2026, 4:34 AM