CVE-2026-25153: @backstage/plugin techdocs node @backstage/plugin-techdocs-node Vulnerable To Arbitrary Code Vulnerability
HIGHCVE-2026-25153 is a HIGH (CVSS 7.7) @backstage/plugin-techdocs-node vulnerable to arbitrary code vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting @backstage/plugin techdocs node libraries in the npm ecosystem. The issue involves @backstage/plugin-techdocs-node vulnerable to arbitrary code execution via mkdocs hooks. Remediation is available by upgrading affected packages to version 1.14.1, 1.13.11.
CVE-2026-25153 at a Glance
Security Impact
CVSS: 7.7
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L).
How to Fix CVE-2026-25153
To remediate this vulnerability, upgrade all affected @backstage/plugin techdocs node dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install @backstage/plugin-techdocs-node@1.14.1
npm install @backstage/plugin-techdocs-node@1.13.11
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @backstage/plugin-techdocs-node
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-25153, inspect your project dependencies using npm:
npm ls @backstage/plugin-techdocs-node
Analyze the terminal output to locate any version of @backstage/plugin techdocs node in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.14.1), your application is affected.
Note: The npm ls @backstage/plugin-techdocs-node command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In @backstage/plugin techdocs node, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-25153 Affected @backstage/plugin techdocs node Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@backstage/plugin-techdocs-node
|
npm |
≥ 1.14.0
< 1.14.1
All 1 versions
1.14.0
|
1.14.1
|
|
@backstage/plugin-techdocs-node
|
npm |
< 1.13.11
|
1.13.11
|
References
Frequently Asked Questions
What is CVE-2026-25153?
Which @backstage/plugin techdocs node versions are affected?
What version fixes CVE-2026-25153?
Is @backstage/plugin-techdocs-node affected?
What is the CVSS score of CVE-2026-25153?
What CWE is associated with CVE-2026-25153?
How can I check npm dependencies for CVE-2026-25153?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-6jr7-99pf-8vgf",
"modified" : "2026-02-02T20:19:58Z",
"published" : "2026-02-02T20:19:58Z",
"aliases" : [ "CVE-2026-25153" ],
"summary" : "@backstage/plugin-techdocs-node vulnerable to arbitrary code execution via MkDocs hooks",
"details" : "### Impact\n\nWhen TechDocs is configured with `runIn: local`, a malicious actor who can submit or modify a repository's `mkdocs.yml` file can execute arbitrary Python code on the TechDocs build server via MkDocs hooks configuration.\n\n### Patches\n\nUpgrade to `@backstage/plugin-techdocs-node` version 1.13.11, 1.14.1 or later.\nThe fix introduces an allowlist of supported MkDocs configuration keys. Unsupported configuration keys (including `hooks`) are now removed from `mkdocs.yml` before running the generator, with a warning logged to indicate which keys were removed.\n\n**Note**: Users of `@techdocs/cli` should also upgrade to the latest version, which includes the fixed `@backstage/plugin-techdocs-node` dependency.\n\n### Workarounds\n\nIf you cannot upgrade immediately:\n\n1. Use Docker mode with restricted access: Configure TechDocs with `runIn: docker` instead of `runIn: local`. This provides container isolation, though it does not fully mitigate the risk.\n2. Restrict repository access: Limit who can modify `mkdocs.yml` files in repositories that TechDocs processes. Only allow trusted contributors.\n3. Manual review: Implement PR review requirements for changes to `mkdocs.yml` files to detect malicious `hooks` configurations before they are merged.\n4. Downgrade MkDocs: Use MkDocs < 1.4.0 (e.g., 1.3.1) which does not support hooks. Note: This may limit access to newer MkDocs features.\n\n**Note**: Building documentation in CI/CD pipelines using `@techdocs/cli` does not mitigate this vulnerability, as the CLI uses the same vulnerable `@backstage/plugin-techdocs-node` package.\n\n### References\n\n[MkDocs Hooks Documentation](https://www.mkdocs.org/user-guide/configuration/#hooks)\n[MkDocs 1.4 Release Notes](https://www.mkdocs.org/about/release-notes/#version-14-2022-09-27)\n[TechDocs Architecture](https://backstage.io/docs/features/techdocs/architecture)",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@backstage/plugin-techdocs-node"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.14.0"
}, {
"fixed" : "1.14.1"
} ]
} ],
"versions" : [ "1.14.0" ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@backstage/plugin-techdocs-node"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.13.11"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/backstage/backstage/security/advisories/GHSA-6jr7-99pf-8vgf"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-25153"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/backstage/backstage"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-94" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-02-02T20:19:58Z",
"nvd_published_at" : "2026-01-30T22:15:56Z"
}
}