CVE-2022-25839Url-js Project Url-js
Medium 5.3 No auth needed
Follow: this CVE · Url-js Project · Url-js Project Url-js We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 5.3
- EPSS
- 0.8% probability of exploitation in 30 days · percentile 52
- Auth required
- No
- Published
- Mar 11, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-20
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
What happens
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.
What to do
- Apply the vendor's security update for Url-js.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | url-js |
< 2.1.0 |
2.1.0 |
npm install url-js@2.1.0 |
Per OSV / GitHub Advisories (GHSA-rf54-44jr-q5vf). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| url-js_project | url-js | < 2.1.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- snyk.io Exploit Patch Third Party Advisory