{"answers":{"affected":"2 open source packages ship an affected version, including Products.CMFPlone and products-cmfplone.","exploited":"There is no known exploitation of GHSA-8w54-22w9-3g8f in the wild and no public exploit code.","fix":"Upgrade Products.CMFPlone to 5.0.0 or later.","what":"GHSA-8w54-22w9-3g8f is a cross-site scripting vulnerability in Products.CMFPlone, published on 28 Jan 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for GHSA-8w54-22w9-3g8f and fix it if it is affected.\n\nWhat it is: GHSA-8w54-22w9-3g8f is a cross-site scripting vulnerability in Products.CMFPlone, published on 28 Jan 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of GHSA-8w54-22w9-3g8f in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- Products.CMFPlone (PyPI): affected all versions; fixed in 5.0.0\n- products-cmfplone (PyPI): affected all versions; fixed in 5.0.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-8w54-22w9-3g8f/ (Markdown: https://insights.sbomify.com/GHSA-8w54-22w9-3g8f/index.md)","id":"GHSA-8w54-22w9-3g8f","markdown":"https://insights.sbomify.com/GHSA-8w54-22w9-3g8f/index.md","name":"GHSA-8w54-22w9-3g8f","record":{"aliases":[],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["security_bypass","data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"Plone CMS","requires_auth":"none","summary":"Cache poisoning allows attackers to inject XSS and open redirects into Plone image views, affecting visitors who access the poisoned cached page.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### 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).","ecosystems":["PyPI"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"Cross-site Scripting and Open Redirect in Products.CMFPlone","id":"GHSA-8w54-22w9-3g8f","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"xss","year":"2022"},"n_packages":2,"n_references":null,"packages":[{"ecosystem":"PyPI","fixed":["5.0.0"],"introduced":["0"],"last_affected":[],"package":"Products.CMFPlone","purl":null,"source":"GHSA-8w54-22w9-3g8f"},{"ecosystem":"PyPI","fixed":["5.0.0"],"introduced":["0"],"last_affected":[],"package":"products-cmfplone","purl":"pkg:pypi/products-cmfplone","source":"GHSA-8w54-22w9-3g8f"}],"products":null,"published":"2022-01-28","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Cache poisoning allows attackers to inject XSS and open redirects into Plone image views, affecting visitors who access the poisoned cached page.","url":"https://insights.sbomify.com/GHSA-8w54-22w9-3g8f/"}