{"answers":{"affected":"3 open source packages ship an affected version, including github.com/cyphar/filepath-securejoin.","exploited":"There is no known exploitation of GHSA-6xv5-86q9-7xr8 in the wild and no public exploit code.","fix":"Upgrade github.com/cyphar/filepath-securejoin to 0.2.4 or later.","what":"GHSA-6xv5-86q9-7xr8 is a path traversal vulnerability in github.com/cyphar/filepath-securejoin, published on 7 Sep 2023."},"fix_prompt":"Check this codebase for GHSA-6xv5-86q9-7xr8 and fix it if it is affected.\n\nWhat it is: GHSA-6xv5-86q9-7xr8 is a path traversal vulnerability in github.com/cyphar/filepath-securejoin, published on 7 Sep 2023. \nExploitation: There is no known exploitation of GHSA-6xv5-86q9-7xr8 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/cyphar/filepath-securejoin (Go): affected all versions; fixed in 0.2.4\n- github.com/cyphar/filepath-securejoin (Go): affected all versions; fixed in 0.2.4\n- github.com/cyphar/filepath-securejoin (Go): affected all versions; fixed in 0.2.4\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-6xv5-86q9-7xr8/ (Markdown: https://insights.sbomify.com/GHSA-6xv5-86q9-7xr8/index.md)","id":"GHSA-6xv5-86q9-7xr8","markdown":"https://insights.sbomify.com/GHSA-6xv5-86q9-7xr8/index.md","name":"GHSA-6xv5-86q9-7xr8","record":{"aliases":["GO-2023-2048"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","data_modify"],"network_reachable":"unknown","non_default_config":false,"product_category":"Go path security library","requires_auth":"none","summary":"A path traversal vulnerability in the Go filepath-securejoin library allows attackers to access files outside the intended root directory on Windows systems.","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\nFor Windows users of `github.com/cyphar/filepath-securejoin`, until v0.2.4 it was possible for certain rootfs and path combinations (in particular, where a malicious Unix-style `/`-separated unsafe path was used with a Windows-style rootfs path) to result in generated paths that were outside of the provided rootfs.\n\nIt is unclear to what extent this has a practical impact on real users, but given the possible severity of the issue we have released an emergency patch release that resolves this issue.\n\nThanks to  @pjbgf for discovering, debugging, and fixing this issue (as well as writing some tests for it).\n\n### Patches\nc121231e1276e11049547bee5ce68d5a2cfe2d9b is the patch fixing this issue. v0.2.4 contains the fix.\n\n### Workarounds\nUsers could use `filepath.FromSlash()` on all unsafe paths before passing them to `filepath-securejoin`.\n\n### References\nSee #9.","ecosystems":["Go"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"SecureJoin: on windows, paths outside of the rootfs could be inadvertently produced","id":"GHSA-6xv5-86q9-7xr8","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Go","product":null,"products":[],"type":"path_traversal","year":"2023"},"n_packages":3,"n_references":null,"packages":[{"ecosystem":"Go","fixed":["0.2.4"],"introduced":["0"],"last_affected":[],"package":"github.com/cyphar/filepath-securejoin","purl":null,"source":"GHSA-6xv5-86q9-7xr8"},{"ecosystem":"Go","fixed":["0.2.4"],"introduced":["0"],"last_affected":[],"package":"github.com/cyphar/filepath-securejoin","purl":"pkg:golang/github.com/cyphar/filepath-securejoin","source":"GHSA-6xv5-86q9-7xr8"},{"ecosystem":"Go","fixed":["0.2.4"],"introduced":["0"],"last_affected":[],"package":"github.com/cyphar/filepath-securejoin","purl":"pkg:golang/github.com/cyphar/filepath-securejoin","source":"GO-2023-2048"}],"products":null,"published":"2023-09-07","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"A path traversal vulnerability in the Go filepath-securejoin library allows attackers to access files outside the intended root directory on Windows systems.","url":"https://insights.sbomify.com/GHSA-6xv5-86q9-7xr8/"}