{"id":"CVE-2021-41151","published":"2021-10-18T20:30:10Z","modified":"2024-08-04T02:59:31Z","title":"Path Traversal in @backstage/plugin-scaffolder-backend","vendor":"backstage","product":"backstage","tier":"tail","description":{"text":"Backstage is an open platform for building developer portals. In affected versions A malicious actor could read sensitive files from the environment where Scaffolder Tasks are run. The attack is executed by crafting a custom Scaffolder template with a `github:publish:pull-request` action and a particular source path. When the template is executed the sensitive files would be included in the published pull request. This vulnerability is mitigated by the fact that an attacker would need access to create and register templates in the Backstage catalog, and that the attack is very visible given that the exfiltration happens via a pull request. The vulnerability is patched in the `0.15.9` release of `@backstage/plugin-scaffolder-backend`.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.8,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01315,"percentile":0.71454,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/backstage/backstage/security/advisories/GHSA-pvv8-8fx9-h673","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/backstage/backstage/commit/6968962c920508eae19a4c1c200fa2c8980a4006","tags":["x_refsource_MISC"]}],"priority":{"score":19.1,"factors":[{"name":"EPSS percentile","points":14.29},{"name":"CVSS severity","points":4.76}]},"vendorSlug":"backstage","affectedVersions":[{"vendor":"backstage","product":"backstage","versions":[">=0.9.4, < 0.15.9"]}],"affected":[{"ecosystem":"npm","package":"@backstage/plugin-scaffolder-backend","vulnerableRanges":[">=0.9.4, <0.15.9"],"patched":["0.15.9"],"from":["GHSA-pvv8-8fx9-h673"],"provenance":"source"}],"summary":{"text":"A path traversal flaw in the scaffolder backend of the Backstage developer portal platform (@backstage/plugin-scaffolder-backend) lets a crafted template read arbitrary sensitive files from the environment where Scaffolder tasks run. An attacker who can create and register templates in the Backstage catalog, which requires high privileges and no user interaction, can use a github:publish:pull-request action with a specific source path to have those files included in a published pull request.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:33:45Z"},"euvd":{"id":"EUVD-2021-2243","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-backstage-cve-2021-41151","packageHistory":[{"cve":"CVE-2021-41151","published":"2021-10-18","fixed":"0.15.9","kev":false},{"cve":"CVE-2021-43783","published":"2021-11-29","fixed":"0.15.14","kev":false,"link":{"from":"CVE-2021-41151","to":"CVE-2021-43783","relation":"successor","confidence":"medium","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@backstage/plugin-scaffolder-backend","fromFixed":"0.15.9","toFixed":"0.15.14","daysApart":42},{"kind":"similar","provenance":"machine","score":0.45,"basis":"same product + CWE + description similarity"}]}},{"cve":"CVE-2023-35926","published":"2023-06-22","fixed":"1.15.0","kev":false},{"cve":"CVE-2025-55285","published":"2025-08-15","fixed":"2.1.1","kev":false}],"package":"npm:@backstage/plugin-scaffolder-backend"}}