GHSA-4jqc-jvh2-pxg9
JSON

medium

Path traversal for local publishers in TechDocs backend

Severity
medium rating by GitHub
Published
Last changed

Description

Impact

A 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.

This 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.

Patches

Those affected are advised to upgrade to @backstage/plugin-techdocs-node version 1.1.2 or higher.

Workarounds

If 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 ..

<!-- ### References todo: Link to blog post / published report. -->
For more information

If you have any questions or comments about this advisory:

Affected

Product or packageVersionsReported by
@backstage/plugin-techdocs-node (npm)before 1.1.2GitHub Advisory Database
@backstage/techdocs-common (npm)before 0.11.16GitHub Advisory Database

References

Sources

SourceRecordLicence
GitHub Advisory DatabaseGHSA-4jqc-jvh2-pxg9 changed 2022-06-17CC-BY-4.0