CVE-2026-87993: Consul Vulnerable to Information Disclosure in Error Handling

consul Updated 25 Sep 2026

Summary

25/09/2026
Yes i
High
Not published

CVE-2026-87993: Consul-template vulnerable to an information disclosure issue in error handling. Affects consul versions >= 0.27.2, < 0.43.0. Fixed in 0.43.0. 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

Consul is a widely used tool for service discovery and configuration management, developed by HashiCorp. It enables users to manage services in a distributed system, providing features such as health checking, key-value storage, and service segmentation. The consul-template library, which integrates with Consul, allows users to generate configuration files and other artifacts from templates using data from Consul and Vault. However, it has been found to be vulnerable to an information disclosure issue that could expose sensitive data.

Vulnerability Detail

The vulnerability identified as CVE-2026-87993 in the consul-template library arises from improper error handling. When errors occur during template processing, sensitive Vault secret values may inadvertently be included in error messages, log outputs, and Nomad task events. This could lead to unauthorized access to sensitive information, posing a significant security risk to applications relying on these secrets.

How To Fix

Minimum fixed version

0.43.0

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users can implement logging controls to filter out sensitive information from logs and error messages. This can be done by modifying the logging configuration to exclude specific patterns that may contain Vault secrets.

Conclusion

CVE-2026-87993 highlights a critical information disclosure vulnerability in the consul-template library, which can expose sensitive Vault secrets through error handling. It is essential for users to update to version 0.43.0 or later to mitigate this risk. Additionally, implementing logging controls can serve as a temporary measure until the update is applied.

See every vulnerability recorded for consul →

Share this vulnerability

FAQ

CVE-2026-87993 is a vulnerability in the consul-template library that allows sensitive Vault secret values to be exposed through error messages and logs.

If your application uses consul-template and encounters errors, it may inadvertently log sensitive information, leading to potential data breaches.

Versions of consul-template prior to 0.43.0 are affected by this vulnerability.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

If an immediate update is not possible, implement logging controls to prevent sensitive information from being logged as a temporary workaround.

Related vulnerabilities

Recent vulnerabilities recorded for consul.

How To Fix

Minimum fixed version

0.43.0

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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