{"id":"CVE-2023-35926","published":"2023-06-22T13:29:03Z","modified":"2024-12-05T17:48:07Z","title":"Insecure sandbox in Backstage Scaffolder plugin","vendor":"backstage","product":"backstage","tier":"tail","description":{"text":"Backstage is an open platform for building developer portals. The Backstage scaffolder-backend plugin uses a templating library that requires sandbox, as it by design allows for code injection. The library used for this sandbox so far has been `vm2`, but in light of several past vulnerabilities and existing vulnerabilities  that may not have a fix, the plugin has switched to using a different sandbox library. A malicious actor with write access to a registered scaffolder template could manipulate the template in a way that allows for remote code execution on the scaffolder-backend instance. This was only exploitable in the template YAML definition itself and not by user input data. This is vulnerability is fixed in version 1.15.0 of `@backstage/plugin-scaffolder-backend`.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01888,"percentile":0.80046,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://github.com/backstage/backstage/security/advisories/GHSA-wg6p-jmpc-xjmr","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/backstage/backstage/commit/fb7375507d56faedcb7bb3665480070593c8949a","tags":["x_refsource_MISC"]},{"url":"https://github.com/backstage/backstage/releases/tag/v1.15.0","tags":["x_refsource_MISC"]}],"priority":{"score":21.7,"factors":[{"name":"EPSS percentile","points":16.01},{"name":"CVSS severity","points":5.67}]},"vendorSlug":"backstage","affectedVersions":[{"vendor":"backstage","product":"backstage","versions":["< 1.15.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2024-12-05T17:47:53.884189Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@backstage/plugin-scaffolder-backend","vulnerableRanges":["<1.15.0"],"patched":["1.15.0"],"from":["GHSA-wg6p-jmpc-xjmr"],"provenance":"source"}],"summary":{"text":"The Backstage scaffolder-backend plugin (@backstage/plugin-scaffolder-backend) uses a templating sandbox that allowed code injection, and that sandbox has been replaced with a different library. An attacker who holds write access to a registered scaffolder template can craft the template's YAML definition to execute code on the scaffolder-backend instance, though this is not possible through user-supplied input data.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:56:49Z"},"euvd":{"id":"EUVD-2023-1899","exploited":false,"provenance":"source"}}