CVE-2021-21377: Omero web OMERO Webclient Does Not Validate Vulnerability

MODERATE
Advisory Identifier: GHSA-g4rf-pc26-6hmr
CVSS 4.8
CWE-601
Published
Advisory Summary

CVE-2021-21377 is a MODERATE (CVSS 4.8) omero webclient does not validate vulnerability (CWE-601: URL Redirection to Untrusted Site ('Open Redirect')) affecting Omero web libraries in the PyPI ecosystem. The issue involves omero webclient does not validate url redirects on login or switching group.. Remediation is available by upgrading affected packages to version 5.9.0.

CVE-2021-21377 at a Glance

CVE Identifier CVE-2021-21377
GHSA Identifier GHSA-g4rf-pc26-6hmr
Severity MODERATE
CVSS v3.1 Base Score 4.8
CWE Classification CWE-601: URL Redirection to Untrusted Site ('Open Redirect')
Affected Product Omero web
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 4.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2021-21377

To remediate this vulnerability, upgrade all affected Omero web dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

omero-web fixed: 5.9.0
pip install omero-web>=5.9.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show omero-web

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2021-21377, inspect your installed packages using pip:

pip show omero-web

Analyze the terminal output to locate any version of Omero web in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.9.0), your application is affected.

Note: The pip show omero-web command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-601: URL Redirection to Untrusted Site ('Open Redirect'), where the web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect. In Omero web, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Background OMERO.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. ### Impact OMERO.web before 5.9.0 ### Patches 5.9.0 ### Workarounds No workaround ### References ### For more information If you have any questions or comments about this advisory: * Open an issue in [omero-web](https://github.com/ome/omero-web) * Email us at [security](mailto:security@openmicroscopy.org.uk)

CVE-2021-21377 Affected Omero web Versions

1 component(s)
Fixed Versions:
5.9.0
Product / Package Ecosystem Affected Versions Fixed Version
omero-web
PyPI
< 5.9.0
5.9.0

References

Frequently Asked Questions

What is CVE-2021-21377?
CVE-2021-21377 is a security vulnerability in Omero web involving OMERO webclient does not validate URL redirects on login or switching group. under CWE-601: URL Redirection to Untrusted Site ('Open Redirect').
Which Omero web versions are affected?
Affected versions include releases prior to 5.9.0 across affected packages: omero-web.
What version fixes CVE-2021-21377?
Upgrading to 5.9.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is omero-web affected?
Yes, omero-web is affected in releases prior to 5.9.0. Upgrade your dependency to 5.9.0 or later.
What is the CVSS score of CVE-2021-21377?
CVE-2021-21377 has a CVSS v3.1 base score of 4.8 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2021-21377?
CVE-2021-21377 is classified under CWE-601: URL Redirection to Untrusted Site ('Open Redirect') (The web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect.).
How can I check PyPI dependencies for CVE-2021-21377?
Run the dependency tree command: 'pip show omero-web'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-g4rf-pc26-6hmr",
  "modified" : "2024-10-08T12:43:19Z",
  "published" : "2021-03-23T15:26:49Z",
  "aliases" : [ "CVE-2021-21377" ],
  "summary" : "OMERO webclient does not validate URL redirects on login or switching group.",
  "details" : "### 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)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "omero-web"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "5.9.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/ome/omero-web/security/advisories/GHSA-g4rf-pc26-6hmr"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-21377"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ome/omero-web/commit/952f8e5d28532fbb14fb665982211329d137908c"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/ome/omero-web"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ome/omero-web/blob/master/CHANGELOG.md#590-march-2021"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/omero-web/PYSEC-2021-32.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://pypi.org/project/omero-web"
  }, {
    "type" : "WEB",
    "url" : "https://www.openmicroscopy.org/security/advisories/2021-SV2"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-601" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-03-23T15:25:55Z",
    "nvd_published_at" : "2021-03-23T16:15:00Z"
  }
}