Skip to main content

Improper Input Validation

CVE-2022-25839

Severity Medium
Score 5.3/10

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.

  • LOW
  • NETWORK
  • LOW
  • UNCHANGED
  • NONE
  • NONE
  • NONE
  • NONE

CWE-20 - Improper Input Validation

The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.

Advisory Timeline

  • Published