{"id":"CVE-2021-43783","published":"2021-11-29T19:20:09Z","modified":"2024-08-04T04:03:08Z","title":"Path Traversal in @backstage/plugin-scaffolder-backend","vendor":"backstage","product":"backstage","tier":"tail","description":{"text":"@backstage/plugin-scaffolder-backend is the backend for the default Backstage software templates. In affected versions a malicious actor with write access to a registered scaffolder template is able to manipulate the template in a way that writes files to arbitrary paths on the scaffolder-backend host instance. This vulnerability can in some situation also be exploited through user input when executing a template, meaning you do not need write access to the templates. This method will not allow the attacker to control the contents of the injected file however, unless the template is also crafted in a specific way that gives control of the file contents. This vulnerability is fixed in version `0.15.14` of the `@backstage/plugin-scaffolder-backend`. This attack is mitigated by restricting access and requiring reviews when registering or modifying scaffolder templates.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01246,"percentile":0.70025,"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-mg3m-f475-28hv","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/backstage/backstage/commit/f9352ab606367cd9efc6ff048915c70ed3013b7f","tags":["x_refsource_MISC"]}],"priority":{"score":20.0,"factors":[{"name":"EPSS percentile","points":14.01},{"name":"CVSS severity","points":5.95}]},"vendorSlug":"backstage","affectedVersions":[{"vendor":"backstage","product":"backstage","versions":["< 0.15.14"]}],"affected":[{"ecosystem":"npm","package":"@backstage/plugin-scaffolder-backend","vulnerableRanges":["<0.15.14"],"patched":["0.15.14"],"from":["GHSA-mg3m-f475-28hv"],"provenance":"source"}],"summary":{"text":"A path traversal flaw in the scaffolder backend of Backstage (the @backstage/plugin-scaffolder-backend component, which serves the default software templates) lets crafted template content write files outside their intended directory. Exploitation requires either write access to a registered scaffolder template, or in some situations user input supplied when a template is executed, and the attacker cannot control file contents unless the template is also crafted to allow that.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:15:00Z"},"euvd":{"id":"EUVD-2021-2554","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,"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-2021-43783","published":"2021-11-29","fixed":"0.15.14","kev":false},{"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},{"cve":"CVE-2026-24046","published":"2026-01-21","fixed":"3.1.1","kev":false}],"package":"npm:@backstage/plugin-scaffolder-backend"}}