CVE-2022-25839
published medium CVSS 3.1 · 4.3Improper Input Validation
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | url-jsunspecified to < 2.1.0 | Affected | Not stated | snyk |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 4.3 / 10
- Severity
- medium
- Provider
- snyk · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N/E:P
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | url-js | unspecified to < 2.1.0 (affected · custom) | snyk · cna |
Weaknesses
1- Improper Input Validation
References
2Provider assertions
2snyk · cna
Improper Input Validation
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 807bfd2c3c247f2e20cd1e0a0a8867b9968c0dbef32804c9bdf9868a2c7f109e
- Ingested
- 23 Sep 2026, 07:59:05 UTC
- Source record
- Official CVE record