Repository navigation
[INFRA-1258] fix: close nightly Trivy findings and distrust emSign G3 - #10094
Conversation
… CA distrust certifi 2026.7.22 still trusts the eMudhra/emSign roots revoked under GHSA-6q48-6c7w-9gw2 (CRITICAL), flagged by the nightly Trivy scan in plane-backend and plane-aio-community. certifi only arrives transitively (requests, httpx), so add a commented floor to the api dependencies and relock; uv moves only certifi. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…wn-it to 14.3.3 Both are exact pins in the pnpm overrides that new advisories overtook: - follow-redirects 1.16.0 -> 1.16.1: CVE-2026-111755 / CVE-2026-111756 (GHSA-q3jh-wrc6-jgq8, GHSA-8r9p-f939-6h3c), HIGH. - markdown-it 14.3.2 -> 14.3.3: CVE-2026-111758 (GHSA-gfr2-rv44-r23c), DoS via unclosed link reference definitions; stays on the 14.x major. Flagged by the nightly Trivy scan in plane-live, plane-space and plane-aio-community, and by Dependabot. Co-Authored-By: Claude Opus 5.5 <[email protected]>
vite 8.0.16 bundles a launch-editor vulnerable to command injection (CVE-2026-112942 / GHSA-587h-7wmj-h5pm, plus GHSA-r825-w8mm-5pxw and GHSA-698v-4r3x-3vcv). There is no patched 8.0.x; the fixed lines are 8.1.6, 8.2.4 and 8.3.3. Take 8.2.4, the line plane-ee is on. Every vite peer in the graph (react-router dev, vitest, storybook, vite-tsconfig-paths) accepts ^8. Flagged by the nightly Trivy scan in plane-live, plane-space and plane-aio-community (the runtime images copy node_modules wholesale), and by Dependabot. web, admin, space and live build and type-check; the live, services and blocks vitest suites pass. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Clears the three Dependabot alerts on sanitize-html < 2.18.0 (GHSA-cv27-6wvh-8x7j, GHSA-x3q4-9hxx-gx8m, GHSA-374f-7chj-9948). Take 2.18.1 rather than the 2.18.0 floor: 2.18.0 introduced an unbounded iframe-fallback recursion (GHSA-c9rx-x947-fp3h) that 2.18.1 fixes. 2.18.1 also drops the deepmerge dependency. sanitize-html 2.18.x declares postcss ^8.5.27 while the postcss override holds 8.5.25. That is inert here: @plane/utils only passes allowedTags, and sanitize-html invokes postcss solely to filter style attributes under allowedStyles. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… in lockstep Only @tiptap/core sat on 2.27.3, the release that backports the mergeAttributes __proto__ fix (GHSA-cp6q-959q-f8rh); every other @tiptap/* package was still on 2.26.x, and apps/live resolved the @tiptap/pm peer to 3.6.6, which @tiptap/core 2.x does not accept (^2.7.0). - Raise every @tiptap/* catalog floor to ^2.27.3, the last 2.x release. - Declare @tiptap/pm in apps/live so its peer resolves to the catalog 2.x. - Override @tiptap/starter-kit to the catalog: @hocuspocus/transformer otherwise keeps its own 2.26.x starter-kit and the extensions under it. The lockfile now holds a single 2.27.3 copy of every @tiptap package. This does not close Dependabot alert GHSA-cp6q-959q-f8rh: it lists only 3.30.4 as patched. Tiptap v3 needs Hocuspocus v3 (the 2.x transformer peers @tiptap/core ^2), @tiptap/y-tiptap in place of y-prosemirror and a tiptap-markdown replacement, which is a migration rather than a bump. editor, live, web, space and admin build and type-check; live tests pass. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Alpine's ca-certificates-bundle 20261020-r0 drops the emSign ECC Root CA - G3, Root CA - C1 and ECC Root CA - C3 roots from the eMudhra/emSign incident (GHSA-6q48-6c7w-9gw2); 20260909-r0 and older still ship them. Every runtime stage's apk upgrade layer is cached under the 2026-09-07 date, so a rebuild would re-ship the old bundle. Bump the date in all seven Dockerfiles that carry it (admin, api, live, proxy, space, web, AIO) to re-run the upgrade. Checked on the amd64 runtime bases: after the upgrade, python:3.12.12-alpine (3.23) and caddy:2.11.4-alpine (3.23) move from 20251003/20260909 to 20261020-r0 and from four emSign roots to one (emSign Root CA - G1, which the new bundle keeps). node:22-alpine (3.24) already ships 20261020-r0. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…images The python:3.12.12-alpine base ships pip 25.0.1, whose vendored certifi still trusts the compromised emSign G3 root (GHSA-6q48-6c7w-9gw2). pip is build tooling only in both images: - plane-backend: uv installs every dependency, and nothing in the entrypoints or the application invokes pip. Remove it right after the uv sync step. - plane-aio-community: pip is used once, for `pip install supervisor`. Remove it after that step. supervisor 4.3.0 has no dependencies and supervisord/supervisorctl run with pip gone. Mirrors plane-ee's backend, pi and commercial AIO images. `python -m ensurepip` restores pip if it is ever needed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e backend images grpcio 1.84.0 (latest) ships its own grpc/_cython/_credentials/roots.pem, which still trusts emSign ECC Root CA - G3 (eMudhra incident, GHSA-6q48-6c7w-9gw2). The backend uses gRPC over TLS for the OTLP telemetry exporter. Set GRPC_DEFAULT_SSL_ROOTS_FILE_PATH to the OS bundle, which the apk upgrade keeps free of G3, in the backend and AIO runtime. Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
|
Linked to Plane Work Item(s) This comment was auto-generated by Plane |
certifi 2026.10.19 removes only emSign ECC Root CA - G3 and keeps G1, C1 and C3. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…#10094) * [INFRA-843] fix(security): floor certifi at 2026.10.19 for the emSign CA distrust certifi 2026.7.22 still trusts the eMudhra/emSign roots revoked under GHSA-6q48-6c7w-9gw2 (CRITICAL), flagged by the nightly Trivy scan in plane-backend and plane-aio-community. certifi only arrives transitively (requests, httpx), so add a commented floor to the api dependencies and relock; uv moves only certifi. * [INFRA-843] fix(security): bump follow-redirects to 1.16.1 and markdown-it to 14.3.3 Both are exact pins in the pnpm overrides that new advisories overtook: - follow-redirects 1.16.0 -> 1.16.1: CVE-2026-111755 / CVE-2026-111756 (GHSA-q3jh-wrc6-jgq8, GHSA-8r9p-f939-6h3c), HIGH. - markdown-it 14.3.2 -> 14.3.3: CVE-2026-111758 (GHSA-gfr2-rv44-r23c), DoS via unclosed link reference definitions; stays on the 14.x major. Flagged by the nightly Trivy scan in plane-live, plane-space and plane-aio-community, and by Dependabot. * [INFRA-843] fix(security): bump vite to 8.2.4 vite 8.0.16 bundles a launch-editor vulnerable to command injection (CVE-2026-112942 / GHSA-587h-7wmj-h5pm, plus GHSA-r825-w8mm-5pxw and GHSA-698v-4r3x-3vcv). There is no patched 8.0.x; the fixed lines are 8.1.6, 8.2.4 and 8.3.3. Take 8.2.4, the line plane-ee is on. Every vite peer in the graph (react-router dev, vitest, storybook, vite-tsconfig-paths) accepts ^8. Flagged by the nightly Trivy scan in plane-live, plane-space and plane-aio-community (the runtime images copy node_modules wholesale), and by Dependabot. web, admin, space and live build and type-check; the live, services and blocks vitest suites pass. * [INFRA-843] fix(security): bump sanitize-html to 2.18.1 Clears the three Dependabot alerts on sanitize-html < 2.18.0 (GHSA-cv27-6wvh-8x7j, GHSA-x3q4-9hxx-gx8m, GHSA-374f-7chj-9948). Take 2.18.1 rather than the 2.18.0 floor: 2.18.0 introduced an unbounded iframe-fallback recursion (GHSA-c9rx-x947-fp3h) that 2.18.1 fixes. 2.18.1 also drops the deepmerge dependency. sanitize-html 2.18.x declares postcss ^8.5.27 while the postcss override holds 8.5.25. That is inert here: @plane/utils only passes allowedTags, and sanitize-html invokes postcss solely to filter style attributes under allowedStyles. * [INFRA-843] chore(editor): move the whole Tiptap 2.x family to 2.27.3 in lockstep Only @tiptap/core sat on 2.27.3, the release that backports the mergeAttributes __proto__ fix (GHSA-cp6q-959q-f8rh); every other @tiptap/* package was still on 2.26.x, and apps/live resolved the @tiptap/pm peer to 3.6.6, which @tiptap/core 2.x does not accept (^2.7.0). - Raise every @tiptap/* catalog floor to ^2.27.3, the last 2.x release. - Declare @tiptap/pm in apps/live so its peer resolves to the catalog 2.x. - Override @tiptap/starter-kit to the catalog: @hocuspocus/transformer otherwise keeps its own 2.26.x starter-kit and the extensions under it. The lockfile now holds a single 2.27.3 copy of every @tiptap package. This does not close Dependabot alert GHSA-cp6q-959q-f8rh: it lists only 3.30.4 as patched. Tiptap v3 needs Hocuspocus v3 (the 2.x transformer peers @tiptap/core ^2), @tiptap/y-tiptap in place of y-prosemirror and a tiptap-markdown replacement, which is a migration rather than a bump. editor, live, web, space and admin build and type-check; live tests pass. * [INFRA-843] fix(security): bump APK_SECURITY_PATCH to 2026-10-22 Alpine's ca-certificates-bundle 20261020-r0 drops the emSign ECC Root CA - G3, Root CA - C1 and ECC Root CA - C3 roots from the eMudhra/emSign incident (GHSA-6q48-6c7w-9gw2); 20260909-r0 and older still ship them. Every runtime stage's apk upgrade layer is cached under the 2026-09-07 date, so a rebuild would re-ship the old bundle. Bump the date in all seven Dockerfiles that carry it (admin, api, live, proxy, space, web, AIO) to re-run the upgrade. Checked on the amd64 runtime bases: after the upgrade, python:3.12.12-alpine (3.23) and caddy:2.11.4-alpine (3.23) move from 20251003/20260909 to 20261020-r0 and from four emSign roots to one (emSign Root CA - G1, which the new bundle keeps). node:22-alpine (3.24) already ships 20261020-r0. * [INFRA-843] fix(security): drop pip from the backend and AIO runtime images The python:3.12.12-alpine base ships pip 25.0.1, whose vendored certifi still trusts the compromised emSign G3 root (GHSA-6q48-6c7w-9gw2). pip is build tooling only in both images: - plane-backend: uv installs every dependency, and nothing in the entrypoints or the application invokes pip. Remove it right after the uv sync step. - plane-aio-community: pip is used once, for `pip install supervisor`. Remove it after that step. supervisor 4.3.0 has no dependencies and supervisord/supervisorctl run with pip gone. Mirrors plane-ee's backend, pi and commercial AIO images. `python -m ensurepip` restores pip if it is ever needed. * [INFRA-843] fix(security): point grpcio at the system CA bundle in the backend images grpcio 1.84.0 (latest) ships its own grpc/_cython/_credentials/roots.pem, which still trusts emSign ECC Root CA - G3 (eMudhra incident, GHSA-6q48-6c7w-9gw2). The backend uses gRPC over TLS for the OTLP telemetry exporter. Set GRPC_DEFAULT_SSL_ROOTS_FILE_PATH to the OS bundle, which the apk upgrade keeps free of G3, in the backend and AIO runtime. * [INFRA-1258] chore: say G3 (singular) in the certifi floor comment certifi 2026.10.19 removes only emSign ECC Root CA - G3 and keeps G1, C1 and C3.
Converge API packaging with upstream makeplane/plane v1.5.0 (66c95bd, 4906193, f7dbd74; makeplane#9950, makeplane#10098, makeplane#10094). The requirements/*.txt files become [project] dependencies and the production, dev and test groups in pyproject.toml, pinned with hashes in uv.lock (uv 0.12.21 via [tool.uv] required-version). The dependency set is the fork's: python3-saml, xmlsec, webauthn, python-magic and mistune stay as a separate block, posthog stays while event_tracking_task imports it, ruff stays at 0.16.4 and its config stays in pyproject.toml. Bumped from upstream: djangorestframework 3.18.3, urllib3>=2.8.0, certifi>=2026.10.19, and the test-only httpx pin 0.24.1 -> 0.28.1, without which the shared lock holds production at h11 0.14.0 (CVE-2025-43859). As upstream, psycopg-c is production-only and psycopg-binary dev/test-only. Dockerfile.api takes upstream's digest-pinned uv stage, bind-mounted for the install step only, GRPC_DEFAULT_SSL_ROOTS_FILE_PATH and the removal of pip from the runtime image, and keeps the fork's Alpine base and packages, APK_SECURITY_PATCH, uid 10001 and the non-writable code tree. uv's lock files are removed from /tmp in the same layer. The all-in-one image, which copies the API's site-packages, already sets the gRPC roots path and brings its own pip for supervisor. The test image installs the dev and test groups at build time, and the compose test entrypoint re-syncs against the mounted lock instead of pip-installing requirements/test.txt. The S7 dependency test now reads pyproject.toml and uv.lock, and new S1 checks pin the locked production install, the absence of pip and uv in the runtime image, the gRPC roots path and the uv image version.
Description
Community-image half of makeplane/plane-ee#10561 (same branch name, so both repos' images can be built and scanned together).
>=2026.10.19inapps/api(lock moves only certifi).APK_SECURITY_PATCH2026-09-07 → 2026-10-22 in all 7 Dockerfiles that carry it, so a rebuild pulls Alpineca-certificates20261020-r0, which drops emSign G3/C1/C3. Without the cache-bust the old bundle is re-shipped.GRPC_DEFAULT_SSL_ROOTS_FILE_PATHset to the system bundle in backend + AIO: grpcio 1.84.0 (latest) ships its ownroots.pemcontaining G3.__proto__fix). Dependabot style: new primary button design #360 lists only 3.30.4 as patched; v3 is a migration (Hocuspocus v3, y-tiptap), so style: new primary button design #360 stays open.plane-aio-community's caddy: no code change; the AIO tag predates the patchedplane-proxy:preview, so it clears on an AIO rebuild.Type of Change
Screenshots and Media (if applicable)
N/A
Test Scenarios
--ignore-unfixed, plane-ee.trivyignore.yaml): exit 0, 0 vulns, 0 secrets. Publishedpreviewtags reproduce the findings with the same DB.manage.py checkclean; celery and gunicorn start.@plane/utilssanitize smoke test.plane-aio-communityneeds a manualbuild-branch.ymldispatch withaio_build=true.References
🤖 Generated with Claude Code
Summary by CodeRabbit