{"answers":{"affected":"2 open source packages ship an affected version, including @backstage/plugin-scaffolder-backend. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-35926 in the wild and no public exploit code.","fix":"Upgrade @backstage/plugin-scaffolder-backend to 1.15.0 or later.","what":"CVE-2023-35926 is a high-severity code injection vulnerability in Linuxfoundation Backstage, published on 22 Jun 2023. An attacker needs administrator access to exploit it, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-35926 and fix it if it is affected.\n\nWhat it is: CVE-2023-35926 is a high-severity code injection vulnerability in Linuxfoundation Backstage, published on 22 Jun 2023. An attacker needs administrator access to exploit it, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2023-35926 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @backstage/plugin-scaffolder-backend (npm): affected all versions; fixed in 1.15.0\n- @backstage/plugin-scaffolder-backend (npm): affected all versions; fixed in 1.15.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-35926/ (Markdown: https://insights.sbomify.com/CVE-2023-35926/index.md)","id":"CVE-2023-35926","markdown":"https://insights.sbomify.com/CVE-2023-35926/index.md","name":"CVE-2023-35926","record":{"aliases":["GHSA-wg6p-jmpc-xjmr"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Backstage scaffolder plugin","requires_auth":"high_privilege","summary":"A malicious actor with write access to a scaffolder template can achieve remote code execution on the backend due to an insecure sandbox implementation.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"backstage","vendor":"linuxfoundation"}],"cvss":{"score":8.1,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"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`.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Insecure sandbox in Backstage Scaffolder plugin","id":"CVE-2023-35926","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":"linuxfoundation:backstage","products":["linuxfoundation:backstage"],"type":"code_injection","year":"2023"},"n_packages":2,"n_references":3,"next":{"headline":"Nextcloud system addressbooks can be modified by malicious trusted server","id":"CVE-2023-35927"},"packages":[{"ecosystem":"npm","fixed":["1.15.0"],"introduced":["0"],"last_affected":[],"package":"@backstage/plugin-scaffolder-backend","purl":null,"source":"GHSA-wg6p-jmpc-xjmr"},{"ecosystem":"npm","fixed":["1.15.0"],"introduced":["0"],"last_affected":[],"package":"@backstage/plugin-scaffolder-backend","purl":"pkg:npm/%40backstage/plugin-scaffolder-backend","source":"GHSA-wg6p-jmpc-xjmr"}],"prev":{"headline":"FastAsyncWorldEdit vulnerable to Uncontrolled Resource Consumption","id":"CVE-2023-35925"},"products":["backstage"],"published":"2023-06-22","related":[{"cvss_score":9.6,"headline":"Backstage: Sensitive information exposure in Scaffolder","id":"CVE-2026-106501","kev_date_added":null,"published":"2026-10-06"},{"cvss_score":8.8,"headline":"Backstage: Improper validation of TechDocs MkDocs configuration","id":"CVE-2026-106558","kev_date_added":null,"published":"2026-10-07"},{"cvss_score":8.8,"headline":"Backstage: Improper input validation in TechDocs MkDocs configuration","id":"CVE-2026-88064","kev_date_added":null,"published":"2026-09-16"},{"cvss_score":8.5,"headline":"Backstage: Improper input validation in Sentry scaffolder actions","id":"CVE-2026-106459","kev_date_added":null,"published":"2026-10-06"},{"cvss_score":8.5,"headline":"Backstage: Improper filesystem validation in Bitbucket pull-request scaffolder actions","id":"CVE-2026-106486","kev_date_added":null,"published":"2026-10-06"},{"cvss_score":8.5,"headline":"Backstage: Improper task state validation in Scaffolder backend","id":"CVE-2026-106500","kev_date_added":null,"published":"2026-10-06"},{"cvss_score":8.5,"headline":"Path Traversal in @backstage/plugin-scaffolder-backend","id":"CVE-2021-43783","kev_date_added":null,"published":"2021-11-29"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-12-05","vendors":["backstage"]},"summary":"A malicious actor with write access to a scaffolder template can achieve remote code execution on the backend due to an insecure sandbox implementation.","url":"https://insights.sbomify.com/CVE-2023-35926/"}