Improper input validation in url-js
Priority LOW 26CWE-20Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- None · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and 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.
Why it matters now
EPSS 0.00849 58th percentileScored 2026-11-07
Fix Fixed url-js: 2.1.0url-js (npm): 2.1.0
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | url-js | before 2.1.0 | 2.1.0 | Patch available | CNA |
| — | url-js (npm) | before 2.1.0 | 2.1.0 | Patch available | GHSA-rf54-44jr-q5vf |
- url-js Vendor— Affected before 2.1.0 Fixed in 2.1.0 Patch available CNA
- url-js (npm) Vendor— Affected before 2.1.0 Fixed in 2.1.0 Patch available GHSA-rf54-44jr-q5vf
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:url-js_project:url-js:*:*:*:*:*:node.js:*:* | before 2.1.0 | Vulnerable | Url-js Project |
- cpe:2.3:a:url-js_project:url-js:*:*:*:*:*:node.js:*:* Versions before 2.1.0 Vulnerable ·Url-js Project
Remediation
- Fix · CNA url-js Fixed in 2.1.0
- Fix · GHSA-rf54-44jr-q5vf url-js (npm) Fixed in 2.1.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2022-25839
- 2026-10-03 Alias added: GHSA-rf54-44jr-q5vf
References
Sources
- CVE-2022-25839 · CVE Program
- CVE-2022-25839 · NVD
- FIRST EPSS
- GHSA-rf54-44jr-q5vf · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences