GHSA-rp7v-4384-hfrp: k8sGPT has Prompt Injection through its k8sGPT-Operator
Summary In the auto-remediation pipeline, objecttoexecution.go was deserializing the AI-generated YAML directly into a Deployment object, but there was lack of validation from the original Deployment object. Details This issue was fixed after coordination with Alex Jones. PoC To minimize the impact, the PoC of this vulnerability wasn't released, but was shared with the maintainers.
Published Apr 24, 2026
Affected packages
github.com/k8sgpt-ai/k8sgpt
- Ecosystem
- Go
- Affected
- < 0.4.32
- Fixed in
- 0.4.32
- Check
go list -m github.com/k8sgpt-ai/k8sgpt
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Summary
In the auto-remediation pipeline, object_to_execution.go was deserializing the AI-generated YAML directly into a Deployment object, but there was lack of validation from the original Deployment object.
Details
This issue was fixed after coordination with Alex Jones.
PoC
To minimize the impact, the PoC of this vulnerability wasn't released, but was shared with the maintainers.
Credited to haruki3hhh.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
