{"id":"CVE-2026-24047","published":"2026-01-21T22:45:06Z","modified":"2026-01-22T16:49:06Z","title":"@backstage/cli-common has a possible `resolveSafeChildPath` Symlink Chain Bypass","vendor":"backstage","product":"backstage","tier":"tail","description":{"text":"Backstage is an open framework for building developer portals, and @backstage/cli-common provides config loading functionality used by the backend and command line interface of Backstage. Prior to version 0.1.17, the `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 via symlink chains (creating `link1 → link2 → /outside` where intermediate symlinks eventually resolve outside the allowed directory) and dangling symlinks (creating symlinks pointing to non-existent paths outside the base directory, which would later be created during file operations). This function is used by Scaffolder actions and other backend components to ensure file operations stay within designated directories. This vulnerability is fixed in `@backstage/backend-plugin-api` version 0.1.17. Users should upgrade to this version or later. Some workarounds are available. Run Backstage in a containerized environment with limited filesystem access and/or restrict template creation to trusted users.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0067,"percentile":0.46988,"provenance":"source"},"cwes":[{"id":"CWE-59","name":"Improper Link Resolution Before File Access"},{"id":"CWE-61","name":"UNIX Symbolic Link (Symlink) Following"}],"references":[{"url":"https://github.com/backstage/backstage/security/advisories/GHSA-2p49-45hj-7mc9","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/backstage/backstage/commit/ae4dd5d1572a4f639e1a466fd982656b50f8e692","tags":["x_refsource_MISC"]}],"priority":{"score":13.8,"factors":[{"name":"EPSS percentile","points":9.4},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"backstage","affectedVersions":[{"vendor":"backstage","product":"backstage","versions":["< 0.1.17"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-01-22T15:09:18.960475Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@backstage/cli-common","vulnerableRanges":["<0.1.17"],"patched":["0.1.17"],"from":["GHSA-2p49-45hj-7mc9"],"provenance":"source"}],"summary":{"text":"The resolveSafeChildPath utility in @backstage/backend-plugin-api, which Backstage uses to keep file operations inside designated directories (including Scaffolder actions), fails to properly validate symlink chains and dangling symlinks. An attacker with network access and low privileges who can create or influence templates can exploit this by chaining symlinks that resolve outside the allowed directory, or by creating dangling symlinks that later materialise outside it during file operations, with high attack complexity required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:42:26Z"},"euvd":{"id":"EUVD-2026-4138","exploited":false,"provenance":"source"}}