HCSEC-2026-61 - Consul vulnerable to authorization bypass in HTTP resource API

Bulletin ID: HCSEC-2026-62

Affected Products / Versions: Consul and Consul Enterprise 2.1.0; fixed in Consul 2.1.1 and Consul Enterprise 2.1.1, 1.21.20.

Publication Date: December 2, 2026

Summary

HashiCorp Consul Community Edition and Consul Enterprise 1.17.0 up to 2.1.0 are vulnerable to an authorization bypass in the HTTP resource API. The block_endpoints and allow_write_http_from agent settings were not applied to this API, which may allow a client to write or delete resources from network locations that the operator intended to restrict. This vulnerability (CVE-2026-135255) is fixed in Consul Community Edition 2.1.1 and Consul Enterprise 2.1.1 and 1.21.20.

Background

Consul agents serve an HTTP API that operators can restrict through configuration. The http_config.block_endpoints option blocks HTTP endpoints by path prefix, and the allow_write_http_from option limits which networks may call write endpoints, which makes the agent read-only for all other sources. Consul also provides a resource API over HTTP for managing resources, such as those that describe exported services.

Details

The HTTP resource API did not apply the block_endpoints and allow_write_http_from restrictions that are applied to other HTTP API endpoints. A client with network access to an agent’s HTTP listener could therefore send requests to the resource API that the operator had configured Consul to reject, including requests to write or delete resources from a source address outside allow_write_http_from, or to reach a path covered by block_endpoints. Changes to some resource types, such as those describing exported services, may be reflected in the cluster’s exported services configuration. The issue does not provide access to data outside the resource API, to ACL tokens, or to code execution.

Remediation

Customers should evaluate the risk associated with this issue and consider upgrading to Consul Community Edition 2.1.1 or Consul Enterprise 2.1.1 or 1.21.20. Enabling ACLs with a default policy of deny, and restricting network access to the agent HTTP listener, mitigates unauthenticated exploitation of this issue. After upgrading, requests to paths covered by block_endpoints, and write requests from sources outside allow_write_http_from, are rejected with an HTTP 403 response.

Acknowledgement

This issue was reported to HashiCorp by lichoin.

We deeply appreciate any effort to coordinate disclosure of security vulnerabilities. For information about security at HashiCorp and the reporting of security vulnerabilities, please see https://hashicorp.com/security.