Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @backstage/plugin-scaffolder-backend
  4. ›
  5. CVE-2023-35926

CVE-2023-35926: Improper Control of Generation of Code ('Code Injection')

June 21, 2023 (updated June 22, 2023)

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.

References

  • github.com/advisories/GHSA-wg6p-jmpc-xjmr
  • github.com/backstage/backstage/commit/fb7375507d56faedcb7bb3665480070593c8949a
  • github.com/backstage/backstage/releases/tag/v1.15.0
  • github.com/backstage/backstage/security/advisories/GHSA-wg6p-jmpc-xjmr
  • nvd.nist.gov/vuln/detail/CVE-2023-35926

Code Behaviors & Features

Detect and mitigate CVE-2023-35926 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.15.0

Fixed versions

  • 1.15.0

Solution

Upgrade to version 1.15.0 or above.

Impact 9.9 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

npm/@backstage/plugin-scaffolder-backend/CVE-2023-35926.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:40 +0000.