{"answers":{"affected":"2 open source packages ship an affected version, including @backstage/plugin-techdocs-backend. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-46976 in the wild and no public exploit code.","fix":"Upgrade @backstage/plugin-techdocs-backend to 1.10.13 or later.","what":"CVE-2024-46976 is a medium-severity cross-site scripting vulnerability in Linuxfoundation Backstage, published on 17 Sep 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-46976 and fix it if it is affected.\n\nWhat it is: CVE-2024-46976 is a medium-severity cross-site scripting vulnerability in Linuxfoundation Backstage, published on 17 Sep 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2024-46976 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @backstage/plugin-techdocs-backend (npm): affected all versions; fixed in 1.10.13\n- @backstage/plugin-techdocs-backend (npm): affected all versions; fixed in 1.10.13\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-46976/ (Markdown: https://insights.sbomify.com/CVE-2024-46976/index.md)","id":"CVE-2024-46976","markdown":"https://insights.sbomify.com/CVE-2024-46976/index.md","name":"CVE-2024-46976","record":{"aliases":["GHSA-5j94-f3mf-8685"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Backstage TechDocs plugin","requires_auth":"low_privilege","summary":"Attackers with storage bucket access can inject scripts into TechDocs content, executing them in victims' browsers via Backstage developer portals.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"backstage","vendor":"linuxfoundation"}],"cvss":{"score":6.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"},{"id":"CWE-693","name":"Protection Mechanism Failure"}],"description":"Backstage is an open framework for building developer portals. 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. This has been fixed in the 1.10.13 release of the `@backstage/plugin-techdocs-backend` package. users are advised to upgrade. There are no known workarounds for this vulnerability.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Circumvention of cross site scripting Protection in @backstage/plugin-techdocs-backend","id":"CVE-2024-46976","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":"linuxfoundation:backstage","products":["linuxfoundation:backstage"],"type":"xss","year":"2024"},"n_packages":2,"n_references":1,"next":{"headline":"OpenC3 COSMOS allows a path traversal via screen controller (`GHSL-2024-127`)","id":"CVE-2024-46977"},"packages":[{"ecosystem":"npm","fixed":["1.10.13"],"introduced":["0"],"last_affected":[],"package":"@backstage/plugin-techdocs-backend","purl":null,"source":"GHSA-5j94-f3mf-8685"},{"ecosystem":"npm","fixed":["1.10.13"],"introduced":["0"],"last_affected":[],"package":"@backstage/plugin-techdocs-backend","purl":"pkg:npm/%40backstage/plugin-techdocs-backend","source":"GHSA-5j94-f3mf-8685"}],"prev":{"headline":"GPU DDK - rgxfw_write_robustness_buffer allows arbitrary catreg set mapping","id":"CVE-2024-46975"},"products":["backstage"],"published":"2024-09-17","related":[{"cvss_score":9.6,"headline":"Backstage: Sensitive information exposure in Scaffolder","id":"CVE-2026-106501","kev_date_added":null,"published":"2026-10-06"},{"cvss_score":8.8,"headline":"Backstage: Improper validation of TechDocs MkDocs configuration","id":"CVE-2026-106558","kev_date_added":null,"published":"2026-10-07"},{"cvss_score":8.8,"headline":"Backstage: Improper input validation in TechDocs MkDocs configuration","id":"CVE-2026-88064","kev_date_added":null,"published":"2026-09-16"},{"cvss_score":8.5,"headline":"Backstage: Improper input validation in Sentry scaffolder actions","id":"CVE-2026-106459","kev_date_added":null,"published":"2026-10-06"},{"cvss_score":8.5,"headline":"Backstage: Improper filesystem validation in Bitbucket pull-request scaffolder actions","id":"CVE-2026-106486","kev_date_added":null,"published":"2026-10-06"},{"cvss_score":8.5,"headline":"Backstage: Improper task state validation in Scaffolder backend","id":"CVE-2026-106500","kev_date_added":null,"published":"2026-10-06"},{"cvss_score":8.5,"headline":"Path Traversal in @backstage/plugin-scaffolder-backend","id":"CVE-2021-43783","kev_date_added":null,"published":"2021-11-29"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-09-18","vendors":["backstage"]},"summary":"Attackers with storage bucket access can inject scripts into TechDocs content, executing them in victims' browsers via Backstage developer portals.","url":"https://insights.sbomify.com/CVE-2024-46976/"}