CVE-2022-25839

Source
https://cve.org/CVERecord?id=CVE-2022-25839
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-25839.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-25839
Aliases
Published
2022-03-11T20:00:15.762Z
Modified
2026-07-15T01:49:06.520991130Z
Severity
  • 4.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N/E:P CVSS Calculator
Summary
Improper Input Validation
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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/25xxx/CVE-2022-25839.json",
    "cna_assigner": "snyk"
}
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
Database specific
{
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "2.1.0"
        }
    ],
    "source": [
        "CPE_RANGE",
        "REFERENCES"
    ],
    "cpe": "cpe:2.3:a:url-js_project:url-js:*:*:*:*:*:node.js:*:*"
}

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

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-25839.json"