Vulnerabilities in pkg:golang/github.com/k8sgpt-ai/k8sgpt
PACKAGEGHSA-rp7v-4384-hfrp is a HIGH k8sgpt has prompt injection through vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Github.com/k8sgpt ai/k8sgpt libraries in the Go ecosystem. The issue involves k8sgpt has prompt injection through its k8sgpt-operator. Remediation is available by upgrading affected packages to version 0.4.32.
pkg:golang/github.com/k8sgpt-ai/k8sgpt
Vulnerability advisories affecting package pkg:golang/github.com/k8sgpt-ai/k8sgpt. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-rp7v-4384-hfrp | - | HIGH | k8sGPT has Prompt Injection through its k8sGPT-Operator |
| GHSA-85rg-8m6h-825p | - | HIGH | Vulnerabilities with the k8sGPT |
GHSA-rp7v-4384-hfrp at a Glance
How to Fix GHSA-rp7v-4384-hfrp
To remediate this vulnerability, upgrade all affected Github.com/k8sgpt ai/k8sgpt dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/k8sgpt-ai/k8sgpt to 0.4.32
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/k8sgpt-ai/k8sgpt
How to Check if You Are Affected
To determine whether your application is affected by GHSA-rp7v-4384-hfrp, inspect your project dependencies for Github.com/k8sgpt ai/k8sgpt:
inspect dependencies for github.com/k8sgpt-ai/k8sgpt
Analyze the terminal output to locate any version of Github.com/k8sgpt ai/k8sgpt in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.4.32), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. In Github.com/k8sgpt ai/k8sgpt, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-rp7v-4384-hfrp Affected Github.com/k8sgpt ai/k8sgpt Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/k8sgpt-ai/k8sgpt
|
Go |
< 0.4.32
|
0.4.32
|
References
Frequently Asked Questions
What is GHSA-rp7v-4384-hfrp?
Which Github.com/k8sgpt ai/k8sgpt versions are affected?
What version fixes GHSA-rp7v-4384-hfrp?
Is github.com/k8sgpt-ai/k8sgpt affected?
What CWE is associated with GHSA-rp7v-4384-hfrp?
How can I check Go dependencies for GHSA-rp7v-4384-hfrp?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-rp7v-4384-hfrp",
"modified" : "2026-04-24T16:37:12Z",
"published" : "2026-04-24T16:37:12Z",
"aliases" : [ ],
"summary" : "k8sGPT has Prompt Injection through its k8sGPT-Operator",
"details" : "### Summary\nIn 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.\n\n### Details\nThis issue was fixed after coordination with Alex Jones.\n\n### PoC\nTo minimize the impact, the PoC of this vulnerability wasn't released, but was shared with the maintainers.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/k8sgpt-ai/k8sgpt"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.4.32"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/k8sgpt-ai/k8sgpt/security/advisories/GHSA-rp7v-4384-hfrp"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/k8sgpt-ai/k8sgpt"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20", "CWE-502", "CWE-915" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-04-24T16:37:12Z",
"nvd_published_at" : null
}
}