Security related update
This patch release fixes a remote code execution vulnerability (GHSA-g297-gc38-5wjr) in Plausible Community Edition (image: ghcr.io/plausible/community-edition).
Who is affected?
All deployments of Plausible Community Edition running v2.1.0 up to and including v3.2.1.
The Plugins API accepted pagination cursors without verifying them. A user with a valid Plugins API token could send a forged cursor and run code on the server with the privileges of the system user running the application.
Exploiting it requires a Plugins API token. Site owners, admins and editors can create one, and anyone who signs up can do the same for their own site if registration is open (DISABLE_REGISTRATION=false). Tokens you have given out, for example to a WordPress site, can also be used. Instances with a single trusted user and no tokens given out are at lower risk, but should still be updated.
Mitigation
All affected versions of Plausible Community Edition should be updated to v3.2.2 as soon as possible.
If you can't update right away, block access to /api/plugins/ in your reverse proxy (this breaks the WordPress plugin integration), or revoke Plugins API tokens you don't need under Site Settings > Integrations.
Changes in this release
- The server now signs Plugins API pagination cursors and rejects cursors without a valid signature. Cursors from older versions stop working after the upgrade, so API clients have to restart pagination from the first page.
- Pending invitation ids are no longer exposed to editors in site people settings.
No other changes are included in this release.