Plausible Community Edition up to ``3.2.0`` serves ``/storybook``, which compiles and runs code sent by any visitor (CVE-2026-8467, GHSA-mhcv-h7gf-57cf). It was used to install cryptocurrency miners in the container of a ``3.0.1`` deployment. ``3.2.1`` removes the endpoint. - Use ``docker.0k.io/plausible:3.2.1`` (from ``ghcr.io/plausible/community-edition:v3.2.1``). The database migrations run at start as before; ``3.0.1`` data migrates without manual step. - The default web-proxy rules refuse ``/storybook``, in case an older image is ever deployed again. - The Erlang release cookie of the image is created when the image is built, so it is the same on every installation. The ``init`` hook now generates one per installation (``release-cookie``) and sets ``RELEASE_DISTRIBUTION`` to ``none``: this single node opens no ``epmd`` nor distribution port. Assisted-by: Claude:claude-opus-5-5
65 lines
1.9 KiB
YAML
65 lines
1.9 KiB
YAML
## 3.2.1 or later is required: earlier versions expose ``/storybook``,
|
|
## an unauthenticated remote code execution (CVE-2026-8467).
|
|
docker-image: docker.0k.io/plausible:3.2.1 ## from: ghcr.io/plausible/community-edition:v3.2.1
|
|
|
|
data-resources:
|
|
- /var/lib/plausible
|
|
|
|
docker-compose:
|
|
entrypoint: sh -c "/entrypoint.sh db createdb && /entrypoint.sh db migrate && /entrypoint.sh run"
|
|
#entrypoint: sh -c "/entrypoint.sh run"
|
|
uses:
|
|
event-db:
|
|
#constraint: required | recommended | optional
|
|
#auto: pair | summon | none ## default: pair
|
|
constraint: required
|
|
auto: summon
|
|
solves:
|
|
database: "event db"
|
|
postgres-database:
|
|
#constraint: required | recommended | optional
|
|
#auto: pair | summon | none ## default: pair
|
|
constraint: required
|
|
auto: summon
|
|
solves:
|
|
database: "main storage"
|
|
default-options:
|
|
extensions:
|
|
- citext
|
|
smtp-server:
|
|
constraint: required
|
|
auto: summon
|
|
solves:
|
|
proxy: "Public access"
|
|
web-proxy:
|
|
#constraint: required | recommended | optional
|
|
#auto: pair | summon | none ## default: pair
|
|
constraint: recommended
|
|
auto: pair
|
|
solves:
|
|
proxy: "Public access"
|
|
default-options:
|
|
target: !var-expand ${MASTER_BASE_SERVICE_NAME}:8000
|
|
apache-custom-rules:
|
|
- !var-expand |
|
|
ProxyPreserveHost On
|
|
|
|
#Set web sockets
|
|
RewriteEngine On
|
|
RewriteCond %{HTTP:Upgrade} =websocket [NC]
|
|
RewriteCond %{HTTP:Connection} upgrade [NC]
|
|
RewriteRule ^/(live/websocket)$ ws://${MASTER_BASE_SERVICE_NAME}:8000/\$1 [P,L]
|
|
|
|
## Plausible < 3.2.1 runs any code sent to /storybook
|
|
## (CVE-2026-8467). 3.2.1 removed it; keep it closed in case
|
|
## an older image is ever deployed again.
|
|
RewriteRule ^/storybook(/|$) - [F,L]
|
|
|
|
|
|
backup:
|
|
constraint: recommended
|
|
auto: pair
|
|
solves:
|
|
backup: "Automatic regular backup"
|
|
default-options:
|