{"answers":{"affected":"6 open source packages ship an affected version, including @backstage/backend-common. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-26150 in the wild and no public exploit code.","fix":"Upgrade @backstage/backend-common to a fixed version for your release line: 0.19.10, 0.20.2 or 0.21.1.","what":"CVE-2024-26150 is a high-severity path traversal vulnerability in backstage, published on 23 Feb 2024. An attacker needs administrator access to exploit it, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-26150 and fix it if it is affected.\n\nWhat it is: CVE-2024-26150 is a high-severity path traversal vulnerability in backstage, published on 23 Feb 2024. An attacker needs administrator access to exploit it, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-26150 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @backstage/backend-common (npm): affected all versions; fixed in 0.19.10\n- @backstage/backend-common (npm): affected all versions; fixed in 0.19.10\n- @backstage/backend-common (npm): affected from 0.20.0; fixed in 0.20.2\n- @backstage/backend-common (npm): affected from 0.20.0; fixed in 0.20.2\n- @backstage/backend-common (npm): affected from 0.21.0; fixed in 0.21.1\n- @backstage/backend-common (npm): affected from 0.21.0; fixed in 0.21.1\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-26150/ (Markdown: https://insights.sbomify.com/CVE-2024-26150/index.md)","id":"CVE-2024-26150","markdown":"https://insights.sbomify.com/CVE-2024-26150/index.md","name":"CVE-2024-26150","record":{"aliases":["GHSA-2fc9-xpp8-2g9h"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Backstage backend library","requires_auth":"high_privilege","summary":"Attackers can exploit symlink injection to bypass path checks in Backstage backend libraries, potentially reading or modifying unauthorized files.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"backstage_backend-common","vendor":"linuxfoundation"}],"cvss":{"score":8.7,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"`@backstage/backend-common` is a common functionality library for backends for Backstage, an open platform for building developer portals. In `@backstage/backend-common` prior to versions 0.21.1, 0.20.2, and 0.19.10, paths checks with the `resolveSafeChildPath` utility were not exhaustive enough, leading to risk of path traversal vulnerabilities if symlinks can be injected by attackers. This issue is patched in `@backstage/backend-common` versions 0.21.1, 0.20.2, and 0.19.10.","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":"`@backstage/backend-common` vulnerable to path traversal through symlinks","id":"CVE-2024-26150","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"path_traversal","year":"2024"},"n_packages":6,"n_references":4,"next":{"headline":"Potentially untrusted input is rendered as HTML in final output","id":"CVE-2024-26151"},"packages":[{"ecosystem":"npm","fixed":["0.19.10"],"introduced":["0"],"last_affected":[],"package":"@backstage/backend-common","purl":null,"source":"GHSA-2fc9-xpp8-2g9h"},{"ecosystem":"npm","fixed":["0.19.10"],"introduced":["0"],"last_affected":[],"package":"@backstage/backend-common","purl":"pkg:npm/%40backstage/backend-common","source":"GHSA-2fc9-xpp8-2g9h"},{"ecosystem":"npm","fixed":["0.20.2"],"introduced":["0.20.0"],"last_affected":[],"package":"@backstage/backend-common","purl":null,"source":"GHSA-2fc9-xpp8-2g9h"},{"ecosystem":"npm","fixed":["0.20.2"],"introduced":["0.20.0"],"last_affected":[],"package":"@backstage/backend-common","purl":"pkg:npm/%40backstage/backend-common","source":"GHSA-2fc9-xpp8-2g9h"},{"ecosystem":"npm","fixed":["0.21.1"],"introduced":["0.21.0"],"last_affected":[],"package":"@backstage/backend-common","purl":null,"source":"GHSA-2fc9-xpp8-2g9h"},{"ecosystem":"npm","fixed":["0.21.1"],"introduced":["0.21.0"],"last_affected":[],"package":"@backstage/backend-common","purl":"pkg:npm/%40backstage/backend-common","source":"GHSA-2fc9-xpp8-2g9h"}],"prev":{"headline":"Vyper _abi_decode Memory Overflow","id":"CVE-2024-26149"},"products":["backstage"],"published":"2024-02-23","related":[],"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-08-01","vendors":["backstage"]},"summary":"Attackers can exploit symlink injection to bypass path checks in Backstage backend libraries, potentially reading or modifying unauthorized files.","url":"https://insights.sbomify.com/CVE-2024-26150/"}