GHSA-4jqc-jvh2-pxg9: @backstage/plugin techdocs node Path Traversal Vulnerability
MODERATEGHSA-4jqc-jvh2-pxg9 is a MODERATE path traversal vulnerability (General Security Weakness) affecting @backstage/plugin techdocs node libraries in the npm ecosystem. The issue involves path traversal for local publishers in techdocs backend. Remediation is available by upgrading affected packages to version 1.1.2, 0.11.16.
GHSA-4jqc-jvh2-pxg9 at a Glance
How to Fix GHSA-4jqc-jvh2-pxg9
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.1.2
npm install @backstage/techdocs-common@0.11.16
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 GHSA-4jqc-jvh2-pxg9, 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.1.2), 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 General Security Weakness. 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
GHSA-4jqc-jvh2-pxg9 Affected @backstage/plugin techdocs node Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@backstage/plugin-techdocs-node
|
npm |
< 1.1.2
|
1.1.2
|
|
@backstage/techdocs-common
|
npm |
< 0.11.16
|
0.11.16
|
References
Frequently Asked Questions
What is GHSA-4jqc-jvh2-pxg9?
Which @backstage/plugin techdocs node versions are affected?
What version fixes GHSA-4jqc-jvh2-pxg9?
Is @backstage/plugin-techdocs-node affected?
Is @backstage/techdocs-common affected?
What CWE is associated with GHSA-4jqc-jvh2-pxg9?
How can I check npm dependencies for GHSA-4jqc-jvh2-pxg9?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-4jqc-jvh2-pxg9",
"modified" : "2022-06-17T01:11:10Z",
"published" : "2022-06-17T01:11:10Z",
"aliases" : [ ],
"summary" : "Path traversal for local publishers in TechDocs backend",
"details" : "### Impact\nA malicious actor with the ability to register entities in the Software Catalog is able to write files to arbitrary paths on the techdocs backend host instance when `techdocs.publisher.type` is set to `local`.\n\nThis vulnerability is mitigated by the fact that the Software Catalog must be configured with non-standard field format validators and/or non-standard entity policies.\n\n### Patches\nThose affected are advised to upgrade to `@backstage/plugin-techdocs-node` version `1.1.2` or higher.\n\n### Workarounds\nIf patching or upgrading is not possible, it would be sufficient to update any custom Catalog field format validators and/or custom entity policies to disallow entity names, kinds, and namespaces containing `..`\n\n<!--\n### References\ntodo: Link to blog post / published report.\n-->\n\n### For more information\nIf you have any questions or comments about this advisory:\n\n- Open an issue in the [Backstage repository](https://github.com/backstage/backstage)\n- Visit our chat, linked to in the [Backstage README](https://github.com/backstage/backstage)",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@backstage/plugin-techdocs-node"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.1.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@backstage/techdocs-common"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.11.16"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/backstage/backstage/security/advisories/GHSA-4jqc-jvh2-pxg9"
}, {
"type" : "WEB",
"url" : "https://github.com/backstage/backstage/commit/429c9f9daa5654dd1b996aa85f7264eb23a2e4fa"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/backstage/backstage"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-06-17T01:11:10Z",
"nvd_published_at" : null
}
}