Skip to main content
← All vulnerabilities
CVE-2022-25839GHSA-RF54-44JR-Q5VFSNYK-JS-URLJS-2414030

Improper Input Validation

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.1.0
None on Exploit-DB, Metasploit or GitHub

Summary

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.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • n/a url-js

    fixed in 2.1.0

  • url-jsnpm

    fixed in 2.1.0

References 2

snyk.io

GitHub · duzun/URL.js