HoloViz Lumen can run arbitrary Python code through YAML files

High 8.7SE Fix-First Score 48/100CVE-2026-141342SE-AIV-01907Unsafe loading of model or data filesModels and ML frameworksMade public 1 Dec 2026

Download as PDF

What this means

An attacker who can view a dashboard or chat with a Lumen AI bot can run any Python code on the server. They can steal database passwords, API keys for language models, and any data the server can access. The server and all connected systems are compromised.

SecurityElites Manager Brief: the decision in one minute

HoloViz Lumen lets attackers run code on your server by editing dashboards or chatting with the AI. They will steal credentials and data. You must upgrade or take Lumen offline until a fix is available.

SecurityElites Fix-First Score48 of 100
Our own ranking of what to fix first. Real attacks count most, then the chance of attack, then severity.
SecurityElites fix windowWithin 30 days
High severity. This is our suggestion from common practice; your own policy comes first.
Who should own the fixPlatform engineering or infrastructure team (the team that runs Lumen servers).
Likely effortAbout 30 minutes to upgrade once a patched version is released; it is currently unknown when that will happen. If no patch is available, isolating or removing Lumen will take longer depending on how many dashboards depend on it.

Questions to ask your team or supplier

  • Do we have a patched version of HoloViz Lumen available from the vendor, and if not, what is their estimated timeline?
  • Which of our dashboards and AI chat instances are reachable from the internet, and can we restrict them to internal access only today?
  • Have we checked our audit logs and chat history for signs of the attack described in this advisory in the past 90 days?

Message you can forward to the owning team

Security notice: HoloViz Lumen can run arbitrary Python code through YAML files (CVE-2026-141342)

Severity: High (8.7 of 10)
SecurityElites Fix-First Score: 48 of 100
SecurityElites fix window: Within 30 days
Action: no fixed version is listed yet; apply the risk-reduction steps and watch the vendor advisory.
What we need from you: confirm whether we run this software, who owns it, and the date it will be fixed.
Full guide: https://securityelites.com/ai-vulnerabilities/cve-2026-141342-holoviz-lumen-can-run-arbitrary-python-code-through-yaml/
Source: SecurityElites AI Vulnerabilities Database, record SE-AIV-01907

What is at stake in your AI setup

  • LLM API keys: attackers can extract keys for OpenAI, Anthropic, or other providers and abuse your account balance or access your chat history
  • Prompts and chat history: all conversations with the AI bot can be read and exfiltrated
  • Data source credentials: database passwords and API keys used by dashboards can be stolen and used to access backend systems
  • Compute bill: attackers can run expensive inference queries or long-running processes on your LLM bill

Map where your company uses AI

Who is exposed

  • Teams running Lumen AI chat features, since users can inject prompts
  • Teams with editable dashboards enabled, since viewers can edit YAML config
  • Any environment where Lumen can reach databases or external APIs
  • Any system sharing credentials with the Lumen server

Upgrades you need

SoftwareAffected versionsMove to
HoloViz LumenEvery version up to and including 1.4.0No fixed version recorded. Follow the steps below.

The fixed version here was taken from the wording of the official description, because the national database has not listed it yet.

Am I affected?

Enter the version you run. Nothing you type is stored.

SecurityElites Developer Brief: the technical picture

Where the attacker must beAnywhere that can reach it over a network, including the internet if it is exposed
Account neededAn ordinary user account
Does a person have to do somethingNo. It works without anyone clicking or opening anything
How hard it is to doEasy. It works reliably once the attacker can reach it
Risk of: data being readHigh
Risk of: data or settings being changedHigh
Risk of: the service being taken downHigh

Read from the official severity rating: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Kind of coding mistake

  • CWE-502: untrusted data is loaded as objects

Where it sits in the standards

OWASP Top 10 for LLM Applications 2025: LLM03 Supply Chain (unsafe model and data files)

If you cannot upgrade today

  • Disable the YAML editor in Lumen config by setting allow_edit_yaml: false or equivalent in your Lumen settings.
  • Disable AI chat features by removing or commenting out the LLM configuration.
  • Restrict Lumen access to internal IP ranges only using a firewall or proxy.

Signs it may already have been used against you

  • Look for YAML entries containing 'python/object' or 'apply' tags in dashboard edit logs, suspicious prompts with YAML syntax in AI chat logs, and unexpected Python errors or new network connections from the Lumen server in process and netwo

Log searches to start from

YAML edits with dangerous tags (adapt field names to your logs)Splunk

source=lumen_dashboard_logs python/object OR apply | stats count by user, timestamp, dashboard_name

AI chat prompts with YAML or code keywords (adapt field names to your logs)Elastic

source:lumen_chat AND (message:"python/object" OR message:"apply:" OR message:"import " OR message:"exec") | stats count by user, timestamp

Written with AI as a starting point. Review them and change the index and field names to match your own logs before you rely on the result.

SecurityElites Fix Guide: step by step

  1. Find where Lumen is installedList all servers and containers running HoloViz Lumen. Check deployment tools, container registries, and application inventories for Lumen version 1.4.0 or earlier. Document the version number and location of each instance.
  2. Check for internet-facing Lumen dashboardsIdentify which Lumen instances are reachable from outside your network. Check whether editable dashboards or AI chat features are enabled. These are the highest-risk instances.
  3. Review recent dashboard edits and chat logsExport audit logs, dashboard edit history, and AI chat logs from the past 90 days.
  4. Disable Lumen or restrict access immediatelyIf a patched version is not available, take one of these steps: turn off editable dashboards and AI chat features in Lumen config, restrict dashboard access to your internal network only, or take Lumen offline until a fix is released. Document which step you chose and why.
  5. Rotate all credentials reachable from LumenChange passwords for all databases, data warehouses, and external APIs that Lumen can connect to. Reset all API keys for language model services (OpenAI, Anthropic, etc.). Do this even if you found no signs of attack.
  6. Monitor for new Lumen patchesCheck the HoloViz Lumen release notes and security advisories weekly at holoviz.org. Subscribe to their security mailing list if available. Plan to upgrade within 24 hours of a patch release.
  7. Upgrade when a patched version is availableOnce HoloViz releases a fixed version, test it in a staging environment first. Then upgrade all production Lumen instances to the patched version and restart them.
  8. Verify the fix is in placeTest that the dashboard loads and AI chat works. Confirm that editable YAML fields reject dangerous input (try submitting a simple dashboard; if it fails to load, the fix is working).

How to confirm it is fixed: Confirm that the installed Lumen version is higher than 1.4.0 using the pip show or Python import commands in the snippets section.

SecurityElites Quick Fixes: copy and paste

Check installed Lumen version (Python)for this issue

import lumen; print(lumen.__version__)

Check installed Lumen version (command line)for this issue

pip show lumen | grep Version

Load PyTorch weights without running codegeneral hardening

import torch
state = torch.load("model.pt", weights_only=True)

Load safetensors weightsgeneral hardening

from safetensors.torch import load_file
state = load_file("model.safetensors")

Test in a non-production environment first. General hardening examples use placeholder names and ports; change them to match your setup.

SecurityElites Incident Drill: could your team handle this?

Four questions to ask in your next team meeting. If any has no clear answer, that is the gap to close.

What is the main way an attacker can run code in Lumen, and who can do it?A good answer: Attackers can submit malicious YAML through dashboard editors, view spec edits, or by injecting prompts into the AI chat feature.
What credentials are at risk if Lumen is compromised?A good answer: Database passwords, data warehouse connection strings, and API keys for language models and external services that Lumen is configured to use.
What should we do right now if we do not have a patched version yet?A good answer: Disable editable dashboards and AI chat in Lumen config, restrict access to internal networks only, or take Lumen offline.
How do we know if someone has already exploited this in our Lumen instance?A good answer: Look for YAML entries with python/object or apply tags in dashboard edit logs, suspicious prompts in chat logs, and unexpected Python errors or network connections in server logs.

Run a full timed drill with your team

Ticket for your backlog

Paste into Jira, GitHub Issues or any tracker that reads Markdown.

Ready-made ticket

## HoloViz Lumen can run arbitrary Python code through YAML files (CVE-2026-141342)

**Severity:** High 8.7  |  **SE Fix-First Score:** 48/100  |  **Fix window:** Within 30 days
**Record:** SE-AIV-01907 https://securityelites.com/ai-vulnerabilities/cve-2026-141342-holoviz-lumen-can-run-arbitrary-python-code-through-yaml/

### Why this matters
An attacker who can view a dashboard or chat with a Lumen AI bot can run any Python code on the server. They can steal database passwords, API keys for language models, and any data the server can access. The server and all connected systems are compromised.

### What to do
1. Find where Lumen is installed
2. Check for internet-facing Lumen dashboards
3. Review recent dashboard edits and chat logs
4. Disable Lumen or restrict access immediately
5. Rotate all credentials reachable from Lumen
6. Monitor for new Lumen patches
7. Upgrade when a patched version is available
8. Verify the fix is in place

Full steps: https://securityelites.com/ai-vulnerabilities/cve-2026-141342-holoviz-lumen-can-run-arbitrary-python-code-through-yaml/

### Done when
- [ ] The risk-reduction steps are applied and the vendor advisory is being watched for a fixed version
- [ ] Lock files, container images and CI configuration are updated
- [ ] Confirm that the installed Lumen version is higher than 1.4.0 using the pip show or Python import commands in the snippets section.
- [ ] Logs were checked for signs of earlier use

SecurityElites Fix Tracker

Record who owns this fix, the date it is due and when it is done, and see everything still open in one list. Free with a SecurityElites account.

Sign in to track this fix

Change history

  • 1 Dec 2026: Made public
  • 1 Dec 2026: Fixed version added, from the vendor's own CVE record
  • 1 Dec 2026: Fixed version added, from the wording of the official description
  • 1 Dec 2026: Published
  • 1 Dec 2026: Fixed version added, from the wording of the official description
  • 2 Dec 2026: Fixed version added, from the wording of the official description
  • 2 Dec 2026: Guide updated

Official record

HoloViz Lumen through 1.4.0 contains a remote code execution vulnerability that allows dashboard viewers or Lumen AI chat users to run Python code by submitting YAML parsed with yaml.Loader in lumen.config.load_yaml. Attackers can submit python/object/apply tags through the YAML editor on config.editable dashboards, view spec edits, or prompt-injected LLM output to execute code as the server process and steal data source credentials and LLM API keys.

Weakness type: CWE-502

Use this record in your own tools

Get this record as JSON

curl https://securityelites.com/wp-json/se-aivd/v1/vulns/CVE-2026-141342

For scanners and pipelines: OSV format · CycloneDX format · API guide · Email alerts · Fix tracker

The plain-language sections were written with AI from the official record, and the upgrade versions come directly from the official data. Last updated 3 Dec 2026. Read the vendor advisory before changing a production system.