{"answers":{"affected":"2 open source packages ship an affected version, including urijs. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-24723 exists.","fix":"Upgrade urijs to 1.19.9 or later.","what":"CVE-2022-24723 is a medium-severity vulnerability in medialize URI.js, published on 3 Mar 2022. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-24723 and fix it if it is affected.\n\nWhat it is: CVE-2022-24723 is a medium-severity vulnerability in medialize URI.js, published on 3 Mar 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-24723 exists.\n\nAffected packages and fixed versions:\n- urijs (npm): affected all versions; fixed in 1.19.9\n- urijs (npm): affected all versions; fixed in 1.19.9\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-24723/ (Markdown: https://insights.sbomify.com/CVE-2022-24723/index.md)","id":"CVE-2022-24723","markdown":"https://insights.sbomify.com/CVE-2022-24723/index.md","name":"CVE-2022-24723","record":{"aliases":["GHSA-gmv4-r438-p67f","UBUNTU-CVE-2022-24723"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["other"],"network_reachable":"yes","non_default_config":false,"product_category":"JavaScript URL library","requires_auth":"none","summary":"URI.js fails to strip leading whitespace from protocols, causing improper URL parsing and potential security bypasses in applications using the library.","user_interaction":"not_required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"uri.js","vendor":"uri.js_project"}],"cvss":{"score":5.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"description":"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Improper Input Validation in URI.js","id":"CVE-2022-24723","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"other","year":"2022"},"n_packages":2,"n_references":4,"next":{"headline":"Integer overflow in table parsing extension leads to heap memory corruption","id":"CVE-2022-24724"},"packages":[{"ecosystem":"npm","fixed":["1.19.9"],"introduced":["0"],"last_affected":[],"package":"urijs","purl":null,"source":"GHSA-gmv4-r438-p67f"},{"ecosystem":"npm","fixed":["1.19.9"],"introduced":["0"],"last_affected":[],"package":"urijs","purl":"pkg:npm/urijs","source":"GHSA-gmv4-r438-p67f"}],"prev":{"headline":"Cross-site Scripting in view_component","id":"CVE-2022-24722"},"products":["URI.js"],"published":"2022-03-03","related":[{"cvss_score":8,"headline":"Open Redirect in medialize/uri.js","id":"CVE-2022-0868","kev_date_added":null,"published":"2022-03-06"},{"cvss_score":7.5,"headline":"URIjs Hostname spoofing via backslashes in URL","id":"CVE-2021-27516","kev_date_added":null,"published":"2021-02-21"},{"cvss_score":7.2,"headline":"CRHTLF can lead to invalid protocol extraction potentially leading to XSS in medialize/uri.js","id":"CVE-2022-1243","kev_date_added":null,"published":"2022-04-05"},{"cvss_score":6.5,"headline":"URL Confusion When Scheme Not Supplied in medialize/uri.js","id":"CVE-2022-1233","kev_date_added":null,"published":"2022-04-04"},{"cvss_score":6.5,"headline":"Hostname spoofing in URI.js","id":"CVE-2020-26291","kev_date_added":null,"published":"2020-12-30"},{"cvss_score":5.3,"headline":"Open Redirect in medialize/URI.js","id":"CVE-2021-3647","kev_date_added":null,"published":"2021-07-16"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-04-22","vendors":["medialize"]},"summary":"URI.js fails to strip leading whitespace from protocols, causing improper URL parsing and potential security bypasses in applications using the library.","url":"https://insights.sbomify.com/CVE-2022-24723/"}