CVE-2022-25839

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-25839
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-25839.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-25839
Aliases
Related
  • SNYK-JS-URLJS-2414030
Published
2022-03-11T20:15:09Z
Modified
2025-01-08T14:12:00.907387Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N CVSS Calculator
Summary
[none]
Details

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

Affected packages

Git / github.com/duzun/url.js

Affected ranges

Type
GIT
Repo
https://github.com/duzun/url.js
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed

Affected versions

v0.*

v0.0.8
v0.1.0
v0.1.1
v0.2.0
v0.2.1
v0.2.2
v0.2.3
v0.2.4
v0.2.5

v2.*

v2.0.0