CVE-2024-53983: @backstage/plugin scaffolder node Backstage Scaffolder Plugin Vulnerable To Vulnerability
MODERATECVE-2024-53983 is a MODERATE (CVSS 5.4) backstage scaffolder plugin vulnerable to vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting @backstage/plugin scaffolder node libraries in the npm ecosystem. The issue involves backstage scaffolder plugin vulnerable to server-side request forgery. Remediation is available by upgrading affected packages to version 0.4.12, 0.5.1, 0.6.1.
CVE-2024-53983 at a Glance
Security Impact
CVSS: 5.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:N/A:N).
How to Fix CVE-2024-53983
To remediate this vulnerability, upgrade all affected @backstage/plugin scaffolder node dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install @backstage/plugin-scaffolder-node@0.4.12
npm install @backstage/plugin-scaffolder-node@0.5.1
npm install @backstage/plugin-scaffolder-node@0.6.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @backstage/plugin-scaffolder-node
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2024-53983, inspect your project dependencies using npm:
npm ls @backstage/plugin-scaffolder-node
Analyze the terminal output to locate any version of @backstage/plugin scaffolder node in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.4.12), your application is affected.
Note: The npm ls @backstage/plugin-scaffolder-node command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-918: Server-Side Request Forgery (SSRF), where the web server receives a url or similar request from an upstream component and retrieves the contents of this url, but it does not sufficiently ensure that the request is being sent to the expected destination. In @backstage/plugin scaffolder node, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-53983 Affected @backstage/plugin scaffolder node Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@backstage/plugin-scaffolder-node
|
npm |
< 0.4.12
|
0.4.12
|
|
@backstage/plugin-scaffolder-node
|
npm |
≥ 0.5.0
< 0.5.1
All 1 versions
0.5.0
|
0.5.1
|
|
@backstage/plugin-scaffolder-node
|
npm |
≥ 0.6.0
< 0.6.1
All 1 versions
0.6.0
|
0.6.1
|
References
Frequently Asked Questions
What is CVE-2024-53983?
Which @backstage/plugin scaffolder node versions are affected?
What version fixes CVE-2024-53983?
Is @backstage/plugin-scaffolder-node affected?
What is the CVSS score of CVE-2024-53983?
What CWE is associated with CVE-2024-53983?
How can I check npm dependencies for CVE-2024-53983?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-qmc2-jpr5-7rg9",
"modified" : "2024-12-02T21:36:21Z",
"published" : "2024-12-02T21:36:21Z",
"aliases" : [ "CVE-2024-53983" ],
"summary" : "Backstage Scaffolder plugin vulnerable to Server-Side Request Forgery",
"details" : "### Impact\n\nA 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.\n\n### Patches\n\nThe 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.\n\n### Workarounds\n\nUsers can ensure that templates do not change git config.\n\n### References\n\nIf you have any questions or comments about this advisory:\n\nOpen an issue in the [Backstage repository](https://github.com/backstage/backstage)\nVisit our Discord, linked to in [Backstage README](https://github.com/backstage/backstage)",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:N/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:P/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@backstage/plugin-scaffolder-node"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.4.12"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@backstage/plugin-scaffolder-node"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.5.0"
}, {
"fixed" : "0.5.1"
} ]
} ],
"versions" : [ "0.5.0" ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@backstage/plugin-scaffolder-node"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.6.0"
}, {
"fixed" : "0.6.1"
} ]
} ],
"versions" : [ "0.6.0" ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/backstage/backstage/security/advisories/GHSA-qmc2-jpr5-7rg9"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-53983"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/backstage/backstage"
}, {
"type" : "WEB",
"url" : "https://github.com/backstage/backstage/tree/master/plugins/scaffolder-node"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-918" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-12-02T21:36:21Z",
"nvd_published_at" : "2024-11-29T19:15:10Z"
}
}