{"answers":{"affected":"4 open source packages ship an affected version, including @backstage/plugin-techdocs-node and @backstage/techdocs-common.","exploited":"There is no known exploitation of GHSA-4jqc-jvh2-pxg9 in the wild and no public exploit code.","fix":"Upgrade @backstage/plugin-techdocs-node to 1.1.2 or later.","what":"GHSA-4jqc-jvh2-pxg9 is a path traversal vulnerability in @backstage/plugin-techdocs-node, published on 17 Jun 2022. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-4jqc-jvh2-pxg9 and fix it if it is affected.\n\nWhat it is: GHSA-4jqc-jvh2-pxg9 is a path traversal vulnerability in @backstage/plugin-techdocs-node, published on 17 Jun 2022. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of GHSA-4jqc-jvh2-pxg9 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @backstage/plugin-techdocs-node (npm): affected all versions; fixed in 1.1.2\n- @backstage/plugin-techdocs-node (npm): affected all versions; fixed in 1.1.2\n- @backstage/techdocs-common (npm): affected all versions; fixed in 0.11.16\n- @backstage/techdocs-common (npm): affected all versions; fixed in 0.11.16\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/GHSA-4jqc-jvh2-pxg9/ (Markdown: https://insights.sbomify.com/GHSA-4jqc-jvh2-pxg9/index.md)","id":"GHSA-4jqc-jvh2-pxg9","markdown":"https://insights.sbomify.com/GHSA-4jqc-jvh2-pxg9/index.md","name":"GHSA-4jqc-jvh2-pxg9","record":{"aliases":[],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["data_modify"],"network_reachable":"yes","non_default_config":true,"product_category":"Backstage TechDocs backend","requires_auth":"low_privilege","summary":"A malicious actor with catalog registration rights can write files to arbitrary paths on the TechDocs backend host when using local publisher configuration.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### Impact\nA malicious actor with the ability to register entities in the Software Catalog is able to write files to arbitrary paths on the techdocs backend host instance when `techdocs.publisher.type` is set to `local`.\n\nThis vulnerability is mitigated by the fact that the Software Catalog must be configured with non-standard field format validators and/or non-standard entity policies.\n\n### Patches\nThose affected are advised to upgrade to `@backstage/plugin-techdocs-node` version `1.1.2` or higher.\n\n### Workarounds\nIf patching or upgrading is not possible, it would be sufficient to update any custom Catalog field format validators and/or custom entity policies to disallow entity names, kinds, and namespaces containing `..`\n\n\u003c!--\n### References\ntodo: Link to blog post / published report.\n--\u003e\n\n### For more information\nIf you have any questions or comments about this advisory:\n\n- Open an issue in the [Backstage repository](https://github.com/backstage/backstage)\n- Visit our chat, linked to in the [Backstage README](https://github.com/backstage/backstage)","ecosystems":["npm"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"Path traversal for local publishers in TechDocs backend","id":"GHSA-4jqc-jvh2-pxg9","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"npm","product":null,"products":[],"type":"path_traversal","year":"2022"},"n_packages":4,"n_references":null,"packages":[{"ecosystem":"npm","fixed":["1.1.2"],"introduced":["0"],"last_affected":[],"package":"@backstage/plugin-techdocs-node","purl":null,"source":"GHSA-4jqc-jvh2-pxg9"},{"ecosystem":"npm","fixed":["1.1.2"],"introduced":["0"],"last_affected":[],"package":"@backstage/plugin-techdocs-node","purl":"pkg:npm/%40backstage/plugin-techdocs-node","source":"GHSA-4jqc-jvh2-pxg9"},{"ecosystem":"npm","fixed":["0.11.16"],"introduced":["0"],"last_affected":[],"package":"@backstage/techdocs-common","purl":null,"source":"GHSA-4jqc-jvh2-pxg9"},{"ecosystem":"npm","fixed":["0.11.16"],"introduced":["0"],"last_affected":[],"package":"@backstage/techdocs-common","purl":"pkg:npm/%40backstage/techdocs-common","source":"GHSA-4jqc-jvh2-pxg9"}],"products":null,"published":"2022-06-17","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"A malicious actor with catalog registration rights can write files to arbitrary paths on the TechDocs backend host when using local publisher configuration.","url":"https://insights.sbomify.com/GHSA-4jqc-jvh2-pxg9/"}