Skip to content

Commit 958590d

Browse files
chore(docker): clear most CVEs in published image (npm/pnpm/uuid + drop curl) (#7674)
* chore(docker): clear most CVEs in published image — npm/pnpm/uuid + drop curl Cuts published-image vulnerabilities from 18 (4H/13M/1L) across 8 packages to 12 (2H/9M/1L) across 3 packages. The remaining three (curl/libcurl, git, busybox) are all upstream Alpine 3.23 packages with "not fixed" status — libcurl is pulled in transitively by git and cannot be removed independently. Changes: - Provision pnpm via corepack instead of `npm install -g pnpm`, then remove the bundled npm. The base image's npm@10.9.7 ships old transitives (picomatch 4.0.3 → CVE-2026-33671/33672, brace-expansion 2.0.2 → CVE-2026-33750) that we don't otherwise need at runtime; corepack handles pnpm directly without npm. Fixes 1H + 1M. - Bump PnpmVersion 10.28.2 → 10.33.2 to align with the rest of the workflow and pull in pnpm's patched bundled brace-expansion (5.0.5 vs 5.0.4). Fixes 1M. - Add `uuid@<14.0.0` → `>=14.0.0` to pnpm.overrides (GHSA-w5hq-g745-h8pq). Fixes 1M. - Drop `curl` from the runtime apk add list and switch HEALTHCHECK to wget (busybox built-in). curl was only invoked by the healthcheck and by dev/CI scripts that don't run in the container. Removes the curl CLI binary; libcurl remains as a git transitive dep, so the `apk/alpine/curl` advisories scout reports against libcurl persist but aren't reachable from any code we ship. As a side-effect this also clears nghttp2 (CVE-2026-27135) which was a curl-CLI dep. - Switch HEALTHCHECK URL from `localhost` to `127.0.0.1` — alpine/musl resolves localhost to ::1 first and Etherpad only binds IPv4. Verified locally: docker build → docker run → healthy → docker scout cves shows 12 CVEs / 3 packages. * fix(docker): refresh corepack before preparing pnpm (Qodo) Node 22's bundled corepack ships a stale signing-key list and can reject newer pnpm releases (nodejs/corepack#612), which would fail the image build at `corepack prepare`. Mirror the snap/snapcraft.yaml workaround: `npm install -g corepack@latest` before activating pnpm, in both adminbuild and build stages. npm is still removed afterwards. * docs(changelog): note docker image dropping curl/npm/npx (Qodo) Address Qodo's "backwards-incompatible change without mitigation" rule violations by documenting the removal in the 2.7.3 breaking-changes section. Operators who exec into the container can apk add curl on demand or use the busybox wget / pnpm already present. * chore: pnpm * chore: pnpm * chore: pnpm * chore: pnpm * chore: pnpm * chore: pnpm * chore: pnpm * chore: pnpm * chore: pnpm --------- Co-authored-by: SamTV12345 <40429738+samtv12345@users.noreply.github.com>
1 parent fb09b11 commit 958590d

25 files changed

Lines changed: 640 additions & 566 deletions

.github/workflows/backend-tests.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ jobs:
4343
- uses: pnpm/action-setup@v6
4444
name: Install pnpm
4545
with:
46-
version: 10.33.2
4746
run_install: false
4847
- name: Use Node.js
4948
uses: actions/setup-node@v6
@@ -100,7 +99,6 @@ jobs:
10099
- uses: pnpm/action-setup@v6
101100
name: Install pnpm
102101
with:
103-
version: 10.33.2
104102
run_install: false
105103
- name: Use Node.js
106104
uses: actions/setup-node@v6
@@ -169,7 +167,6 @@ jobs:
169167
- uses: pnpm/action-setup@v6
170168
name: Install pnpm
171169
with:
172-
version: 10.33.2
173170
run_install: false
174171
- name: Use Node.js
175172
uses: actions/setup-node@v6
@@ -221,7 +218,6 @@ jobs:
221218
- uses: pnpm/action-setup@v6
222219
name: Install pnpm
223220
with:
224-
version: 10.33.2
225221
run_install: false
226222
- name: Use Node.js
227223
uses: actions/setup-node@v6

.github/workflows/build-and-deploy-docs.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,10 @@ jobs:
5454
- uses: pnpm/action-setup@v6
5555
name: Install pnpm
5656
with:
57-
version: 10.33.2
5857
run_install: false
5958
# Pin Node so the build does not silently fall back to whatever the
60-
# runner image ships with. oxc-minify (a vitepress peer when
61-
# rolldown-vite is in use) requires Node ^20.19.0 || >=22.12.0; the
62-
# repo declares engines.node >=22.12.0 to match.
59+
# runner image ships with. vite 8 requires Node ^20.19.0 || >=22.12.0;
60+
# the repo declares engines.node >=22.12.0 to match.
6361
- name: Use Node.js
6462
uses: actions/setup-node@v6
6563
with:

.github/workflows/docker.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,10 @@ jobs:
5252
- uses: pnpm/action-setup@v6
5353
name: Install pnpm
5454
with:
55-
version: 10.33.2
5655
run_install: false
56+
# Repo is checked out into ./etherpad, so the action can't find
57+
# packageManager in a root package.json.
58+
package_json_file: etherpad/package.json
5759
- name: Use Node.js
5860
uses: actions/setup-node@v6
5961
with:

.github/workflows/frontend-admin-tests.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ jobs:
3838
- uses: pnpm/action-setup@v6
3939
name: Install pnpm
4040
with:
41-
version: 10.33.2
4241
run_install: false
4342
- name: Use Node.js
4443
uses: actions/setup-node@v6

.github/workflows/frontend-tests.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ jobs:
3838
- uses: pnpm/action-setup@v6
3939
name: Install pnpm
4040
with:
41-
version: 10.33.2
4241
run_install: false
4342
- name: Use Node.js
4443
uses: actions/setup-node@v6
@@ -111,7 +110,6 @@ jobs:
111110
- uses: pnpm/action-setup@v6
112111
name: Install pnpm
113112
with:
114-
version: 10.33.2
115113
run_install: false
116114
- name: Use Node.js
117115
uses: actions/setup-node@v6
@@ -188,7 +186,6 @@ jobs:
188186
- uses: pnpm/action-setup@v6
189187
name: Install pnpm
190188
with:
191-
version: 10.33.2
192189
run_install: false
193190
- name: Use Node.js
194191
uses: actions/setup-node@v6
@@ -290,7 +287,6 @@ jobs:
290287
- uses: pnpm/action-setup@v6
291288
name: Install pnpm
292289
with:
293-
version: 10.33.2
294290
run_install: false
295291
- name: Use Node.js
296292
uses: actions/setup-node@v6

.github/workflows/handleRelease.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,12 @@ jobs:
3838
- uses: pnpm/action-setup@v6
3939
name: Install pnpm
4040
with:
41-
version: 10.33.2
4241
run_install: false
42+
- name: Use Node.js
43+
uses: actions/setup-node@v6
44+
with:
45+
node-version: 22
46+
cache: pnpm
4347
- name: Install all dependencies and symlink for ep_etherpad-lite
4448
run: pnpm install --frozen-lockfile
4549
- name: Build etherpad

.github/workflows/load-test.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ jobs:
3535
- uses: pnpm/action-setup@v6
3636
name: Install pnpm
3737
with:
38-
version: 10.33.2
3938
run_install: false
4039
- name: Use Node.js
4140
uses: actions/setup-node@v6
@@ -74,7 +73,6 @@ jobs:
7473
- uses: pnpm/action-setup@v6
7574
name: Install pnpm
7675
with:
77-
version: 10.33.2
7876
run_install: false
7977
- name: Use Node.js
8078
uses: actions/setup-node@v6
@@ -138,7 +136,6 @@ jobs:
138136
- uses: pnpm/action-setup@v6
139137
name: Install pnpm
140138
with:
141-
version: 10.33.2
142139
run_install: false
143140
- name: Use Node.js
144141
uses: actions/setup-node@v6

.github/workflows/perform-type-check.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,12 @@ jobs:
3535
- uses: pnpm/action-setup@v6
3636
name: Install pnpm
3737
with:
38-
version: 10.33.2
3938
run_install: false
39+
- name: Use Node.js
40+
uses: actions/setup-node@v6
41+
with:
42+
node-version: 22
43+
cache: pnpm
4044
- name: Install all dependencies and symlink for ep_etherpad-lite
4145
run: pnpm install --frozen-lockfile
4246
- name: Perform type check

.github/workflows/rate-limit.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,12 @@ jobs:
3838
- uses: pnpm/action-setup@v6
3939
name: Install pnpm
4040
with:
41-
version: 10.33.2
4241
run_install: false
42+
- name: Use Node.js
43+
uses: actions/setup-node@v6
44+
with:
45+
node-version: 22
46+
cache: pnpm
4347

4448
-
4549
name: docker network

.github/workflows/release.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,16 @@ jobs:
5757
- uses: pnpm/action-setup@v6
5858
name: Install pnpm
5959
with:
60-
version: 10.33.2
6160
run_install: false
61+
# Repo is checked out into ./etherpad, so the action can't find
62+
# packageManager in a root package.json.
63+
package_json_file: etherpad/package.json
64+
- name: Use Node.js
65+
uses: actions/setup-node@v6
66+
with:
67+
node-version: 22
68+
cache: pnpm
69+
cache-dependency-path: etherpad/pnpm-lock.yaml
6270
- name: Install dependencies ether.github.com
6371
run: pnpm install --frozen-lockfile
6472
working-directory: ether.github.com

0 commit comments

Comments
 (0)