CVE-2021-21377: Omero web OMERO Webclient Does Not Validate Vulnerability
MODERATECVE-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
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).
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.
pip install omero-web>=5.9.0
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
CVE-2021-21377 Affected Omero web Versions
1 component(s)| 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?
Which Omero web versions are affected?
What version fixes CVE-2021-21377?
Is omero-web affected?
What is the CVSS score of CVE-2021-21377?
What CWE is associated with CVE-2021-21377?
How can I check PyPI dependencies for CVE-2021-21377?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}