{"schemaVersion":3,"id":"CVE-2023-35926","aliases":["GHSA-wg6p-jmpc-xjmr"],"status":"published","duplicateOf":null,"title":null,"description":"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`.","dates":{"published":"2023-06-22T13:29:03.361Z","modified":"2024-12-05T17:48:07.987Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.9,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":8.1,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H","exploitability":3.3,"impact":10,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.9,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01888,"percentile":0.79218,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.01888},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01888,"percentile":0.79218}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01888,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01888,"percentile":0.79218}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-94","name":"Improper Control of Generation of Code ('Code Injection')","description":"The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/94.html"}],"affected":[{"vendor":"backstage","product":"backstage","name":"backstage","label":"backstage","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.15.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.15.0","eol":null,"hubHref":"/vendor/backstage/backstage"},{"vendor":"linuxfoundation","product":"backstage","name":"backstage","label":"backstage","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.15.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.15.0","eol":null,"hubHref":"/vendor/linuxfoundation/backstage"},{"vendor":"@backstage","product":"plugin-scaffolder-backend","name":"@backstage/plugin-scaffolder-backend","label":"plugin-scaffolder-backend","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/@backstage/plugin-scaffolder-backend","purlType":"npm","versions":[{"text":"< 1.15.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.15.0","eol":null,"hubHref":null}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/backstage/backstage/security/advisories/GHSA-wg6p-jmpc-xjmr","label":"github.com/backstage/backstage/security/advisories/GHSA-wg6p-jmpc-xjmr","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Vendor Advisory"]},{"url":"https://github.com/backstage/backstage/commit/fb7375507d56faedcb7bb3665480070593c8949a","label":"github.com/backstage/backstage/commit/fb7375507d56faedcb7bb3665480070593c8949a","hostname":"github.com","tags":["X Refsource MISC","WEB","Patch"]},{"url":"https://github.com/backstage/backstage/releases/tag/v1.15.0","label":"github.com/backstage/backstage/releases/tag/v1.15.0","hostname":"github.com","tags":["X Refsource MISC","WEB","Release Notes"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-35926","label":"nvd.nist.gov/vuln/detail/CVE-2023-35926","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/backstage/backstage","label":"github.com/backstage/backstage","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2023-06-22T13:29:03.361Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-12-05T17:48:07.987Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T19:11:35.994Z","stale":false,"partial":false}}