CVE-2026-25152: @backstage/plugin techdocs node Path Traversal Vulnerability

MODERATE
Advisory Identifier: GHSA-w669-jj7h-88m9
CVSS 5.3
CWE-22
Published
Advisory Summary

CVE-2026-25152 is a MODERATE (CVSS 5.3) path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting @backstage/plugin techdocs node libraries in the npm ecosystem. The issue involves @backstage/plugin-techdocs-node vulnerable to possible path traversal in techdocs local generator. Remediation is available by upgrading affected packages to version 1.14.1, 1.13.11.

CVE-2026-25152 at a Glance

CVE Identifier CVE-2026-25152
GHSA Identifier GHSA-w669-jj7h-88m9
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Product @backstage/plugin techdocs node
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 5.3

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:U/C:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2026-25152

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.

@backstage/plugin-techdocs-node fixed: 1.14.1
npm install @backstage/plugin-techdocs-node@1.14.1
@backstage/plugin-techdocs-node fixed: 1.13.11
npm install @backstage/plugin-techdocs-node@1.13.11
Verify Direct and Transitive Dependencies

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-25152, 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-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. 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

### Impact A path traversal vulnerability in the TechDocs local generator allows attackers to read arbitrary files from the host filesystem when Backstage is configured with `techdocs.generator.runIn: local`. When processing documentation from untrusted sources, symlinks within the docs directory are followed by MkDocs during the build process. File contents are embedded into generated HTML and exposed to users who can view the documentation. ### Patches This vulnerability is fixed in` @backstage/plugin-techdocs-node` version X.X.X. Users should upgrade to this version or later. ### Workarounds - Switch to `runIn: docker` in your `app-config.yaml`: ```yaml techdocs: generator: runIn: docker ``` - Restrict write access to TechDocs source repositories to trusted users only ### References - https://backstage.io/docs/features/techdocs/configuration

CVE-2026-25152 Affected @backstage/plugin techdocs node Versions

2 component(s)
Fixed Versions:
1.14.11.13.11
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-25152?
CVE-2026-25152 is a security vulnerability in @backstage/plugin techdocs node involving @backstage/plugin-techdocs-node vulnerable to possible Path Traversal in TechDocs Local Generator under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').
Which @backstage/plugin techdocs node versions are affected?
Affected versions include releases prior to 1.14.1, 1.13.11 across affected packages: @backstage/plugin-techdocs-node.
What version fixes CVE-2026-25152?
Upgrading to 1.14.1, 1.13.11 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @backstage/plugin-techdocs-node affected?
Yes, @backstage/plugin-techdocs-node is affected in releases prior to 1.14.1, 1.13.11. Upgrade your dependency to 1.14.1, 1.13.11 or later.
What is the CVSS score of CVE-2026-25152?
CVE-2026-25152 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2026-25152?
CVE-2026-25152 is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.).
How can I check npm dependencies for CVE-2026-25152?
Run the dependency tree command: 'npm ls @backstage/plugin-techdocs-node'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-w669-jj7h-88m9",
  "modified" : "2026-02-02T14:36:39Z",
  "published" : "2026-02-02T14:36:39Z",
  "aliases" : [ "CVE-2026-25152" ],
  "summary" : "@backstage/plugin-techdocs-node vulnerable to possible Path Traversal in TechDocs Local Generator",
  "details" : "### Impact\nA path traversal vulnerability in the TechDocs local generator allows attackers to read arbitrary files from the host filesystem when Backstage is configured with `techdocs.generator.runIn: local`.\n\nWhen processing documentation from untrusted sources, symlinks within the docs directory are followed by MkDocs during the build process. File contents are embedded into generated HTML and exposed to users who can view the documentation.\n\n### Patches\nThis vulnerability is fixed in` @backstage/plugin-techdocs-node` version X.X.X. Users should upgrade to this version or later.\n\n### Workarounds\n- Switch to `runIn: docker` in your `app-config.yaml`:\n```yaml\n  techdocs:\n    generator:\n      runIn: docker\n```\n  - Restrict write access to TechDocs source repositories to trusted users only\n\n### References\n- https://backstage.io/docs/features/techdocs/configuration",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "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-w669-jj7h-88m9"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-25152"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/backstage/backstage/commit/08f388e3394b133171fe13b62a78caf14407b9c3"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/backstage/backstage"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-22" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-02-02T14:36:39Z",
    "nvd_published_at" : "2026-01-30T22:15:56Z"
  }
}