@backstage/cli-common has a possible `resolveSafeChildPath` Symlink Chain Bypass
Moderate severity
GitHub Reviewed
Published
Jan 21, 2026
in
backstage/backstage
•
Updated Jan 22, 2026
Description
Published to the GitHub Advisory Database
Jan 21, 2026
Reviewed
Jan 21, 2026
Published by the National Vulnerability Database
Jan 21, 2026
Last updated
Jan 22, 2026
Impact
The
resolveSafeChildPathutility 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:link1 → link2 → /outsidewhere intermediate symlinks eventually resolve outside the allowed directoryThis function is used by Scaffolder actions and other backend components to ensure file operations stay within designated directories.
Patches
This vulnerability is fixed in
@backstage/backend-plugin-apiversion 0.1.17. Users should upgrade to this version or later.Workarounds
References