{"answers":{"affected":"3 open source packages ship an affected version, including omero-web. It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-21377 in the wild and no public exploit code.","fix":"Upgrade omero-web to 5.9.0 or later.","what":"CVE-2021-21377 is a medium-severity vulnerability in omero-web, published on 23 Mar 2021. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2021-21377 and fix it if it is affected.\n\nWhat it is: CVE-2021-21377 is a medium-severity vulnerability in omero-web, published on 23 Mar 2021. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2021-21377 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- omero-web (PyPI): affected all versions; fixed in 5.9.0\n- omero-web (PyPI): affected all versions; fixed in 5.9.0\n- omero-web (PyPI): affected all versions; fixed in 5.9.0\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-21377/ (Markdown: https://insights.sbomify.com/CVE-2021-21377/index.md)","id":"CVE-2021-21377","markdown":"https://insights.sbomify.com/CVE-2021-21377/index.md","name":"CVE-2021-21377","record":{"aliases":["GHSA-g4rf-pc26-6hmr","PYSEC-2021-32"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"OMERO.web","requires_auth":"low_privilege","summary":"Attackers can redirect users to malicious sites after login or group switching in OMERO.web due to unvalidated URLs.","user_interaction":"required","vuln_class":"open_redirect"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"omero.web","vendor":"openmicroscopy"}],"cvss":{"score":4.8,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-601","name":"URL Redirection to Untrusted Site"}],"description":"OMERO.web is open source Django-based software for managing microscopy imaging. OMERO.web before version 5.9.0 supports redirection to a given URL after performing login or switching the group context. These URLs are not validated, allowing redirection to untrusted sites. OMERO.web 5.9.0 adds URL validation before redirecting. External URLs are not considered valid, unless specified in the omero.web.redirect_allowed_hosts setting.","ecosystems":["PyPI"],"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 OMERO.web","id":"CVE-2021-21377","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"open_redirect","year":"2021"},"n_packages":3,"n_references":5,"next":{"headline":"JWT authentication bypass with unknown issuer token","id":"CVE-2021-21378"},"packages":[{"ecosystem":"PyPI","fixed":["5.9.0"],"introduced":["0"],"last_affected":[],"package":"omero-web","purl":null,"source":"GHSA-g4rf-pc26-6hmr"},{"ecosystem":"PyPI","fixed":["5.9.0"],"introduced":["0"],"last_affected":[],"package":"omero-web","purl":"pkg:pypi/omero-web","source":"GHSA-g4rf-pc26-6hmr"},{"ecosystem":"PyPI","fixed":["5.9.0"],"introduced":["0"],"last_affected":[],"package":"omero-web","purl":"pkg:pypi/omero-web","source":"PYSEC-2021-32"}],"prev":{"headline":"Information Exposure in OMERO.web","id":"CVE-2021-21376"},"products":["omero-web"],"published":"2021-03-23","related":[{"cvss_score":6.4,"headline":"Information Exposure in OMERO.web","id":"CVE-2021-21376","kev_date_added":null,"published":"2021-03-23"},{"cvss_score":5.7,"headline":"OMERO-web Sensitive Data Exposure","id":"CVE-2020-7932","kev_date_added":null,"published":"2020-06-17"}],"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":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"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":["ome"]},"summary":"Attackers can redirect users to malicious sites after login or group switching in OMERO.web due to unvalidated URLs.","url":"https://insights.sbomify.com/CVE-2021-21377/"}