CVE-2024-53983: @backstage/plugin scaffolder node Backstage Scaffolder Plugin Vulnerable To Vulnerability

MODERATE
Advisory Identifier: GHSA-qmc2-jpr5-7rg9
CVSS 5.4
CWE-918
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2024-53983
GHSA Identifier GHSA-qmc2-jpr5-7rg9
Severity MODERATE
CVSS v3.1 Base Score 5.4
CWE Classification CWE-918: Server-Side Request Forgery (SSRF)
Affected Product @backstage/plugin scaffolder node
Package Ecosystem npm
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required High (PR:H)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (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.

@backstage/plugin-scaffolder-node fixed: 0.4.12
npm install @backstage/plugin-scaffolder-node@0.4.12
@backstage/plugin-scaffolder-node fixed: 0.5.1
npm install @backstage/plugin-scaffolder-node@0.5.1
@backstage/plugin-scaffolder-node fixed: 0.6.1
npm install @backstage/plugin-scaffolder-node@0.6.1
Verify Direct and Transitive Dependencies

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

### 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](https://github.com/backstage/backstage) Visit our Discord, linked to in [Backstage README](https://github.com/backstage/backstage)

CVE-2024-53983 Affected @backstage/plugin scaffolder node Versions

3 component(s)
Fixed Versions:
0.4.120.5.10.6.1
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?
CVE-2024-53983 is a security vulnerability in @backstage/plugin scaffolder node involving Backstage Scaffolder plugin vulnerable to Server-Side Request Forgery under CWE-918: Server-Side Request Forgery (SSRF).
Which @backstage/plugin scaffolder node versions are affected?
Affected versions include releases prior to 0.4.12, 0.5.1, 0.6.1 across affected packages: @backstage/plugin-scaffolder-node.
What version fixes CVE-2024-53983?
Upgrading to 0.4.12, 0.5.1, 0.6.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @backstage/plugin-scaffolder-node affected?
Yes, @backstage/plugin-scaffolder-node is affected in releases prior to 0.4.12, 0.5.1, 0.6.1. Upgrade your dependency to 0.4.12, 0.5.1, 0.6.1 or later.
What is the CVSS score of CVE-2024-53983?
CVE-2024-53983 has a CVSS v3.1 base score of 5.4 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:N/A:N.
What CWE is associated with CVE-2024-53983?
CVE-2024-53983 is classified under CWE-918: Server-Side Request Forgery (SSRF) (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.).
How can I check npm dependencies for CVE-2024-53983?
Run the dependency tree command: 'npm ls @backstage/plugin-scaffolder-node'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}