Backstage TechDocs CVE-2026-29186
CRITICALAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain contributor/PR access to TechDocs repo
-
DeliveryCommit crafted mkdocs.yml with malicious hooks
-
ExploitTechDocs build invokes MkDocs >= 1.4.0
-
ExecutionAllowlist gap permits dangerous key
-
PersistMkDocs loads attacker Python module
-
ImpactExecute arbitrary code on build host
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Input neutralization, injection prevention
|
| Exploitation Conditions | Exploitation requires the attacker to supply or modify an mkdocs.yml file in a repository that Backstage TechDocs builds, and that file must include a dangerous MkDocs configuration key not blocked by the allowlist - specifically the 'hooks' key, which requires the build to use MkDocs >= 1.4.0. Practical prerequisites that LIMIT exploitation: the attacker needs write access or an acceptable/mergeable pull request to a TechDocs-processed repository; environments that gate mkdocs.yml changes behind trusted-contributor restrictions or mandatory PR review materially reduce exposure; deployments pinned to MkDocs < 1.4.0 are not exploitable via the hooks vector. Despite the CVSS PR:N, this is effectively a build-input/configuration-dependent flaw rather than a fully anonymous internet-facing RCE, so the realistic gating factor is control over documentation source content, not raw network reachability. |
| Impact | Signals are mixed but lean toward genuine priority for affected operators. The CVSS:3.1 vector AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H yields 9.8 and implies network, low-complexity, unauthenticated exploitation with full CIA impact. However, that PR:N is optimistic for the realistic threat model: exploitation requires the attacker to get a malicious mkdocs.yml into a repository that TechDocs processes, which in most deployments means at least repository contributor access or the ability to open a buildable PR - effectively a privilege/workflow prerequisite the base vector does not capture. EPSS is very low (0.07%, 22nd percentile) and there is no KEV listing and no known POC, indicating no observed mass exploitation. The honest reading: high technical impact and easy mechanics, but exploitation is gated by who can supply build input, so real-world risk concentrates in organizations that build docs from less-trusted or externally contributed repositories. Note the conflict to verify: CVSS asserts unauthenticated network access, while the vulnerability description and workarounds imply the attacker needs write/PR access to mkdocs.yml - treat PR:N with caution. |
| Exploit ScenarioDerived | An attacker with the ability to open or merge a pull request to a repository whose documentation Backstage builds adds a crafted mkdocs.yml containing a malicious 'hooks' entry (or another non-allowlisted dangerous key). When TechDocs builds the docs, MkDocs loads the attacker's Python, executing arbitrary code on the build host or container with the privileges of the TechDocs build process. No public exploit is published, but the technique relies on documented MkDocs hooks behavior and the low-complexity vector makes a working exploit straightforward to construct. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv5 – Jun 30, 2026
Arbitrary code execution in Backstage's @backstage/plugin-techdocs-node (versions <= 1.14.2) allows attackers who can influence an mkdocs.yml file to run arbitrary Python during the documentation build, bypassing TechDocs' allowlist-based configuration filtering. The flaw stems from MkDocs configuration keys (notably the hooks feature) that the security allowlist failed to block, meaning any contributor able to merge or supply a crafted mkdocs.yml gains code execution on the build host. No public exploit identified at time of analysis, and EPSS is low (0.07%), but the CVSS 9.8 rating and trivial exploitation primitive make this a high-priority patch for self-hosted developer portals.
Earlier versions of this analysis (4)
Arbitrary code execution in Backstage's @backstage/plugin-techdocs-node (versions prior to 1.14.3) allows attackers to run arbitrary Python on the documentation build host by crafting a malicious mkdocs.yml. The package relies on an allowlist to strip dangerous MkDocs configuration keys during the TechDocs build, but a gap in that allowlist lets a crafted config slip through and fully bypass the security control. There is no public exploit identified at time of analysis and the EPSS probability is low (0.07%), but the CVSS base score is 9.8 and a vendor patch (1.14.3) is available.
Arbitrary code execution in Backstage's @backstage/plugin-techdocs-node (all versions prior to 1.14.3) allows an attacker who can supply documentation source to run arbitrary Python on the TechDocs build host. The plugin's allowlist that filters dangerous MkDocs configuration keys has a gap, so a crafted mkdocs.yml bypasses TechDocs' security controls and executes code during the documentation build. No public exploit identified at time of analysis, and EPSS is low (0.07%), but the flaw is patched and carries an NVD CVSS of 9.8.
Arbitrary code execution in Backstage's @backstage/plugin-techdocs-node (versions ≤ 1.14.2) lets an attacker who controls an mkdocs.yml file run arbitrary Python on the TechDocs build host. An incomplete allowlist meant to filter dangerous MkDocs configuration keys can be bypassed - for example via the MkDocs hooks mechanism - defeating TechDocs' security controls entirely. No public exploit identified at time of analysis and EPSS is low (0.07%), but the flaw is rated CVSS 9.8 and Red Hat has shipped errata, so it warrants prompt patching to version 1.14.3.
Backstage Plugin-Techdocs-Node versions up to 1.14.3 contains a vulnerability that allows attackers to craft an mkdocs (CVSS 7.7).
RemediationAI
Vendor-released patch: upgrade @backstage/plugin-techdocs-node to version 1.14.3 or later (and rebuild any @techdocs/cli-based pipelines so they pull the fixed package), per the Backstage advisory at https://github.com/backstage/backstage/security/advisories/GHSA-928r-fm4v-mvrw; Red Hat consumers should apply RHSA-2026:9742 / RHSA-2026:13826. If you cannot upgrade immediately, the vendor recommends layered workarounds, each with trade-offs: set TechDocs to runIn: docker instead of runIn: local for container isolation (reduces but does not eliminate the risk, since the malicious code still runs inside the container); restrict who can modify mkdocs.yml in TechDocs-processed repositories to trusted contributors only; enforce mandatory PR review on mkdocs.yml changes to catch malicious hooks before merge; or pin MkDocs to a version below 1.4.0 (e.g., 1.3.1) which lacks the hooks feature, at the cost of losing newer MkDocs functionality. Note that building docs in CI/CD with @techdocs/cli does NOT mitigate the issue because it uses the same vulnerable package.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Backstage TechDocs builds technical documentation from Markdown using MkDocs, a Python static-site generator. To prevent untrusted repository content from compromising the build environment, @backstage/plugin-techdocs-node sanitizes the user-supplied mkdocs.yml against an allowlist of permitted configuration keys. MkDocs 1.4.0 (released 2022-09-27) introduced the 'hooks' key, which loads and executes arbitrary local Python modules at build time; a gap in the allowlist let this and/or other dangerous keys through, so attacker-controlled YAML translates directly into Python code execution. This is an instance of CWE-74 (Improper Neutralization of Special Elements / Injection): untrusted input flows into an interpreter-controlling configuration without adequate filtering. The affected component is identified as cpe:2.3:a:linuxfoundation:backstage_plugin-techdocs-node, and the same code path is reachable via @techdocs/cli in CI/CD because it depends on the same package.
Know when Python gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attacker must supply build input (mkdocs.yml) to a processed repo, implying at least low-privilege contributor access, so PR:L rather than PR:N; once supplied, code execution is reliable with full host impact.
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
8DescriptionNVD
Backstage is an open framework for building developer portals. Prior to version 1.14.3, this is a configuration bypass vulnerability that enables arbitrary code execution. The @backstage/plugin-techdocs-node package uses an allowlist to filter dangerous MkDocs configuration keys during the documentation build process. A gap in this allowlist allows attackers to craft an mkdocs.yml that causes arbitrary Python code execution, completely bypassing TechDocs' security controls. This issue has been patched in version 1.14.3.
Executive ViewAI
Backstage's documentation platform contains a critical code execution flaw affecting versions through 1.14.2. Internal contributors can inject malicious code through documentation configuration, potentially compromising the build infrastructure and accessing sensitive development data. With low real-world exploitation risk (0.1% EPSS) but trivial attack complexity, this requires urgent patching to prevent insider threats and supply-chain attacks via documentation repositories.
Apply vendor patch. Until patched, limit push/merge permissions on documentation configuration files to senior engineers, implement comprehensive audit logging on repository changes, and conduct access reviews.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Affected Products (CPE)NVD
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
GHSA-928r-fm4v-mvrw
NVD
CVE.org
EPSS
Exploit-DB