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:15Z
Modified
2026-10-28T02:31:10Z
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
{
    "cna_assigner":  "snyk",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/25xxx/CVE-2022-25839.json"
}
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
Show details
{
    "extracted_events":  [
        {
            "cpe":  "cpe:2.3:a:url-js_project:url-js:*:*:*:*:*:node.js:*:*",
            "range":  [
                {
                    "introduced":  "0"
                },
                {
                    "fixed":  "2.1.0"
                }
            ],
            "source":  "CPE_RANGE"
        },
        {
            "range":  [
                {
                    "fixed":  "9dc9fcc99baa4cbda24403d81a589e9b0f4121d0"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        }
    ]
}

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"