CVE-2024-46976: @backstage/plugin techdocs backend @backstage/plugin-techdocs-backend Vulnerable To Circumvention Of Vulnerability
MODERATECVE-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
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).
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.
npm install @backstage/plugin-techdocs-backend@1.10.13
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
CVE-2024-46976 Affected @backstage/plugin techdocs backend Versions
1 component(s)| 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?
Which @backstage/plugin techdocs backend versions are affected?
What version fixes CVE-2024-46976?
Is @backstage/plugin-techdocs-backend affected?
What is the CVSS score of CVE-2024-46976?
What CWE is associated with CVE-2024-46976?
How can I check npm dependencies for CVE-2024-46976?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}