Skip to content

Caddy admin API exposed without authentication

Critical
wyattwalter published GHSA-8jvv-gwqg-6vjc Jun 12, 2026

Package

appsmith/appsmith-ce (Docker/Helm)

Affected versions

<=2.0

Patched versions

v2.1
appsmith/appsmith-ee (Docker/Helm)
<=2.0
v2.1

Description

Summary

The bundled Caddy reverse-proxy's admin API — which has no authentication by default — is bound on 0.0.0.0:2019 inside the container. While this listener is not directly published to the host by docker-compose.yml, it is reachable from the Appsmith server process itself and, crucially, from the SSRF vulnerability reported in the companion advisory (insufficient host denylist in WebClientUtils). An authenticated low-privileged user can therefore drive the SSRF to issue POST /load (or any other admin-API call) against http://0.0.0.0:2019/, fully replacing the live Caddy configuration and taking over the reverse proxy.

Because the SSRF gives the attacker full control over HTTP method, headers, and body, every endpoint of the Caddy admin API is reachable end-to-end through it — there is no in-container shell, no host access, and no additional credential required. The Caddy admin endpoint being bound to 0.0.0.0 rather than 127.0.0.1 is not itself the entry vector, but it is the dangerous functionality that makes the SSRF terminal: without the admin API listener, the SSRF would only reach passive internal HTTP endpoints; with it, a single authenticated REST API action is sufficient to take over the proxy.

In Kubernetes deployments where the Helm chart's metrics.enabled=true is set, the same listener is additionally exposed cluster-wide (no SSRF required) because Caddy's metrics global directive serves Prometheus on the same admin endpoint. See the Helm variant section below.

Affected code

deploy/docker/fs/opt/appsmith/caddy-reconfigure.mjs (line ~45):

{
  admin 0.0.0.0:2019
  ...
  servers {
    ...
    metrics
  }
}

deploy/helm/values.yaml:

metrics:
  enabled: false        # ← when set to true ...
  port: 2019            # ← ... the metrics Service publishes the admin port

deploy/helm/templates/service-metrics.yaml exposes targetPort: metrics which resolves to containerPort: 2019 — the Caddy admin endpoint.

Reachability via the SSRF (primary exploitation path)

The admin API exposes POST /load, POST|GET /config/*, POST /stop, etc., all unauthenticated. POST /load accepts a complete replacement config (JSON).

Paired with the vulnerability in GHSA-m23h-pvf3-2m7p, the REST API datasource plugin will dispatch any method and body the attacker chooses against the Caddy admin listener. The attacker fully controls the HTTP request — exactly what is needed to call POST /load with a malicious config.

Impact (post-exploitation via Caddy admin)

Once a malicious Caddy config is loaded, the attacker controls the reverse proxy:

  • file_server with root / → exfiltrate /appsmith-stacks/configuration/docker.env (which contains APPSMITH_REDIS_PASSWORD, APPSMITH_ENCRYPTION_PASSWORD, APPSMITH_ENCRYPTION_SALT, Mongo/Postgres credentials and the supervisor password).
  • Strip auth on /api/* routes; serve a phishing UI on / to harvest credentials of logged-in admins.
  • Reverse-proxy internal-only services.
  • Intercept and MITM all traffic to the instance.

The leaked encryption keys and Redis password from docker.env then enable Spring Session hijacking (read spring:session:sessions:* from Redis using the leaked password) and decryption of stored datasource credentials, completing the path to a super-admin account and ultimately host RCE (see companion advisory #3 on /env infrastructure repointing).

Reproduction (Docker, via SSRF)

  1. Log in to a target Appsmith instance with any account.
  2. Create a REST API action with:
    • URL: http://0.0.0.0:2019/config
    • Method: GET
    • Headers: Content-Type: application/json
  3. Run the action — Caddy responds with HTTP 200 and the config is shown.

Reproduction (Kubernetes, direct — no SSRF required)

With metrics.enabled=true, from any pod in the cluster:

curl http://<release>-appsmith-metrics:2019/config/

Suggested fix

  • Bind the admin endpoint to 127.0.0.1:2019.
  • If remote metrics are required, expose Prometheus metrics on a separate, dedicated listener that does not also serve the admin API. (Caddy supports configuring metrics independently from admin.)
  • In the Helm chart, ensure the metrics Service never targets the admin port; provision a metrics-only listener and publish that.

Workarounds

  • Do not set metrics.enabled=true in the Helm chart until patched.
  • Add a NetworkPolicy denying ingress to port 2019.

References

  • Source: deploy/docker/fs/opt/appsmith/caddy-reconfigure.mjs
  • Source: deploy/helm/templates/service-metrics.yaml, deploy/helm/values.yaml
  • Caddy admin docs: https://caddyserver.com/docs/api

Credits

Igor Benevides (igor4020)

Severity

Critical

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

CVE ID

CVE-2026-55454

Weaknesses

Exposed Dangerous Method or Function

The product provides an Applications Programming Interface (API) or similar interface for interaction with external actors, but the interface includes a dangerous method or function that is not properly restricted. Learn more on MITRE.

Initialization of a Resource with an Insecure Default

The product initializes or sets a resource with a default that is intended to be changed by the administrator, but the default is not secure. Learn more on MITRE.

Credits