Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS1xbWMyLWpwcjUtN3JnOc4ABB_p
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
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1xbWMyLWpwcjUtN3JnOc4ABB_p
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: 2 months ago
Updated: 2 months ago
CVSS Score: 5.4
CVSS vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:N/A:N
EPSS Percentage: 0.00043
EPSS Percentile: 0.10511
Identifiers: GHSA-qmc2-jpr5-7rg9, CVE-2024-53983
References:
- https://github.com/backstage/backstage/security/advisories/GHSA-qmc2-jpr5-7rg9
- https://nvd.nist.gov/vuln/detail/CVE-2024-53983
- https://github.com/backstage/backstage/tree/master/plugins/scaffolder-node
- https://github.com/advisories/GHSA-qmc2-jpr5-7rg9
Blast Radius: 9.3
Affected Packages
npm:@backstage/plugin-scaffolder-node
Dependent packages: 32Dependent repositories: 52
Downloads: 260,182 last month
Affected Version Ranges: = 0.6.0, = 0.5.0, < 0.4.12
Fixed in: 0.6.1, 0.5.1, 0.4.12
All affected versions: 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.2.0, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.2.5, 0.2.6, 0.2.7, 0.2.8, 0.2.9, 0.2.10, 0.3.0, 0.3.1, 0.3.2, 0.3.3, 0.4.0, 0.4.1, 0.4.2, 0.4.3, 0.4.4, 0.4.5, 0.4.6, 0.4.7, 0.4.8, 0.4.9, 0.4.10, 0.4.11, 0.5.0, 0.6.0
All unaffected versions: 0.4.12, 0.5.1, 0.6.1