← All advisories

CVE-2026-141342highCode execution2026-12-01

CVE-2026-141342: HoloViz Lumen parsed dashboard and Lumen AI specs with PyYAML's full Loader, so a viewer, chat user or prompt-injected LLM output could run Python on the server (fixed 1.4.1)

Lumen 1.4.0 and earlier parsed every dashboard and view spec with yaml.load(..., Loader=yaml.Loader), which builds !!python/object/apply tags. On editable dashboards any viewer could submit such a spec through the built-in YAML editor. In Lumen AI, a chat user editing a generated view's spec reached the same loader, and so did YAML written by the LLM, even with code_execution='disabled'. That means prompt injection in an uploaded dataset or document could run code as the server, with access to data source credentials and LLM API keys. Fixed in 1.4.1 (safe loader).

01.

What it is

lumen.config.load_yaml() expands the spec and calls yaml.load(expanded, Loader=yaml.Loader). The full loader constructs Python objects, so !!python/object/apply:os.system [...] runs a command while the spec is being parsed, before validation.

Reachable when a dashboard is served with config.editable: true, when untrusted users can use Lumen AI and edit a view's YAML, when Lumen AI processes data or documents that may contain prompt injection (agent code in vega_lite.py, base_lumen.py and base_view.py loads model output through the same function), or when untrusted people can write spec files or the YamlAuthMapperPlugin mapping file.

Code runs as the server user, with access to the configured data sources, their credentials and the LLM API keys. No account is needed if the app is served without authentication.

Affected: lumen (PyPI) <= 1.4.0. Fixed in 1.4.1, released 1 December 2026, which uses PyYAML's safe loader for specs and auth mapping files.

02.

How to check

  1. Run pip show lumen and check the version is 1.4.1 or later.
  2. Check whether you serve dashboards with config.editable: true or expose Lumen AI to users or data you do not fully trust.
03.

How to fix

  1. Upgrade lumen to 1.4.1 or later.
  2. Until then, do not serve editable dashboards to untrusted users and do not expose Lumen AI to untrusted users or untrusted data.
  3. If an exposed instance ran an affected version, rotate the data source credentials and LLM API keys it held.
pip show lumen | grep -i '^version'
grep -rn 'editable: *true' --include='*.yaml' .
04.

Sources

The weekly email

One email a week. Only what changed.

Every new security hole in AI coding tools, MCP servers, app builders and the stacks they generate (Next.js, Supabase, Node, PHP), each with how to check your app and the fix. No roundups of things you already read.

Free, one email a week. Read the latest issue first if you like. One-click unsubscribe in every email. We never sell or share addresses.