CVE-2026-6993: Github.com/go kratos/kratos/v2 Kratos Has A Confused Deputy Vulnerability

MODERATE
Advisory Identifier: GHSA-jj45-xvq5-rhh9
CVSS 5.3
CWE-441
Published
Advisory Summary

CVE-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.

CVE-2026-6993 at a Glance

CVE Identifier CVE-2026-6993
GHSA Identifier GHSA-jj45-xvq5-rhh9
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-441: Unintended Proxy or Intermediary ('Confused Deputy')
Affected Product Github.com/go kratos/kratos/v2
Package Ecosystem Go
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (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.

github.com/go-kratos/kratos/v2 fixed: Latest secure release
Upgrade github.com/go-kratos/kratos/v2 to Latest secure release
Verify Direct and Transitive Dependencies

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

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.

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?
CVE-2026-6993 is a security vulnerability in Github.com/go kratos/kratos/v2 involving Kratos has a Confused Deputy issue under CWE-441: Unintended Proxy or Intermediary ('Confused Deputy').
Which Github.com/go kratos/kratos/v2 versions are affected?
Affected versions include releases prior to current release patches across affected packages: github.com/go-kratos/kratos/v2.
What version fixes CVE-2026-6993?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/go-kratos/kratos/v2 affected?
Yes, github.com/go-kratos/kratos/v2 is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2026-6993?
CVE-2026-6993 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2026-6993?
CVE-2026-6993 is classified under CWE-441: Unintended Proxy or Intermediary ('Confused Deputy') (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.).
How can I check Go dependencies for CVE-2026-6993?
Run the dependency tree command: 'inspect dependencies for github.com/go-kratos/kratos/v2'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}