CVE-2023-35926: Backstage @backstage/plugin-scaffolder-backend - Template Injection
- Cve: CVE-2023-35926
- Name: Backstage @backstage/plugin-scaffolder-backend - Template Injection
- 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`.
- Impact: Attackers with write access can execute arbitrary code on the backend, potentially leading to full system compromise.
- Remediation: Update to version 1.15.0 of @backstage/plugin-scaffolder-backend.
- Vulnerability type: template_injection
- Vulnerability impact: remote_code_execution
- Requirement type: admin_privileges
- Requirements: Attacker needs write access to a registered scaffolder template
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.9
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- Epss score: 0.01888
- Epss percentile: 0.80076
- Assignee: [email protected]
- Published at: 2023-06-22T14:15:09Z
- Age in days: 1251
- Modified at: 2026-06-17T06:05:28Z
- Patch available: yes
- References total: 3
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2023-35926
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
Cwe
| Id | Name |
|---|---|
| CWE-94 | Improper Control of Generation of Code |
Hackerone
- Reports: 1
- Rank: 5211
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| linuxfoundation:backstage | < 1.15.0 | no | nvd | /v1/products/linuxfoundation/backstage |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| backstage/backstage | commit, package, releases, security_advisory | yes | /v1/repositories/backstage/backstage |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Authentication required: yes
- Hackerone reports: 1
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, exposed hosts