{"answers":{"affected":"2 open source packages ship an affected version, including urijs. It affects 1 product.","exploited":"There is no known exploitation of CVE-2020-26291 in the wild and no public exploit code.","fix":"Upgrade urijs to 1.19.4 or later.","what":"CVE-2020-26291 is a medium-severity vulnerability in medialize URI.js, published on 30 Dec 2020. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2020-26291 and fix it if it is affected.\n\nWhat it is: CVE-2020-26291 is a medium-severity vulnerability in medialize URI.js, published on 30 Dec 2020. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2020-26291 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- urijs (npm): affected all versions; fixed in 1.19.4\n- urijs (npm): affected all versions; fixed in 1.19.4\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-2020-26291/ (Markdown: https://insights.sbomify.com/CVE-2020-26291/index.md)","id":"CVE-2020-26291","markdown":"https://insights.sbomify.com/CVE-2020-26291/index.md","name":"CVE-2020-26291","record":{"aliases":["GHSA-3329-pjwv-fjpg"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"JavaScript URL library","requires_auth":"low_privilege","summary":"Attackers can spoof hostnames in URI.js, potentially bypassing security checks like allowlists or causing SSRF and open redirects.","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":6.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"description":"URI.js is a javascript URL mutation library (npm package urijs). In URI.js before version 1.19.4, the hostname can be spoofed by using a backslash (`\\`) character followed by an at (`@`) character. If the hostname is used in security decisions, the decision may be incorrect. Depending on library usage and attacker intent, impacts may include allow/block list bypasses, SSRF attacks, open redirects, or other undesired behavior. For example the URL `https://expected-example.com\\@observed-example.com` will incorrectly return `observed-example.com` if using an affected version. Patched versions correctly return `expected-example.com`. Patched versions match the behavior of other parsers which implement the WHATWG URL specification, including web browsers and Node's built-in URL class. Version 1.19.4 is patched against all known payload variants. Version 1.19.3 has a partial patch but is still vulnerable to a payload variant.]","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":"Hostname spoofing in URI.js","id":"CVE-2020-26291","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"other","year":"2020"},"n_packages":2,"n_references":4,"next":{"headline":"Potential Malware Discovered (Possible False Positive)","id":"CVE-2020-26292"},"packages":[{"ecosystem":"npm","fixed":["1.19.4"],"introduced":["0"],"last_affected":[],"package":"urijs","purl":null,"source":"GHSA-3329-pjwv-fjpg"},{"ecosystem":"npm","fixed":["1.19.4"],"introduced":["0"],"last_affected":[],"package":"urijs","purl":"pkg:npm/urijs","source":"GHSA-3329-pjwv-fjpg"}],"prev":{"headline":"Critical security issues in XML encoding in Dex","id":"CVE-2020-26290"},"products":["URI.js"],"published":"2020-12-30","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":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-04","vendors":["medialize"]},"summary":"Attackers can spoof hostnames in URI.js, potentially bypassing security checks like allowlists or causing SSRF and open redirects.","url":"https://insights.sbomify.com/CVE-2020-26291/"}