{"id":"GHSA-4jqc-jvh2-pxg9","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\u003c!--\n### References\ntodo: Link to blog post / published report.\n--\u003e\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)","modified":"2022-06-17T01:11:10Z","published":"2022-06-17T01:11:10Z","database_specific":{"cwe_ids":[],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2022-06-17T01:11:10Z","nvd_published_at":null},"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"}],"affected":[{"package":{"name":"@backstage/plugin-techdocs-node","ecosystem":"npm","purl":"pkg:npm/%40backstage/plugin-techdocs-node"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.1.2"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/06/GHSA-4jqc-jvh2-pxg9/GHSA-4jqc-jvh2-pxg9.json"}},{"package":{"name":"@backstage/techdocs-common","ecosystem":"npm","purl":"pkg:npm/%40backstage/techdocs-common"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.11.16"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/06/GHSA-4jqc-jvh2-pxg9/GHSA-4jqc-jvh2-pxg9.json"}}],"schema_version":"1.9.0"}