GHSA-r9ph-3637-55px: Input Validation
Impact
An authenticated user with Kubernetes read permissions could access Kubernetes workload data beyond their intended scope by supplying crafted entity data to the deprecated services endpoint. The exposure is limited to read-only access to Kubernetes object metadata across configured clusters.
Patches
Patched in @backstage/plugin-kubernetes-backend version 0.21.8.
Workarounds
- Disable the deprecated /services/:serviceId route by deploying a custom Kubernetes router that omits it. - Restrict access to the kubernetes.resources.read permission to limit the set of users who can reach the endpoint.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
npm/@backstage/plugin-kubernetes-backendto a version that resolves this vulnerability.Fixed in 0.21.8 - Upgrade
Upgrade
@backstage/plugin-kubernetes-backendto a version that resolves this vulnerability.Fixed in 0.21.8 - Configuration
Deploy a custom Kubernetes router that omits the deprecated /services/:serviceId route.
Kubernetes router deprecated /services/:serviceId route = disabled - Compensating control
Restrict access to the kubernetes.resources.read permission to limit which users can reach the endpoint.