Activity log
- Created suggestion
Caddy vulnerable to cross-origin config application via local admin API /load (caddy)
Caddy is an extensible server platform that uses TLS by default. Prior to version 2.11.1, the local caddy admin API (default listen `127.0.0.1:2019`) exposes a state-changing `POST /load` endpoint that replaces the entire running configuration. When origin enforcement is not enabled (`enforce_origin` not configured), the admin endpoint accepts cross-origin requests (e.g., from attacker-controlled web content in a victim browser) and applies an attacker-supplied JSON config. This can change the admin listener settings and alter HTTP server behavior without user intent. Version 2.11.1 contains a fix for the issue.
References
-
https://github.com/caddyserver/caddy/security/advisories/GHSA-879p-475x-rqh2 x_refsource_CONFIRM
-
https://github.com/caddyserver/caddy/releases/tag/v2.11.1 x_refsource_MISC
-
https://github.com/user-attachments/files/25079818/poc.zip x_refsource_MISC
-
https://github.com/user-attachments/files/25079820/PR_DESCRIPTION.md x_refsource_MISC
Affected products
- ==< 2.11.1
Matching in nixpkgs
pkgs.caddy
Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
pkgs.xcaddy
Build Caddy with plugins
pkgs.caddyfile-language-server
Basic language server for caddyfile
pkgs.vimPlugins.nvim-treesitter-parsers.caddy
None
-
nixos-unstable 0.0.0+rev=2686186
- nixpkgs-unstable 0.0.0+rev=2686186
- nixos-unstable-small 0.0.0+rev=2686186
pkgs.tree-sitter-grammars.tree-sitter-caddyfile
Tree-sitter grammar for caddyfile
-
nixos-unstable 0-unstable-2025-12-16
- nixpkgs-unstable 0-unstable-2025-12-16
- nixos-unstable-small 0-unstable-2025-12-16
pkgs.vscode-extensions.matthewpi.caddyfile-support
Rich Caddyfile support for Visual Studio Code
pkgs.python313Packages.tree-sitter-grammars.tree-sitter-caddyfile
Python bindings for tree-sitter-caddyfile
-
nixos-unstable 0+unstable20251216
- nixpkgs-unstable 0+unstable20251216
- nixos-unstable-small 0+unstable20251216
pkgs.python314Packages.tree-sitter-grammars.tree-sitter-caddyfile
Python bindings for tree-sitter-caddyfile
-
nixos-unstable 0+unstable20251216
- nixpkgs-unstable 0+unstable20251216
- nixos-unstable-small 0+unstable20251216
Package maintainers
-
@stepbrobd Yifei Sun <ysun@hey.com>
-
@ryan4yin Ryan Yin <xiaoyin_c@qq.com>
-
@techknowlogick techknowlogick <techknowlogick@gitea.com>
-
@Br1ght0ne Oleksii Filonenko <brightone@protonmail.com>
-
@matthewpi Matthew Penner <me+nix@matthewp.io>
-
@tjni Theodore Ni <43ngvg@masqt.com>
-
@pyrox0 Pyrox <pyrox@pyrox.dev>
-
@adfaure Adrien Faure <adfaure@pm.me>
-
@mightyiam Shahar "Dawn" Or <mightyiampresence@gmail.com>
-
@A-jay98 Ali Jamadi <ali@jamadi.me>
-
@aciceri Andrea Ciceri <andrea.ciceri@autistici.org>