GHSA-f7qw-5fgj-247x: Plone.app.contenttypes Cross-Site Scripting Vulnerability
MODERATEGHSA-f7qw-5fgj-247x is a MODERATE (CVSS 4.3) cross-site scripting vulnerability (CWE-601: URL Redirection to Untrusted Site ('Open Redirect')) affecting Plone.app.contenttypes libraries in the PyPI ecosystem. The issue involves cross-site scripting and open redirect in plone.app.contenttypes. Remediation is available by upgrading affected packages to version 2.2.3.
GHSA-f7qw-5fgj-247x at a Glance
Security Impact
CVSS: 4.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N).
How to Fix GHSA-f7qw-5fgj-247x
To remediate this vulnerability, upgrade all affected Plone.app.contenttypes 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 plone.app.contenttypes>=2.2.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show plone.app.contenttypes
How to Check if You Are Affected
To determine whether your Python environment is affected by GHSA-f7qw-5fgj-247x, inspect your installed packages using pip:
pip show plone.app.contenttypes
Analyze the terminal output to locate any version of Plone.app.contenttypes in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.2.3), your application is affected.
Note: The pip show plone.app.contenttypes 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 Plone.app.contenttypes, 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
GHSA-f7qw-5fgj-247x Affected Plone.app.contenttypes Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
plone.app.contenttypes
|
PyPI |
< 2.2.3
|
2.2.3
|
References
Frequently Asked Questions
What is GHSA-f7qw-5fgj-247x?
Which Plone.app.contenttypes versions are affected?
What version fixes GHSA-f7qw-5fgj-247x?
Is plone.app.contenttypes affected?
What is the CVSS score of GHSA-f7qw-5fgj-247x?
What CWE is associated with GHSA-f7qw-5fgj-247x?
How can I check PyPI dependencies for GHSA-f7qw-5fgj-247x?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-f7qw-5fgj-247x",
"modified" : "2022-01-31T19:08:58Z",
"published" : "2022-02-01T00:48:35Z",
"aliases" : [ ],
"summary" : "Cross-site Scripting and Open Redirect in plone.app.contenttypes",
"details" : "### Impact\nPlone is vulnerable to reflected cross site scripting and open redirect when an attacker can get a compromised version of the image_view_fullscreen page in a cache, for example in Varnish.\nThe technique is known as cache poisoning.\nAny later visitor can get redirected when clicking on a link on this page.\nUsually only anonymous users are affected, but this depends on your cache settings.\n\n### Patches\nNew versions of plone.app.contenttypes have been released.\nVersion 2.2.3 works on Plone 5.2 and will be included in Plone 5.2.7.\nVersion 3.0.0a9 works on Plone 6 and will be included in Plone 6.0.0a3.\n\nNote that the Products.CMFPlone package has the same problem in the 4.3 series.\nIn Plone 5.0-5.2, the default Products.ATContentTypes version has the same problem. See [advisory](https://github.com/plone/Products.ATContentTypes/security/advisories/GHSA-g4c2-ghfg-g5rh).\nFor all unpatched versions of the three packages, you can use the following workaround.\n\n### Workaround\nMake sure the image_view_fullscreen page is not stored in the cache.\nIn Plone:\n\n* Login as Manager and go to Site Setup.\n* Go to the 'Caching' control panel. If this does not exist, or 'Enable caching' is not checked, you should normally not be vulnerable.\n* Click on the tab 'Caching operations'.\n* Under 'Legacy template mappings' locate the ruleset 'Content item view'.\n* From the last column ('Templates') remove 'image_view_fullscreen'.\n* Click on Save.\n\n### Reporter\nThis vulnerability was responsibly disclosed to the Plone Security Team by Gustav Hansen, F-Secure Consulting. Thank you!\n\n### For more information\nIf you have any questions or comments about this advisory, email us at [security@plone.org](mailto:security@plone.org)\nThis is also the correct address to use when you want to report a possible vulnerability.\nSee [our security report policy](https://plone.org/security/report).",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "plone.app.contenttypes"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.2.3"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/plone/Products.ATContentTypes/security/advisories/GHSA-g4c2-ghfg-g5rh"
}, {
"type" : "WEB",
"url" : "https://github.com/plone/plone.app.contenttypes/security/advisories/GHSA-f7qw-5fgj-247x"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/plone/plone.app.contenttypes"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-601", "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-01-31T19:07:49Z",
"nvd_published_at" : null
}
}