Headline
GHSA-qmc2-jpr5-7rg9: Backstage Scaffolder plugin vulnerable to Server-Side Request Forgery
Impact
A vulnerability is identified in Backstage Scaffolder template functionality where Server-Side Template Injection (SSTI) can be exploited to perform Git config injection. The vulnerability allows an attacker to capture privileged git tokens used by the Backstage Scaffolder plugin. With these tokens, unauthorized access to sensitive resources in git can be achieved. The impact is considered medium severity as the Backstage Threat Model recommends restricting access to adding and editing templates in the Backstage Catalog plugin.
Patches
The issue has been resolved in versions v0.4.12
, v0.5.1
and v0.6.1
of the @backstage/plugin-scaffolder-node
package. Users are encouraged to upgrade to this version to mitigate the vulnerability.
Workarounds
Users can ensure that templates do not change git config.
References
If you have any questions or comments about this advisory:
Open an issue in the Backstage repository Visit our Discord, linked to in Backstage README
- GitHub Advisory Database
- GitHub Reviewed
- CVE-2024-53983
Backstage Scaffolder plugin vulnerable to Server-Side Request Forgery
Moderate severity GitHub Reviewed Published Nov 29, 2024 in backstage/backstage • Updated Dec 2, 2024
Package
npm @backstage/plugin-scaffolder-node (npm)
Affected versions
< 0.4.12
= 0.5.0
= 0.6.0
Patched versions
0.4.12
0.5.1
0.6.1
Impact
A vulnerability is identified in Backstage Scaffolder template functionality where Server-Side Template Injection (SSTI) can be exploited to perform Git config injection. The vulnerability allows an attacker to capture privileged git tokens used by the Backstage Scaffolder plugin. With these tokens, unauthorized access to sensitive resources in git can be achieved. The impact is considered medium severity as the Backstage Threat Model recommends restricting access to adding and editing templates in the Backstage Catalog plugin.
Patches
The issue has been resolved in versions v0.4.12, v0.5.1 and v0.6.1 of the @backstage/plugin-scaffolder-node package. Users are encouraged to upgrade to this version to mitigate the vulnerability.
Workarounds
Users can ensure that templates do not change git config.
References
If you have any questions or comments about this advisory:
Open an issue in the Backstage repository
Visit our Discord, linked to in Backstage README
References
- GHSA-qmc2-jpr5-7rg9
- https://nvd.nist.gov/vuln/detail/CVE-2024-53983
- https://github.com/backstage/backstage/tree/master/plugins/scaffolder-node
Published to the GitHub Advisory Database
Dec 2, 2024