{"answers":{"affected":"2 open source packages ship an affected version, including urijs. It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-0868 in the wild and no public exploit code.","fix":"Upgrade urijs to 1.19.10 or later.","what":"CVE-2022-0868 is a high-severity vulnerability in medialize/uri.js, published on 6 Mar 2022. An attacker needs administrator access to exploit it, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-0868 and fix it if it is affected.\n\nWhat it is: CVE-2022-0868 is a high-severity vulnerability in medialize/uri.js, published on 6 Mar 2022. An attacker needs administrator access to exploit it, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2022-0868 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- urijs (npm): affected all versions; fixed in 1.19.10\n- urijs (npm): affected all versions; fixed in 1.19.10\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-0868/ (Markdown: https://insights.sbomify.com/CVE-2022-0868/index.md)","id":"CVE-2022-0868","markdown":"https://insights.sbomify.com/CVE-2022-0868/index.md","name":"CVE-2022-0868","record":{"aliases":["GHSA-8h2f-7jc4-7m3m"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"JavaScript URI library","requires_auth":"high_privilege","summary":"An attacker can redirect users to malicious sites via the uri.js library, potentially facilitating phishing attacks.","user_interaction":"not_required","vuln_class":"open_redirect"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"@huntrdev","cpe":[{"product":"uri.js","vendor":"uri.js_project"}],"cvss":{"score":8,"severity":"high","source":"cna","vector":"CVSS:3.0/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-601","name":"URL Redirection to Untrusted Site"}],"description":"Open Redirect in GitHub repository medialize/uri.js prior to 1.19.10.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Open Redirect in medialize/uri.js","id":"CVE-2022-0868","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"open_redirect","year":"2022"},"n_packages":2,"n_references":2,"next":{"headline":"Multiple Open Redirect in nitely/spirit","id":"CVE-2022-0869"},"packages":[{"ecosystem":"npm","fixed":["1.19.10"],"introduced":["0"],"last_affected":[],"package":"urijs","purl":null,"source":"GHSA-8h2f-7jc4-7m3m"},{"ecosystem":"npm","fixed":["1.19.10"],"introduced":["0"],"last_affected":[],"package":"urijs","purl":"pkg:npm/urijs","source":"GHSA-8h2f-7jc4-7m3m"}],"prev":{"headline":"ARPrice Lite \u003c 3.6.1 - Unauthenticated SQLi","id":"CVE-2022-0867"},"products":["medialize/uri.js"],"published":"2022-03-06","related":[{"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":"Improper Input Validation in URI.js","id":"CVE-2022-24723","kev_date_added":null,"published":"2022-03-03"},{"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":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-02","vendors":["medialize"]},"summary":"An attacker can redirect users to malicious sites via the uri.js library, potentially facilitating phishing attacks.","url":"https://insights.sbomify.com/CVE-2022-0868/"}