GHSA-8w54-22w9-3g8f: Products.CMFPlone Cross-Site Scripting Vulnerability

MODERATE
CVSS 4.3
CWE-79
Published
Advisory Summary

GHSA-8w54-22w9-3g8f is a MODERATE (CVSS 4.3) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Products.CMFPlone libraries in the PyPI ecosystem. The issue involves cross-site scripting and open redirect in products.cmfplone. Remediation is available by upgrading affected packages to version 5.0.0.

GHSA-8w54-22w9-3g8f at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-8w54-22w9-3g8f
Severity MODERATE
CVSS v3.1 Base Score 4.3
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Products.CMFPlone
Package Ecosystem PyPI
Published Date
Last Updated

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

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

How to Fix GHSA-8w54-22w9-3g8f

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

Products.CMFPlone fixed: 5.0.0
pip install Products.CMFPlone>=5.0.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 Products.CMFPlone

How to Check if You Are Affected

To determine whether your Python environment is affected by GHSA-8w54-22w9-3g8f, inspect your installed packages using pip:

pip show Products.CMFPlone

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

Note: The pip show Products.CMFPlone command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Products.CMFPlone, 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

### Impact Plone 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. The technique is known as cache poisoning. Any later visitor can get redirected when clicking on a link on this page. Usually only anonymous users are affected, but this depends on your cache settings. ### Patches No patch is available for the Products.CMFPlone 4 series. Versions 5.0 and higher are not affected, but two other packages used by these versions are affected. `plone.app.contenttypes` has the same problem in all versions, see [advisory](https://github.com/plone/plone.app.contenttypes/security/advisories/GHSA-f7qw-5fgj-247x). In 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). Plone 5.2.7 and 6.0.0a3 will be released today and will include these fixes. For all unpatched versions of the three packages, you can use the following workaround. ### Workaround Make sure the image_view_fullscreen page is not stored in the cache. In Plone: * Login as Manager and go to Site Setup. * Go to the 'Caching' control panel. If this does not exist, or 'Enable caching' is not checked, you should normally not be vulnerable. * Click on the tab 'Caching operations'. * Under 'Legacy template mappings' locate the ruleset 'Content item view'. * From the last column ('Templates') remove 'image_view_fullscreen'. * Click on Save. ### Reporter This vulnerability was responsibly disclosed to the Plone Security Team by Gustav Hansen, F-Secure Consulting. Thank you! ### For more information If you have any questions or comments about this advisory, email us at [security@plone.org](mailto:security@plone.org) This is also the correct address to use when you want to report a possible vulnerability. See [our security report policy](https://plone.org/security/report).

GHSA-8w54-22w9-3g8f Affected Products.CMFPlone Versions

1 component(s)
Fixed Versions:
5.0.0
Product / Package Ecosystem Affected Versions Fixed Version
Products.CMFPlone
PyPI
< 5.0.0
5.0.0

References

Frequently Asked Questions

What is GHSA-8w54-22w9-3g8f?
GHSA-8w54-22w9-3g8f is a security vulnerability in Products.CMFPlone involving Cross-site Scripting and Open Redirect in Products.CMFPlone under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Products.CMFPlone versions are affected?
Affected versions include releases prior to 5.0.0 across affected packages: Products.CMFPlone.
What version fixes GHSA-8w54-22w9-3g8f?
Upgrading to 5.0.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is Products.CMFPlone affected?
Yes, Products.CMFPlone is affected in releases prior to 5.0.0. Upgrade your dependency to 5.0.0 or later.
What is the CVSS score of GHSA-8w54-22w9-3g8f?
GHSA-8w54-22w9-3g8f has a CVSS v3.1 base score of 4.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N.
What CWE is associated with GHSA-8w54-22w9-3g8f?
GHSA-8w54-22w9-3g8f is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.).
How can I check PyPI dependencies for GHSA-8w54-22w9-3g8f?
Run the dependency tree command: 'pip show Products.CMFPlone'. 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-8w54-22w9-3g8f",
  "modified" : "2022-01-31T20:25:54Z",
  "published" : "2022-01-28T23:10:40Z",
  "aliases" : [ ],
  "summary" : "Cross-site Scripting and Open Redirect in Products.CMFPlone",
  "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\nNo patch is available for the Products.CMFPlone 4 series.\nVersions 5.0 and higher are not affected, but two other packages used by these versions are affected.\n\n`plone.app.contenttypes` has the same problem in all versions, see [advisory](https://github.com/plone/plone.app.contenttypes/security/advisories/GHSA-f7qw-5fgj-247x).\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).\nPlone 5.2.7 and 6.0.0a3 will be released today and will include these fixes.\n\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" : "Products.CMFPlone"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "5.0.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/plone/Products.CMFPlone/security/advisories/GHSA-8w54-22w9-3g8f"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/plone/Products.CMFPlone"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-01-28T21:56:53Z",
    "nvd_published_at" : null
  }
}