Skip to content

v2.68.23

Choose a tag to compare

@github-actions github-actions released this 04 Dec 18:16
· 110 commits to main since this release

Security

  • Caddy image: corazawaf/libinjection-go raised from v0.3.3 to v0.3.7. This only matters if you turn on the Coraza WAF. Coraza v3.8.1 pulls in v0.3.3, which has two GitHub advisories with no CVE id. They are in neither OSV nor GitHub's global advisory database, so scanners (Trivy included) report nothing:

    • GHSA-974q-67pr-5pc2 (high): the SQLi check takes quadratic CPU time on a quoted run of backslash escapes.
    • GHSA-3xx6-w25q-cx8h (medium): IsXSS misses a javascript: link broken up inside its first letters by TAB, CR or &Tab; (for example ja<TAB>vascript:).

    On a site with the Coraza WAF and rules that use @detectSQLi/@detectXSS (the OWASP CRS does), any client can reach both. We measured them with Caddy limited to one CPU:

    • An 80 KB form field took 8.7 s per request under a rule that only calls the SQLi check, and 1.3 ms with the fix.
    • Through the full CRS, a 40 KB field went from 2.4 s to 0.23 s.
    • The TAB, CR and &Tab; links got past an XSS-only rule before the fix and are blocked after it. Other CRS rules already blocked them before the fix.

    Sites without the WAF are not affected. One detection change to know about if you write your own rules: since v0.3.4, libinjection no longer flags SQL with a NUL byte inside a token, matching the original C library. The OWASP CRS strips NUL bytes first (t:removeNulls), so CRS is unchanged; a custom @detectSQLi rule should add t:removeNulls too. [[T-0973]]

  • Caddy image: go-openapi/jsonpointer, jsonreference and validate raised to v1.0.3 as a precaution. The CrowdSec bouncer's API models pull these in. They carry GitHub-only advisories: GHSA-cqr7-r6x2-9cqf, GHSA-m8w9-vj7g-gxgg, GHSA-5x36-4ggc-m9g9 and GHSA-57xm-4xm7-hqm3. We found no path from a request to the affected code in this image: the bouncer only talks to your own CrowdSec LAPI, and the affected validate.Spec/AgainstSchema functions are not compiled in. Go's minimal version selection also raises go-openapi/analysis to v1.0.2, loads to v0.25.4, spec to v1.0.1 and go.yaml.in/yaml/v3 to v3.0.6. The image links the same modules otherwise, caddy list-modules --versions is unchanged, and the build checks all four new minimums against the built binary. [[T-0973]]

  • Caddy image: rebuilt on current Alpine packages, clearing 7 HIGH findings Trivy reports on the previous image: busybox (busybox, busybox-binsh, ssl_client) 1.37.0-r31 → r32 for CVE-2026-140044, and OpenSSL (libssl3, libcrypto3) 3.5.9-r1 → 3.5.10-r0 for CVE-2026-107494 and CVE-2026-124709. None was reachable through Caddy, which is a static Go binary and doesn't use OpenSSL; they sit in the image's shell tools and curl. The Docker health check uses curl over plain HTTP to loopback. [[T-0973]]

Fixed

  • Caddyfile export: a host with SSL on and Force SSL off is served on plain HTTP too, as it is live. The export wrote a plain address, so Caddy redirected :80 to HTTPS where CaddyUI serves the host without a redirect. It now writes http:// and https:// addresses, or, for a host with certificate files (Caddy refuses a tls line in a site that also listens on HTTP), the HTTPS site plus a plain http:// copy of it. Addresses with a port are unchanged; client-certificate hosts, and hosts whose Advanced config has a tls directive (which Caddy refuses in a site on HTTP), stay HTTPS-only with a note. [[T-0947]]
  • Caddyfile import: re-importing such an export keeps Force SSL off. The :80 copy of an HTTPS site is read as the host's Force SSL off instead of a second host, and a plain-HTTP-only site imports with SSL off; previously both came back with Force SSL on. [[T-0947]]
  • Caddyfile export: keep-alive settings match the live route. Keep-alive conns now export as keepalive_idle_conns_per_host with the idle timeout (keepalive, default 90s) instead of the pool-wide keepalive_idle_conns; Keep-alive disabled, upstream max idle conns, probe interval and max conns per host are exported too. Probe count and max lifetime have no Caddy option and are listed in the host's notes. [[T-0947]]
  • A proxy host with Max connections per upstream, Keepalive Probes or Keepalive Max Lifetime set no longer breaks every sync on its server. CaddyUI wrote these as keep_alive.max_conns_per_host, keep_alive.probes and keep_alive.maximum_connection_lifetime, which Caddy does not know. Caddy refused the whole config with unknown field, so no change on that server could be applied. Max connections per upstream is now written as transport.max_conns_per_host, where Caddy reads it. Caddy has no setting for the probe count or the connection lifetime, so those two values are no longer sent to Caddy. They stay saved, and the form says they have no effect. Verified with caddy validate on Caddy v2.11.9. [[T-0975]]
  • 36 more proxy-host settings no longer break every sync on their server. A new test sets each proxy-host field in turn, builds the route and runs caddy validate (Caddy v2.11.9). It found that 36 settings wrote JSON Caddy rejects. Any one of them made Caddy refuse the whole config, so no change on that server could be applied. No host on our own instances used any of them. [[T-0980]]
    • Now written the way Caddy reads them: Buffer Full Response and Max Buffer Size (response_buffers; with Max Buffer Size 0 the cap is 16 MiB, never unlimited), TLS Handshake Timeout (tls.handshake_timeout, only when the upstream already uses TLS), inline upstream CA (tls.root_ca_pool), Trusted Proxies (a plain list of IPs and CIDRs, with private_ranges expanded), Blocked User-Agents, the User-Agent, Referer and Content-Type block regexes (header_regexp with a pattern), the query-string block regex (a vars_regexp matcher on the query string), Custom Error Page and Error Redirect URL (handle_response routes), HTTP/2 Push paths (target), Add Query Params (query.add as key/val pairs), Compression Level for zstd (a named preset), and the random_choice LB policy (Caddy calls it random_choose; the Caddyfile export now writes that name too).
    • No Caddy equivalent, so CaddyUI no longer sends them. The values stay saved and the form marks each one "has no effect": request body read timeout, max connection duration, decompress responses, DNS resolve timeout, TLS early data, upstream TLS min/max version, cipher suites, ALPN and pins, retry on / retry status codes, sticky-cookie path, HttpOnly, Secure and SameSite, and the health-check TLS server name and skip-verify options.
    • Brotli and gRPC-Web are no longer sent either. They only worked on a custom Caddy build with the caddy-brotli or caddy-grpc-web plugin; the CaddyUI Caddy image has neither, so there they broke the config. If you run such a build, add them through the host's Advanced config.
    • Behaviour change, sticky-cookie Max Age: this was the one setting Caddy accepted before, but it read the number as nanoseconds, so sticky cookies ended with the browser session. They now last the configured time (sent as a duration, e.g. 3600s).
    • Buffer Full Response and Response Buffer Size break WebSockets and streaming responses (Caddy can't pass an upgrade through a buffered body); the form now says so.
  • Regexp and Trusted Proxies fields are checked on save. A Deny Path, Compression Exclude, Block User-Agent, Block Referer, Block Query String, health-check Expected body, URL Rewrite (Regex) or Header Replace regexp that doesn't compile, or a Trusted Proxies entry that isn't an IP, a CIDR or private_ranges, is refused with the field's name. Before, it saved and then made Caddy refuse the whole server config, which on a shared server any one account could do. Values saved earlier are left out of the route instead. [[T-0981]]
  • WAF: a middleware profile with the OWASP Core Rule Set turned off now loads. CaddyUI always includes Coraza's recommended base config, but only made its embedded rule files available when the CRS was on, so since v2.61.0 Caddy refused the whole server config for such a profile. Your own rules now work without the CRS, together with Coraza's recommended base settings (for example request bodies over 12.5 MB get 413, malformed JSON/XML/multipart bodies get 400), as CRS profiles already had. [[T-0981]]
  • URL Rewrite rules of type Regex work. Since v2.9.202 CaddyUI wrote them as an object in rewrite.uri, which is a string in Caddy, so any Regex rule made Caddy refuse the whole server config. They are now written as path_regexp (find/replace on the path, capture groups like $1 supported). [[T-0981]]

Docker: applegater/caddyui:v2.68.23 and applegater/caddyui-caddy:v2.68.23 (= :stable = :latest, amd64 + arm64). Trivy: 0 HIGH/CRITICAL on both images and both architectures.

Full changelog: v2.68.22...v2.68.23