Medium severity4.3NVD Advisory· Published Mar 11, 2022· Updated Jun 17, 2026
CVE-2022-25839
CVE-2022-25839
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
url-jsnpm | < 2.1.0 | 2.1.0 |
Affected products
3- url-js/url-jsdescription
Patches
Vulnerability mechanics
References
4- github.com/duzun/URL.js/commit/9dc9fcc99baa4cbda24403d81a589e9b0f4121d0nvdPatchThird Party AdvisoryWEB
- snyk.io/vuln/SNYK-JS-URLJS-2414030nvdExploitPatchThird Party AdvisoryWEB
- github.com/advisories/GHSA-rf54-44jr-q5vfghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2022-25839ghsaADVISORY
News mentions
0No linked articles in our index yet.