{"answers":{"affected":"7 open source packages ship an affected version, including plone.app.portlets and plone-app-portlets.","exploited":"There is no known exploitation of CVE-2026-57149 in the wild and no public exploit code.","fix":"Upgrade plone.app.portlets to a fixed version for your release line: 5.0.8, 6.0.4 or 7.0.2.","what":"CVE-2026-57149 is a critical code injection vulnerability in plone.app.portlets, published on 22 Sep 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-57149 and fix it if it is affected.\n\nWhat it is: CVE-2026-57149 is a critical code injection vulnerability in plone.app.portlets, published on 22 Sep 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-57149 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- plone.app.portlets (PyPI): affected from 5.0.0; fixed in 5.0.8\n- plone.app.portlets (PyPI): affected from 6.0.0; fixed in 6.0.4\n- plone.app.portlets (PyPI): affected from 7.0.0; fixed in 7.0.2\n- plone-app-portlets (PyPI): affected from 5.0.0; fixed in 5.0.8, 6.0.4, 7.0.2, 5.0.8\n- plone-app-portlets (PyPI): affected from 5.0.0; fixed in 5.0.8\n- plone-app-portlets (PyPI): affected from 6.0.0; fixed in 6.0.4\n- plone-app-portlets (PyPI): affected from 7.0.0; fixed in 7.0.2\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/CVE-2026-57149/ (Markdown: https://insights.sbomify.com/CVE-2026-57149/index.md)","id":"CVE-2026-57149","markdown":"https://insights.sbomify.com/CVE-2026-57149/index.md","name":"CVE-2026-57149","record":{"aliases":["GHSA-rr49-f9g6-c9r5","PYSEC-2026-4138"],"analysis":{"component_type":"cms_plugin","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"Plone portlets plugin","requires_auth":"low_privilege","summary":"Authenticated users can execute arbitrary code via TALES injection in Classic portlets, leading to server-side privilege escalation.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":9.9,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-95","name":"Improper Neutralization of Directives in Dynamically Evaluated Code"}],"description":"plone.app.portlets.portlets provides a Plone-specific user interface for plone.portlets, as well as a standard set of portlets that ship with Plone. Starting in version 5.0.0 and prior to versions 5.0.8, 6.0.4, and 7.0.2, the Classic portlet (plone.app.portlets.portlets.classic) used its user-supplied template/macro fields to build a TALES path expression that was then evaluated by the TAL path() helper. Because the value was interpreted as a full TALES expression, a user able to add or edit a Classic portlet could supply a crafted value that escapes simple path traversal and is evaluated as arbitrary code. This is exploitable by any authenticated user who can configure a Classic portlet - which, with the default role map, includes regular users on their personal dashboard. The result is code execution in the context of the Plone process, i.e. a privilege escalation across the trust boundary between an authenticated web user and the server-side process. The problem has been patched in `plone.app.portlets` 5.0.8, 6.0.4, and 7.0.2. Some workarounds are available.  Restrict who can manage portlets: remove the `plone.app.portlets.ManageOwnPortlets` permission from untrusted roles, and limit Manage portlets to trusted administrators (usually this is already restricted to the Manager and Site Administrator roles).  Where the Classic portlet is not needed, unregister it so it cannot be added. This would need to be done by editing a `portlets.xml` in your own code. One may also effectively disable showing the classic portlet by customising its template. In the Zope Management Interface go to the `portal_view_customizations` tool, locate the `classic.pt` template and click it. Click the Customize button.  Remove all text and replace it with `\u003cdiv\u003eThe classic portlet was disabled.\u003c/div\u003e`. (This is not a recommended way of customizing a template, but in this case it is quite effective.)","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"plone.app.portlets Vulnerable to Remote Code Execution via TALES Injection","id":"CVE-2026-57149","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"code_injection","year":"2026"},"n_packages":7,"n_references":1,"next":{"headline":"OPNsense: Root RCE via Arbitrary File Write in GeoIP Alias Importer","id":"CVE-2026-57155"},"packages":[{"ecosystem":"PyPI","fixed":["5.0.8","6.0.4","7.0.2","5.0.8"],"introduced":["5.0.0","6.0.0","7.0.0","5.0.0"],"last_affected":[],"package":"plone-app-portlets","purl":"pkg:pypi/plone-app-portlets","source":"PYSEC-2026-4138"},{"ecosystem":"PyPI","fixed":["5.0.8"],"introduced":["5.0.0"],"last_affected":[],"package":"plone-app-portlets","purl":"pkg:pypi/plone-app-portlets","source":"GHSA-rr49-f9g6-c9r5"},{"ecosystem":"PyPI","fixed":["6.0.4"],"introduced":["6.0.0"],"last_affected":[],"package":"plone-app-portlets","purl":"pkg:pypi/plone-app-portlets","source":"GHSA-rr49-f9g6-c9r5"},{"ecosystem":"PyPI","fixed":["7.0.2"],"introduced":["7.0.0"],"last_affected":[],"package":"plone-app-portlets","purl":"pkg:pypi/plone-app-portlets","source":"GHSA-rr49-f9g6-c9r5"},{"ecosystem":"PyPI","fixed":["5.0.8"],"introduced":["5.0.0"],"last_affected":[],"package":"plone.app.portlets","purl":null,"source":"GHSA-rr49-f9g6-c9r5"},{"ecosystem":"PyPI","fixed":["6.0.4"],"introduced":["6.0.0"],"last_affected":[],"package":"plone.app.portlets","purl":null,"source":"GHSA-rr49-f9g6-c9r5"},{"ecosystem":"PyPI","fixed":["7.0.2"],"introduced":["7.0.0"],"last_affected":[],"package":"plone.app.portlets","purl":null,"source":"GHSA-rr49-f9g6-c9r5"}],"prev":{"headline":"praisonai-platform 0.1.4 still boots on the hardcoded JWT secret dev-secret-change-me (default-open production guard)","id":"CVE-2026-57148"},"products":["plone.app.portlets"],"published":"2026-09-22","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-09-22","vendors":["plone"]},"summary":"Authenticated users can execute arbitrary code via TALES injection in Classic portlets, leading to server-side privilege escalation.","url":"https://insights.sbomify.com/CVE-2026-57149/"}