{"id":"CVE-2022-24723","aliases":["CVE-2022-24723","GHSA-gmv4-r438-p67f"],"related":[],"kind":"vulnerability","state":"published","title":"Improper Input Validation in URI.js","summary":"URI.js is a Javascript URL mutation library. Before version 1.19.9, whitespace characters are not removed from the beginning of the protocol, so URLs are not parsed properly. This issue has been patched in version 1.19.9. Removing leading whitespace from values before passing them to URI.parse can be used as a workaround.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"URI.js is a Javascript URL mutation library. Before version 1.19.9, whitespace characters are not removed from the beginning of the protocol, so URLs are not parsed properly. This issue has been patched in version 1.19.9. Removing leading whitespace from values before passing them to URI.parse can be used as a workaround.","source":"cvelist"},{"lang":"en","text":"### Impact\nWhitespace characters are not removed from the beginning of the protocol, so URLs are not parsed properly and protocol validation mechanisms may fail.\n\n### Patches\nPatched in 1.19.9\n\n### Workarounds\nRemove leading whitespace from values before passing them to URI.parse (e.g. via `.href(value)` or `new URI(value)`), e.g. by using\n\n```js\nfunction remove_whitespace(url){\n     const whitespace = /^[\\x00-\\x20\\u00a0\\u1680\\u2000-\\u200a\\u2028\\u2029\\u202f\\u205f\\u3000\\ufeff]+/;\n     url = url.replace(whitespace, '')\n     return url\n}\n```\n\n### References\n* https://huntr.dev/bounties/82ef23b8-7025-49c9-b5fc-1bb9885788e5/\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [medialize/URI.js](https://github.com/medialize/URI.js/)","format":"markdown","source":"ghsa"},{"lang":"es","text":"URI.js es una biblioteca de mutación de URLs en Javascript. En versiones anteriores a 1.19.9, los caracteres de espacio en blanco no eran eliminadas del principio del protocolo, por lo que las URL no eran analizadas correctamente. Este problema ha sido corregido en versión 1.19.9. Puede usarse como medida de mitigación eliminar los espacios en blanco al principio de los valores antes de pasarlos a URI.parse","source":"nvd"}],"published":"2022-03-03T19:23:36.000Z","modified":"2026-06-17T04:32:22.487Z","severity":{"scorer":"GitHub_M","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"},"severities":[{"scorer":"GitHub_M","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":"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":[{"version":"< 1.19.9","status":"affected"}],"vendor":"medialize","product":"URI.js","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.19.9"}],"ecosystem":"npm","package":"urijs","purl":"pkg:npm/urijs","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.19.9"}],"vendor":"uri.js_project","product":"uri.js","cpe":"cpe:2.3:a:uri.js_project:uri.js:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/medialize/URI.js/security/advisories/GHSA-gmv4-r438-p67f","tags":["mitigation","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/medialize/uri.js/commit/86d10523a6f6e8dc4300d99d671335ee362ad316","tags":["patch","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/medialize/URI.js/releases/tag/v1.19.9","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://huntr.dev/bounties/82ef23b8-7025-49c9-b5fc-1bb9885788e5/","tags":["exploit","issue-tracking","patch","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24723","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/medialize/URI.js/commit/86d10523a6f6e8dc4300d99d671335ee362ad316","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/medialize/URI.js","tags":["web"],"sources":["ghsa"]},{"url":"https://huntr.dev/bounties/82ef23b8-7025-49c9-b5fc-1bb9885788e5","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2025-04-22T15:41:56.119Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-24723","url":"https://www.cve.org/CVERecord?id=CVE-2022-24723","licence":"CVE Terms of Use","modified":"2025-04-22T18:20:48.760Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-gmv4-r438-p67f","url":"https://github.com/advisories/GHSA-gmv4-r438-p67f","licence":"CC-BY-4.0","modified":"2023-11-08T04:08:33.715Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-24723","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24723","licence":"Public domain","modified":"2026-06-17T04:32:22.487Z"}],"updatedAt":"2026-11-25T22:58:09.904Z","epss":{"score":0.01941,"percentile":0.80742,"date":"2026-12-01T12:00:22.000Z"}}