{"answers":{"affected":"2 open source packages ship an affected version, including urijs. It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-3647 in the wild and no public exploit code.","fix":"Upgrade urijs to 1.19.7 or later.","what":"CVE-2021-3647 is a medium-severity vulnerability in medialize/URI.js, published on 16 Jul 2021. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-3647 and fix it if it is affected.\n\nWhat it is: CVE-2021-3647 is a medium-severity vulnerability in medialize/URI.js, published on 16 Jul 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-3647 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- urijs (npm): affected all versions; fixed in 1.19.7\n- urijs (npm): affected all versions; fixed in 1.19.7\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-2021-3647/ (Markdown: https://insights.sbomify.com/CVE-2021-3647/index.md)","id":"CVE-2021-3647","markdown":"https://insights.sbomify.com/CVE-2021-3647/index.md","name":"CVE-2021-3647","record":{"aliases":["GHSA-89gv-h8wf-cg8r","UBUNTU-CVE-2021-3647"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"JavaScript URI library","requires_auth":"none","summary":"An attacker can redirect users to malicious sites via crafted URIs in 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":5.3,"severity":"medium","source":"cna","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","version":"3.0"},"cwes":[{"id":"CWE-601","name":"URL Redirection to Untrusted Site"}],"description":"URI.js is vulnerable to URL Redirection to Untrusted Site","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-2021-3647","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"open_redirect","year":"2021"},"n_packages":2,"n_references":2,"next":{"headline":"Inefficient Regular Expression Complexity in chatwoot/chatwoot","id":"CVE-2021-3649"},"packages":[{"ecosystem":"npm","fixed":["1.19.7"],"introduced":["0"],"last_affected":[],"package":"urijs","purl":null,"source":"GHSA-89gv-h8wf-cg8r"},{"ecosystem":"npm","fixed":["1.19.7"],"introduced":["0"],"last_affected":[],"package":"urijs","purl":"pkg:npm/urijs","source":"GHSA-89gv-h8wf-cg8r"}],"prev":{"headline":"Cross-site Scripting (XSS) - Reflected in btcpayserver/btcpayserver","id":"CVE-2021-3646"},"products":["medialize/URI.js"],"published":"2021-07-16","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":"Improper Input Validation in URI.js","id":"CVE-2022-24723","kev_date_added":null,"published":"2022-03-03"}],"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-03","vendors":["medialize"]},"summary":"An attacker can redirect users to malicious sites via crafted URIs in the URI.js library, potentially facilitating phishing attacks.","url":"https://insights.sbomify.com/CVE-2021-3647/"}