{"id":"GHSA-2p49-45hj-7mc9","summary":"@backstage/cli-common has a possible `resolveSafeChildPath` Symlink Chain Bypass","details":"### Impact\n\nThe `resolveSafeChildPath` utility function in `@backstage/backend-plugin-api`, which is used to prevent path traversal attacks, failed to properly validate symlink chains and dangling symlinks. An attacker could bypass the path validation by:\n\n1. **Symlink chains**: Creating `link1 → link2 → /outside` where intermediate symlinks eventually resolve outside the allowed directory\n2. **Dangling symlinks**: Creating symlinks pointing to non-existent paths outside the base directory, which would later be created during file operations\n\nThis function is used by Scaffolder actions and other backend components to ensure file operations stay within designated directories.\n\n### Patches\n\nThis vulnerability is fixed in `@backstage/backend-plugin-api` version 0.1.17. Users should upgrade to this version or later.\n\n### Workarounds\n\n- Run Backstage in a containerised environment with limited filesystem access\n- Restrict template creation to trusted users","aliases":["CVE-2026-24047"],"modified":"2026-02-03T03:10:16.981108Z","published":"2026-01-21T22:40:51Z","database_specific":{"github_reviewed_at":"2026-01-21T22:40:51Z","nvd_published_at":"2026-01-21T23:15:53Z","cwe_ids":["CWE-59","CWE-61"],"severity":"MODERATE","github_reviewed":true},"references":[{"type":"WEB","url":"https://github.com/backstage/backstage/security/advisories/GHSA-2p49-45hj-7mc9"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-24047"},{"type":"WEB","url":"https://github.com/backstage/backstage/commit/ae4dd5d1572a4f639e1a466fd982656b50f8e692"},{"type":"PACKAGE","url":"https://github.com/backstage/backstage"}],"affected":[{"package":{"name":"@backstage/cli-common","ecosystem":"npm","purl":"pkg:npm/%40backstage/cli-common"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.1.17"}]}],"database_specific":{"last_known_affected_version_range":"\u003c= 0.1.16","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/01/GHSA-2p49-45hj-7mc9/GHSA-2p49-45hj-7mc9.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N"}]}