{"id":"CVE-2021-21377","aliases":["EUVD-2021-0158","GHSA-g4rf-pc26-6hmr","PYSEC-2021-32"],"status":"published","title":"Open Redirect in OMERO.web","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.","severity":{"version":"3.1","score":4.8,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:N","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-11","score":0.00826,"percentile":0.57881,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-601"],"published":"2021-03-23T15:25:28Z","modified":"2026-10-20T10:54:29Z","fixes":[{"ecosystem":"PyPI","package":"omero-web","fixed_in":["5.9.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"omero-web","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.9.0"}]}]},{"source":"osv","ecosystem":"PyPI","package":"omero-web","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.9.0"}]}],"versions":["5.5.dev1","5.5.dev2","5.6.0","5.6.1","5.6.2","5.6.3","5.6.dev1","5.6.dev2","5.6.dev3","5.6.dev4","5.6.dev5","5.6.dev6","5.6.dev7","5.7.0","5.7.1","5.8.0","5.8.1"]},{"source":"osv","ecosystem":"PyPI","package":"omero-web","ranges":[{"type":"GIT","events":[{"introduced":"0"},{"fixed":"952f8e5d28532fbb14fb665982211329d137908c"}]},{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.9.0"}]}],"versions":["5.5.dev1","5.5.dev2","5.6.dev1","5.6.dev2","5.6.dev3","5.6.dev4","5.6.dev5","5.6.dev6","5.6.dev7","5.6.0","5.6.1","5.6.2","5.6.3","5.7.0","5.7.1","5.8.0","5.8.1"]}],"products":[{"vendor":"ome","product":"omero-web"},{"vendor":"openmicroscopy","product":"omero.web"}],"references":[{"url":"https://pypi.org/project/omero-web/","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","package"]},{"url":"https://github.com/ome/omero-web/blob/master/CHANGELOG.md#590-march-2021","tags":["x_refsource_MISC","x_transferred","Release Notes","Third Party Advisory","advisory","web"]},{"url":"https://github.com/ome/omero-web/commit/952f8e5d28532fbb14fb665982211329d137908c","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/ome/omero-web/security/advisories/GHSA-g4rf-pc26-6hmr","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://www.openmicroscopy.org/security/advisories/2021-SV2/","tags":["x_refsource_MISC","x_transferred","Vendor Advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21377","tags":["advisory"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/omero-web/PYSEC-2021-32.yaml","tags":["web"]},{"url":"https://pypi.org/project/omero-web","tags":["web"]},{"url":"https://www.openmicroscopy.org/security/advisories/2021-SV2","tags":["web"]},{"url":"https://github.com/advisories/GHSA-g4rf-pc26-6hmr"},{"url":"https://github.com/ome/omero-web","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2021-21377","title":"Open Redirect in OMERO.web","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.","status":"published","published":"2021-03-23T15:25:28Z","modified":"2024-08-03T18:09:15.795Z","cvss":[{"version":"3.1","score":4.8,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:N","level":"medium","assessor":"cna"}],"cwes":["CWE-601"],"updated_at":"2026-11-02T14:33:00.488332Z"}],"euvd":[{"id":"EUVD-2021-0158","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.","status":"published","published":"2021-03-23T15:25:28Z","modified":"2024-08-03T18:09:15Z","cvss":[{"version":"3.1","score":4.8,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:N","level":"medium"}],"updated_at":"2026-11-03T03:25:06.913643Z"}],"ghsa":[{"id":"GHSA-g4rf-pc26-6hmr","title":"OMERO webclient does not validate URL redirects on login or switching group.","description":"### 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)","status":"published","published":"2021-03-23T15:26:49Z","modified":"2024-10-08T12:43:20Z","cvss":[{"version":"4.0","score":5.9,"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","level":"medium"},{"version":"3.1","score":4.8,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:N","level":"medium"}],"cwes":["CWE-601"],"updated_at":"2026-11-02T14:38:08.742903Z"}],"nvd":[{"id":"CVE-2021-21377","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.","status":"published","published":"2021-03-23T16:15:14.283Z","modified":"2026-06-17T03:35:26.587Z","cvss":[{"version":"3.1","score":4.8,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:N","level":"medium","assessor":"secondary"},{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary"},{"version":"2.0","score":4.9,"vector":"AV:N/AC:M/Au:S/C:P/I:P/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-601"],"updated_at":"2026-11-02T14:06:50.805771Z"}],"osv":[{"id":"CVE-2021-21377","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.","status":"published","published":"2021-03-23T16:15:14.283Z","modified":"2026-10-20T10:54:29.623641762Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T15:44:18.004149Z"},{"id":"GHSA-g4rf-pc26-6hmr","title":"OMERO webclient does not validate URL redirects on login or switching group.","description":"### 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)","status":"published","published":"2021-03-23T15:26:49Z","modified":"2026-07-08T06:27:39.407297766Z","cvss":[{"version":"3.1","score":4.8,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:N","level":"medium"},{"version":"4.0","score":5.9,"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","level":"medium"}],"cwes":["CWE-601"],"updated_at":"2026-11-02T15:46:47.119724Z"},{"id":"PYSEC-2021-32","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.","status":"published","published":"2021-03-23T16:15:00Z","modified":"2023-11-08T04:04:43.727578Z","updated_at":"2026-11-02T15:52:52.682031Z"}]}}
