# GHSA-2g8g-63j4-9w3r: RCE vulnerability affecting v1beta3 templates in @backstage/plugin-scaffolder-backend

- Severity: High (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2021-12-01T18:29:12.000Z
- Modified: 2021-11-29T19:39:57.000Z

## Description

The templating library used by the scaffolder backend assumes that templates are trusted which is an undesired property of the scaffolder-backend. This has now been mitigated by sandboxing the template code execution.

### 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 patched in version `0.15.14` of `@backstage/plugin-scaffolder-backend`.


### For more information
If you have any questions or comments about this advisory:

* Open an issue in the [Backstage repository](https://github.com/backstage/backstage)
* Visit our chat, linked to in [Backstage README](https://github.com/backstage/backstage)

(As written by GitHub Advisory Database.)

## Affected

- @backstage/plugin-scaffolder-backend (npm): before 0.15.14

## References

- <https://github.com/backstage/backstage/security/advisories/GHSA-2g8g-63j4-9w3r> (web)
- <https://github.com/backstage/backstage> (package)

## Sources

- GitHub Advisory Database: [GHSA-2g8g-63j4-9w3r](https://github.com/advisories/GHSA-2g8g-63j4-9w3r), CC-BY-4.0, modified 2021-11-29

---

Page: https://cve.day/GHSA-2g8g-63j4-9w3r · Whole record: https://cve.day/GHSA-2g8g-63j4-9w3r.json · Rebuilt by cve.day 2026-11-25T22:56:43.611Z
