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

Published Jun 21, 2023
·
Updated

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.

Other sources

The Backstage scaffolder-backend plugin uses a templating library that requires a 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.

Impact

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.

Patches

This is vulnerability is fixed in version 1.15.0 of @backstage/plugin-scaffolder-backend.

Workarounds

Note that the Backstage Threat Model states that scaffolder templates are considered to be a sensitive area that with the recommendation that you control access and perform manual reviews of changes to the scaffolder templates. The exploit is of a nature where it is easily discoverable in manual review.

Affected Software

2 affected componentsFixes available
npm/@backstage/plugin-scaffolder-backend<1.15.0
1.15.0
linuxfoundation Backstage<1.15.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/@backstage/plugin-scaffolder-backend to a version that resolves this vulnerability.

    Fixed in 1.15.0
  2. Upgrade

    Upgrade @backstage/plugin-scaffolder-backend to a version that resolves this vulnerability.

    Fixed in 1.15.0
  3. Compensating control

    Control access to Backstage scaffolder templates and perform manual reviews of changes to the scaffolder templates (templates are considered a sensitive area per the Backstage Threat Model).

Event History

Jun 21, 2023
Advisory Published
10:00 PM
Jun 22, 2023
CVE Published
via MITRE·01:29 PM
Data Sourced
via MITRE·01:29 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·02:15 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2023-35926?

CVE-2023-35926 has been assessed with a high severity due to its potential for code injection risk.

2

How do I fix CVE-2023-35926?

To mitigate CVE-2023-35926, update the Backstage scaffolder-backend plugin to version 1.15.0 or higher.

3

What components are affected by CVE-2023-35926?

CVE-2023-35926 affects the Backstage scaffolder-backend plugin and versions prior to 1.15.0.

4

Is CVE-2023-35926 exploitable in production environments?

Yes, CVE-2023-35926 is exploitable in production environments if the vulnerable versions are in use.

5

What is the background of CVE-2023-35926?

CVE-2023-35926 involves a vulnerability in the templating library used by the Backstage scaffolder-backend plugin, which previously relied on the 'vm2' sandbox for code execution.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203