# GHSA-4jqc-jvh2-pxg9: Path traversal for local publishers in TechDocs backend

- Severity: Medium (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2022-06-17T01:11:10.000Z
- Modified: 2022-06-17T01:11:10.000Z

## 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:

- Open an issue in the [Backstage repository](https://github.com/backstage/backstage)
- Visit our chat, linked to in the [Backstage README](https://github.com/backstage/backstage)

(As written by GitHub Advisory Database.)

## Affected

- @backstage/plugin-techdocs-node (npm): before 1.1.2
- @backstage/techdocs-common (npm): before 0.11.16

## References

- <https://github.com/backstage/backstage/security/advisories/GHSA-4jqc-jvh2-pxg9> (web)
- <https://github.com/backstage/backstage/commit/429c9f9daa5654dd1b996aa85f7264eb23a2e4fa> (web)
- <https://github.com/backstage/backstage> (package)

## Sources

- GitHub Advisory Database: [GHSA-4jqc-jvh2-pxg9](https://github.com/advisories/GHSA-4jqc-jvh2-pxg9), CC-BY-4.0, modified 2022-06-17

---

Page: https://cve.day/GHSA-4jqc-jvh2-pxg9 · Whole record: https://cve.day/GHSA-4jqc-jvh2-pxg9.json · Rebuilt by cve.day 2026-11-25T22:56:44.022Z
