#4581·umami

Docker image drops the pnpm overrides, so it ships mysql2 3.15.3 and deepmerge-ts 7.1.5

Author: polydoc-techCreated Sep 28, 2026Updated Sep 29, 2026
Labelsfixed in dev

Describe the Bug

The security floors in pnpm-workspace.yaml (added in 450a48c) don't reach the Docker image. The deps stage installs with --frozen-lockfile, so they apply there, but the runner stage writes its own pnpm-workspace.yaml and runs pnpm add [email protected] ... without the lockfile. prisma 7.10.0 pins mysql2 to exactly 3.15.3 and @prisma/config 7.10.0 pins deepmerge-ts to exactly 7.1.5, so no rebuild picks up the fixed versions on its own. Trivy flags both on ghcr.io/umami-software/umami:3.4.0 (GHSA-3f6p-5ww8-9rcr and CVE-2026-40345), and master and dev have the same runner stage.

Neither looks reachable to us with a postgresql:// DATABASE_URL, so it isn't urgent.

Carrying the overrides block into the runner's workspace file fixes it. We tried this on a copy of the runner stage (node:22-alpine, pnpm 12.3.4): mysql2 and deepmerge-ts come out at 3.23.1 and 8.0.2, and prisma --version still runs.

dockerfile
COPY pnpm-workspace.yaml /tmp/pnpm-workspace.yaml
RUN printf "allowBuilds:\n  '@prisma/engines': true\n  prisma: false\nverifyDepsBeforeRun: false\n" > pnpm-workspace.yaml \
    && awk '/^overrides:/{f=1;print;next} f&&/^[^ #]/{f=0} f' /tmp/pnpm-workspace.yaml >> pnpm-workspace.yaml \
    && rm /tmp/pnpm-workspace.yaml

That assumes overrides: stays a top-level block in pnpm-workspace.yaml. Would you take a PR for it?

Database

PostgreSQL

Relevant log output

bash
$ docker run --rm --entrypoint sh ghcr.io/umami-software/umami:3.4.0 -c 'ls node_modules/.pnpm | grep -E "^(mysql2|deepmerge-ts)@"'
[email protected]
[email protected]

Which Umami version are you using?

3.4.0

How are you deploying your application?

Docker

Which browser are you using?

No response