Vulnerabilities in pkg:golang/github.com/go-kratos/kratos/v2
PACKAGECVE-2026-6993 is a MODERATE (CVSS 5.3) kratos has a confused deputy vulnerability (CWE-441: Unintended Proxy or Intermediary ('Confused Deputy')) affecting Github.com/go kratos/kratos/v2 libraries in the Go ecosystem. The issue involves kratos has a confused deputy issue. Remediation is available in the latest vendor maintenance releases.
pkg:golang/github.com/go-kratos/kratos/v2
Vulnerability advisories affecting package pkg:golang/github.com/go-kratos/kratos/v2. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-jj45-xvq5-rhh9 | CVE-2026-6993 | MODERATE | Kratos has a Confused Deputy issue |
CVE-2026-6993 at a Glance
Security Impact
CVSS: 5.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N).
How to Fix CVE-2026-6993
To remediate this vulnerability, upgrade all affected Github.com/go kratos/kratos/v2 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/go-kratos/kratos/v2 to Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/go-kratos/kratos/v2
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-6993, inspect your project dependencies for Github.com/go kratos/kratos/v2:
inspect dependencies for github.com/go-kratos/kratos/v2
Analyze the terminal output to locate any version of Github.com/go kratos/kratos/v2 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), 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-441: Unintended Proxy or Intermediary ('Confused Deputy'), where the product receives a request, message, or directive from an upstream component, but the product does not sufficiently preserve the original source of the request before forwarding the request to an external actor that is outside of the product's control sphere. this causes the product to appear to be the source of the request, leading it to act as a proxy or other intermediary between the upstream component and the external actor. In Github.com/go kratos/kratos/v2, 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
CVE-2026-6993 Affected Github.com/go kratos/kratos/v2 Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/go-kratos/kratos/v2
|
Go |
≤ 2.9.2
|
|
References
Frequently Asked Questions
What is CVE-2026-6993?
Which Github.com/go kratos/kratos/v2 versions are affected?
What version fixes CVE-2026-6993?
Is github.com/go-kratos/kratos/v2 affected?
What is the CVSS score of CVE-2026-6993?
What CWE is associated with CVE-2026-6993?
How can I check Go dependencies for CVE-2026-6993?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-jj45-xvq5-rhh9",
"modified" : "2026-05-05T20:24:19Z",
"published" : "2026-04-25T21:30:22Z",
"aliases" : [ "CVE-2026-6993" ],
"summary" : "Kratos has a Confused Deputy issue",
"details" : "A security flaw has been discovered in go-kratos kratos up to 2.9.2. This impacts the function NewServer of the file transport/http/server.go of the component http.DefaultServeMux Fallback Handler. The manipulation results in unintended intermediary. The attack may be launched remotely. The exploit has been released to the public and may be used for attacks. The patch is identified as 0284a5bcf92b5a7ee015300ce3051baf7ae4718d. Applying a patch is advised to resolve this issue.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:P"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/go-kratos/kratos/v2"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "2.9.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-6993"
}, {
"type" : "WEB",
"url" : "https://github.com/go-kratos/kratos/issues/3810"
}, {
"type" : "WEB",
"url" : "https://github.com/go-kratos/kratos/pull/3814"
}, {
"type" : "WEB",
"url" : "https://github.com/Yanhu007/kratos/commit/0284a5bcf92b5a7ee015300ce3051baf7ae4718d"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/go-kratos/kratos"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/submit/797099"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/vuln/359545"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/vuln/359545/cti"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-441" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-05-05T20:24:19Z",
"nvd_published_at" : "2026-04-25T19:16:00Z"
}
}