{"answers":{"affected":"3 open source packages ship an affected version, including github.com/kcp-dev/kcp.","exploited":"There is no known exploitation of GHSA-q6hv-wcjr-wp8h in the wild and no public exploit code.","fix":"Upgrade github.com/kcp-dev/kcp to 0.28.3 or later.","what":"GHSA-q6hv-wcjr-wp8h is a missing authorization vulnerability in github.com/kcp-dev/kcp, published on 26 Sep 2025. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-q6hv-wcjr-wp8h and fix it if it is affected.\n\nWhat it is: GHSA-q6hv-wcjr-wp8h is a missing authorization vulnerability in github.com/kcp-dev/kcp, published on 26 Sep 2025. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of GHSA-q6hv-wcjr-wp8h in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/kcp-dev/kcp (Go): affected all versions; fixed in 0.28.3\n- github.com/kcp-dev/kcp (Go): affected all versions; fixed in 0.28.3\n- github.com/kcp-dev/kcp (Go): affected all versions; fixed in 0.28.3\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-q6hv-wcjr-wp8h/ (Markdown: https://insights.sbomify.com/GHSA-q6hv-wcjr-wp8h/index.md)","id":"GHSA-q6hv-wcjr-wp8h","markdown":"https://insights.sbomify.com/GHSA-q6hv-wcjr-wp8h/index.md","name":"GHSA-q6hv-wcjr-wp8h","record":{"aliases":["GO-2025-3985"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["privilege_escalation","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Kubernetes control plane","requires_auth":"low_privilege","summary":"Attackers with virtual workspace access can bypass LogicalCluster initialization checks, potentially skipping security or billing integrations.","user_interaction":"not_required","vuln_class":"missing_authorization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### Impact\n\nBecause UPDATE validation is not being applied, it is possible for an actor with access to an instance of the [initializingworkspaces virtual workspace](https://docs.kcp.io/kcp/latest/concepts/workspaces/workspace-initialization/) to run arbitrary patches on the status field of `LogicalCluster` objects while the workspace is initializing.\n\nThis allows to add or remove any initializers as well as changing the phase of a `LogicalCluster` (to \"Ready\" for example).\n\nAs this effectively allows to skip certain initializers or the entire initialization phase, potential integrations with external systems such as billing or security could be affected. Their initializers could be skipped by a `WorkspaceType` that adds another initializer and grants permissions to the virtual workspace to a rogue or compromised entity.\n\n_Who is impacted?_\n\n* Impacts other owners of `WorkspaceTypes` with initializers that are inherited by other `WorkspaceTypes`.\n* Impacts developers using the `virtual/framework` package to create their own virtualworkspaces if they are using UpdateFuncs in their custom storageWrappers.\n\n### Details\n\nThe issue occurs because the [rest.ValidateObjectUpdateFunc](https://github.com/kcp-dev/kcp/blob/cli/v0.28.1/pkg/virtual/framework/forwardingregistry/store.go#L174) is not being called within the DefaultDynamicDelegatedStoreFuncs. As a result, the intended status overwrite protection from initializers never gets called, allowing arbitrary logicalcluster status patches.\n\n### Patches\n\nThe problem has been patched in #3599 and is available in kcp 0.28.3 and higher.\n\n### Workarounds\n\n- Further limit access to the `initialize` verb on `WorkspaceType` objects (see [documentation](https://docs.kcp.io/kcp/v0.28/concepts/workspaces/workspace-initialization/#enforcing-permissions-for-initializers) for details).\n- Only use trusted `WorkspaceType` objects.\n\n### References\n\nSee the pull request (#3599).","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":"Impact Because UPDATE validation is not being applied, it is possible for an actor with access to an instance of the [initializingworksp","id":"GHSA-q6hv-wcjr-wp8h","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Go","product":null,"products":[],"type":"missing_authorization","year":"2025"},"n_packages":3,"n_references":null,"packages":[{"ecosystem":"Go","fixed":["0.28.3"],"introduced":["0"],"last_affected":[],"package":"github.com/kcp-dev/kcp","purl":null,"source":"GHSA-q6hv-wcjr-wp8h"},{"ecosystem":"Go","fixed":["0.28.3"],"introduced":["0"],"last_affected":[],"package":"github.com/kcp-dev/kcp","purl":"pkg:golang/github.com/kcp-dev/kcp","source":"GHSA-q6hv-wcjr-wp8h"},{"ecosystem":"Go","fixed":["0.28.3"],"introduced":["0"],"last_affected":[],"package":"github.com/kcp-dev/kcp","purl":"pkg:golang/github.com/kcp-dev/kcp","source":"GO-2025-3985"}],"products":null,"published":"2025-09-26","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":"Attackers with virtual workspace access can bypass LogicalCluster initialization checks, potentially skipping security or billing integrations.","url":"https://insights.sbomify.com/GHSA-q6hv-wcjr-wp8h/"}