CVE-2026-6993: go-kratos kratos up to 2.9.2 - Confused Deputy Issue in HTTP Server

Summary

25/04/2026
No i
Moderate
5.3

CVE-2026-6993: Kratos has a Confused Deputy issue. Affects github.com/go-kratos/kratos/v2 versions < 2.9.2. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

go-kratos is a modern, lightweight framework for building microservices in Go. It provides a set of tools and libraries that simplify the development of robust and scalable applications. The framework is designed to be easy to use, with a focus on performance and maintainability. However, a security vulnerability has been identified in versions up to 2.9.2, which may expose applications to potential attacks due to improper handling of HTTP requests.

Vulnerability Detail

A Confused Deputy issue has been discovered in go-kratos kratos versions up to 2.9.2. This vulnerability arises from the function NewServer in the file transport/http/server.go, specifically within the http.DefaultServeMux Fallback Handler. The flaw allows an attacker to manipulate the server into acting as an unintended intermediary, potentially leading to unauthorized access or data exposure. The attack can be executed remotely, making it critical for users to address this vulnerability promptly.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary measure, you can restrict access to the affected HTTP server or implement additional validation checks on incoming requests to mitigate the risk of exploitation until the package is updated.

Conclusion

The vulnerability identified as CVE-2026-6993 in go-kratos kratos versions up to 2.9.2 poses a significant risk due to a Confused Deputy issue. It is crucial for users to update their packages to the patched version to mitigate potential attacks. Utilizing tools like Vulert can help monitor and manage vulnerabilities effectively.

See every vulnerability recorded for github.com/go-kratos/kratos/v2 →

Share this vulnerability

FAQ

A Confused Deputy issue occurs when a system or application inadvertently misuses its authority, allowing an attacker to exploit its capabilities for malicious purposes.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check if your application is affected without any signup.

If exploited, this vulnerability could allow unauthorized access to sensitive data or enable attackers to manipulate server behavior, leading to further security breaches.

Yes, updating to the latest version of go-kratos that includes the patch for this vulnerability will ensure that your application is secure.

If immediate updates are not possible, consider implementing access restrictions and additional validation checks as a temporary workaround to reduce the risk of exploitation.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback