{"id":"CVE-2021-21377","aliases":["CVE-2021-21377","GHSA-g4rf-pc26-6hmr","PYSEC-2021-32"],"related":[],"kind":"vulnerability","state":"published","title":"Open Redirect in OMERO.web","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Background\nOMERO.web 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.\n\n### Impact\nOMERO.web before 5.9.0\n\n### Patches\n5.9.0\n\n### Workarounds\nNo workaround\n\n### References\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [omero-web](https://github.com/ome/omero-web)\n* Email us at [security](mailto:security@openmicroscopy.org.uk)","format":"markdown","source":"ghsa"},{"lang":"es","text":"OMERO.web es un software de código abierto basado en Django para administrar imágenes microscópicas.&#xa0;OMERO.web versiones anteriores a 5.9.0 admite el redireccionamiento a una URL determinada después de iniciar sesión o cambiar el contexto del grupo.&#xa0;Estas URL no están comprobadas, permitiendo un redireccionamiento a sitios que no son confiables.&#xa0;OMERO.web versión 5.9.0 agrega comprobación de URL antes de redireccionar.&#xa0;Las URL Externas no se consideran válidas, a menos que se especifiquen en la configuración omero.web.redirect_allowed_hosts","source":"nvd"}],"published":"2021-03-23T15:25:28.000Z","modified":"2026-07-08T06:27:39.407Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:N","score":4.8,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:N","score":4.8,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:N","score":4.8,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:S/C:P/I:P/A:N","score":4.9,"rating":"MEDIUM"}],"cwes":["CWE-601"],"affected":[{"ranges":[{"version":"< 5.9.0","status":"affected"}],"vendor":"ome","product":"omero-web","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"5.9.0"}],"ecosystem":"PyPI","package":"omero-web","purl":"pkg:pypi/omero-web","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"5.9.0"}],"vendor":"openmicroscopy","product":"omero.web","cpe":"cpe:2.3:a:openmicroscopy:omero.web:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"952f8e5d28532fbb14fb665982211329d137908c"},{"type":"ecosystem","introduced":"0","status":"affected","fixed":"5.9.0"}],"ecosystem":"PyPI","package":"omero-web","purl":"pkg:pypi/omero-web","repo":"https://github.com/ome/omero-web","source":"pysec"}],"references":[{"url":"https://pypi.org/project/omero-web/","tags":["package","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd","pysec"]},{"url":"https://github.com/ome/omero-web/blob/master/CHANGELOG.md#590-march-2021","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/ome/omero-web/commit/952f8e5d28532fbb14fb665982211329d137908c","tags":["fix","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/ome/omero-web/security/advisories/GHSA-g4rf-pc26-6hmr","tags":["advisory","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://www.openmicroscopy.org/security/advisories/2021-SV2/","tags":["advisory","vendor-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21377","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/ome/omero-web","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/omero-web/PYSEC-2021-32.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://pypi.org/project/omero-web","tags":["web"],"sources":["ghsa"]},{"url":"https://www.openmicroscopy.org/security/advisories/2021-SV2","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-21377","url":"https://www.cve.org/CVERecord?id=CVE-2021-21377","licence":"CVE Terms of Use","modified":"2024-08-03T18:09:15.795Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-g4rf-pc26-6hmr","url":"https://github.com/advisories/GHSA-g4rf-pc26-6hmr","licence":"CC-BY-4.0","modified":"2026-07-08T06:27:39.407Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-21377","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21377","licence":"Public domain","modified":"2026-06-17T03:35:26.587Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2021-32","url":"https://osv.dev/vulnerability/PYSEC-2021-32","licence":"CC-BY-4.0","modified":"2023-11-08T04:04:43.727Z"}],"updatedAt":"2026-11-25T22:58:00.391Z","epss":{"score":0.00826,"percentile":0.58566,"date":"2026-12-01T12:00:22.000Z"}}