Skip to main content

Backstage TechDocs CVE-2026-29186

CRITICAL
Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') (CWE-74)
2026-03-07 security-advisories@github.com GHSA-928r-fm4v-mvrw
9.8
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain contributor/PR access to TechDocs repo
  2. Delivery
    Commit crafted mkdocs.yml with malicious hooks
  3. Exploit
    TechDocs build invokes MkDocs >= 1.4.0
  4. Execution
    Allowlist gap permits dangerous key
  5. Persist
    MkDocs loads attacker Python module
  6. Impact
    Execute 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv5 – 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)
v4 Jun 30, 2026 - 04:00 cvss changed CVSS 9.8

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.

v3 Jun 30, 2026 - 03:59 cvss changed CVSS 9.8

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.

v2 Jun 30, 2026 - 03:58 cvss changed CVSS 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.

v1 Mar 12, 2026 - 21:55 CVSS 7.7

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

npm @backstage/plugin-techdocs-node fix: 1.14.3

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

NVD PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 8.8 HIGH

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.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Red Hat 9.1 HIGH

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

8
Analysis Updated
Jun 30, 2026 - 04:00 vuln.today
v5 - CVSS changed
Analysis Updated
Jun 30, 2026 - 04:00 vuln.today
v4 - CVSS changed
Analysis Updated
Jun 30, 2026 - 03:59 vuln.today
v3 - CVSS changed
Analysis Updated
Jun 30, 2026 - 03:58 vuln.today
v2 - CVSS changed
Severity Changed
Jun 30, 2026 - 03:24 NVD
HIGH CRITICAL
CVSS changed
Jun 30, 2026 - 03:24 NVD
7.7 (HIGH) 9.8 (CRITICAL)
Patch released
Mar 31, 2026 - 21:13 nvd
Patch available
CVE Published
Mar 07, 2026 - 15:15 nvd
HIGH 7.7

DescriptionNVD

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.1%
Top 78% exploitable
Prevalence
Medium
Popular open-source developer portal, common in mid-to-large engineering orgs
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

49
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +49
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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

cpe:2.3:a:linuxfoundation:backstage_plugin-techdocs-node:*:*:*:*:*:*:*:*

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

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

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy