Skip to content
OpenAdvisories
Medium · 4.3 CVE-2022-25839 EUVD-2022-1531GHSA-rf54-44jr-q5vfSNYK-JS-URLJS-2414030

Improper Input Validation

Published Mar 11, 2022 · Updated Sep 16, 2024 · Assigned by snyk

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 products

VendorProductAffectedFixed
— url-js unspecified – < 2.1.0 2.1.0

Affected packages

EcosystemPackageAffectedFixedRecord
npm url-js < 2.1.0 2.1.0 GHSA-rf54-44jr-q5vf

References