CVE-2024-46976: @backstage/plugin techdocs backend @backstage/plugin-techdocs-backend Vulnerable To Circumvention Of Vulnerability

MODERATE
Advisory Identifier: GHSA-5j94-f3mf-8685
CVSS 6.5
CWE-693 CWE-79
Published
Advisory Summary

CVE-2024-46976 is a MODERATE (CVSS 6.5) @backstage/plugin-techdocs-backend vulnerable to circumvention of vulnerability (CWE-693: Protection Mechanism Failure) affecting @backstage/plugin techdocs backend libraries in the npm ecosystem. The issue involves @backstage/plugin-techdocs-backend vulnerable to circumvention of cross site scripting protection. Remediation is available by upgrading affected packages to version 1.10.13.

CVE-2024-46976 at a Glance

CVE Identifier CVE-2024-46976
GHSA Identifier GHSA-5j94-f3mf-8685
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-693: Protection Mechanism Failure
Affected Product @backstage/plugin techdocs backend
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 6.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2024-46976

To remediate this vulnerability, upgrade all affected @backstage/plugin techdocs backend 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-techdocs-backend fixed: 1.10.13
npm install @backstage/plugin-techdocs-backend@1.10.13
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-techdocs-backend

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2024-46976, inspect your project dependencies using npm:

npm ls @backstage/plugin-techdocs-backend

Analyze the terminal output to locate any version of @backstage/plugin techdocs backend in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.10.13), your application is affected.

Note: The npm ls @backstage/plugin-techdocs-backend 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-693: Protection Mechanism Failure, where the product does not use or incorrectly uses a protection mechanism that provides sufficient defense against directed attacks against the product. In @backstage/plugin techdocs backend, 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 An attacker with control of the contents of the TechDocs storage buckets is able to inject executable scripts in the TechDocs content that will be executed in the victim's browser when browsing documentation or navigating to an attacker provided link. ### Patches This has been fixed in the 1.10.13 release of the `@backstage/plugin-techdocs-backend` package. ### 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-46976 Affected @backstage/plugin techdocs backend Versions

1 component(s)
Fixed Versions:
1.10.13
Product / Package Ecosystem Affected Versions Fixed Version
@backstage/plugin-techdocs-backend
npm
< 1.10.13
1.10.13

References

Frequently Asked Questions

What is CVE-2024-46976?
CVE-2024-46976 is a security vulnerability in @backstage/plugin techdocs backend involving @backstage/plugin-techdocs-backend vulnerable to circumvention of cross site scripting protection under CWE-693: Protection Mechanism Failure.
Which @backstage/plugin techdocs backend versions are affected?
Affected versions include releases prior to 1.10.13 across affected packages: @backstage/plugin-techdocs-backend.
What version fixes CVE-2024-46976?
Upgrading to 1.10.13 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @backstage/plugin-techdocs-backend affected?
Yes, @backstage/plugin-techdocs-backend is affected in releases prior to 1.10.13. Upgrade your dependency to 1.10.13 or later.
What is the CVSS score of CVE-2024-46976?
CVE-2024-46976 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L.
What CWE is associated with CVE-2024-46976?
CVE-2024-46976 is classified under CWE-693: Protection Mechanism Failure (The product does not use or incorrectly uses a protection mechanism that provides sufficient defense against directed attacks against the product.).
How can I check npm dependencies for CVE-2024-46976?
Run the dependency tree command: 'npm ls @backstage/plugin-techdocs-backend'. 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-5j94-f3mf-8685",
  "modified" : "2024-09-17T21:31:28Z",
  "published" : "2024-09-17T21:31:28Z",
  "aliases" : [ "CVE-2024-46976" ],
  "summary" : "@backstage/plugin-techdocs-backend vulnerable to circumvention of cross site scripting protection",
  "details" : "### Impact\n\nAn attacker with control of the contents of the TechDocs storage buckets is able to inject executable scripts in the TechDocs content that will be executed in the victim's browser when browsing documentation or navigating to an attacker provided link.\n\n### Patches\n\nThis has been fixed in the 1.10.13 release of the `@backstage/plugin-techdocs-backend` package.\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)\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@backstage/plugin-techdocs-backend"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.10.13"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/backstage/backstage/security/advisories/GHSA-5j94-f3mf-8685"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-46976"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/backstage/backstage"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-693", "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-09-17T21:31:28Z",
    "nvd_published_at" : "2024-09-17T21:15:12Z"
  }
}