{"id":"CVE-2022-25839","aliases":["CVE-2022-25839","GHSA-rf54-44jr-q5vf","SNYK-JS-URLJS-2414030"],"related":[],"kind":"vulnerability","state":"published","title":"Improper Input Validation","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"The package url-js before 2.1.0 is 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"El paquete url-js versiones anteriores a 2.1.0, es vulnerable a una Comprobación de Entrada Inapropiada debido a un análisis incorrecto, lo que hace posible que el nombre de host sea suplantado. http://\\\\\\\\\\\\\\\\localhost y http://localhost son la misma URL. Sin embargo, el nombre de host no es analizado como localhost, y la barra invertida es reflejada tal cual","source":"nvd"}],"published":"2022-03-11T20:00:15.762Z","modified":"2026-07-08T06:49:35.009Z","severity":{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N/E:P","score":4.3,"rating":"MEDIUM"},"severities":[{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N/E:P","score":4.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:P/A:N","score":5,"rating":"MEDIUM"}],"cwes":["CWE-20"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"2.1.0","status":"affected"}],"product":"url-js","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.1.0"}],"ecosystem":"npm","package":"url-js","purl":"pkg:npm/url-js","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.1.0"}],"vendor":"url-js_project","product":"url-js","cpe":"cpe:2.3:a:url-js_project:url-js:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-URLJS-2414030","tags":["exploit","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/duzun/URL.js/commit/9dc9fcc99baa4cbda24403d81a589e9b0f4121d0","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25839","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/duzun/URL.js","tags":["package"],"sources":["ghsa"]}],"credits":["Pocas"],"assigner":"snyk","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-25839","url":"https://www.cve.org/CVERecord?id=CVE-2022-25839","licence":"CVE Terms of Use","modified":"2024-09-16T22:35:35.422Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-rf54-44jr-q5vf","url":"https://github.com/advisories/GHSA-rf54-44jr-q5vf","licence":"CC-BY-4.0","modified":"2026-07-08T06:49:35.009Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-25839","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25839","licence":"Public domain","modified":"2026-06-17T04:34:22.190Z"}],"updatedAt":"2026-11-25T22:58:10.064Z","epss":{"score":0.00849,"percentile":0.59248,"date":"2026-12-01T12:00:22.000Z"}}