Skip to content

[INFRA-1258] fix: close nightly Trivy findings and distrust emSign G3 - #10094

Merged
sriramveeraghanta merged 9 commits into
previewfrom
fix/security-scan-2026-10-22
Oct 22, 2026
Merged

sriramveeraghanta merged 9 commits into
previewfrom
fix/security-scan-2026-10-22

Conversation

@pratapalakshmi

@pratapalakshmi pratapalakshmi commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Description

Community-image half of makeplane/plane-ee#10561 (same branch name, so both repos' images can be built and scanned together).

  • eMudhra emSign CA incident (GHSA-6q48-6c7w-9gw2):
    • certifi floor >=2026.10.19 in apps/api (lock moves only certifi).
    • APK_SECURITY_PATCH 2026-09-07 → 2026-10-22 in all 7 Dockerfiles that carry it, so a rebuild pulls Alpine ca-certificates 20261020-r0, which drops emSign G3/C1/C3. Without the cache-bust the old bundle is re-shipped.
    • pip removed from the backend and AIO runtime: its vendored certifi still trusts G3. Nothing calls pip at runtime; supervisor is installed before removal.
    • GRPC_DEFAULT_SSL_ROOTS_FILE_PATH set to the system bundle in backend + AIO: grpcio 1.84.0 (latest) ships its own roots.pem containing G3.
  • Trivy run 39701860224 + Dependabot:
    • follow-redirects 1.16.1, markdown-it 14.3.3, vite 8.0.16 → 8.2.4 (no patched 8.0.x), sanitize-html 2.18.1 (2.18.0 has its own advisory).
    • Tiptap 2.x family moved to 2.27.3 in lockstep (backports the __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.
  • Go stdlib in plane-aio-community's caddy: no code change; the AIO tag predates the patched plane-proxy:preview, so it clears on an AIO rebuild.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • Feature (non-breaking change which adds functionality)
  • Improvement (change that would cause existing functionality to not work as expected)
  • Code refactoring
  • Performance improvements
  • Documentation update

Screenshots and Media (if applicable)

N/A

Test Scenarios

  • Rebuilt backend, live and space locally and scanned with the CI command (Trivy 0.70.0, CRITICAL/HIGH, --ignore-unfixed, plane-ee .trivyignore.yaml): exit 0, 0 vulns, 0 secrets. Published preview tags reproduce the findings with the same DB.
  • AIO replica (real runner stage + fixed images) scans clean; ca-certificates-bundle 20261020-r0, no pip; supervisord runs.
  • Backend without pip: manage.py check clean; celery and gunicorn start.
  • editor, live, web, space, admin build and type-check; live, services and blocks vitest suites pass; @plane/utils sanitize smoke test.
  • grpcio honours the env var: a handshake fails with a bogus roots file and succeeds with the system bundle.
  • Not verified: web/admin/proxy images not rebuilt (only change is the APK bump). After merge, plane-aio-community needs a manual build-branch.yml dispatch with aio_build=true.

References

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Bug Fixes
    • Updated certificate handling for the API and all-in-one deployments to use system trust certificates.
  • Chores
    • Refreshed security updates across application images.
    • Updated editor and supporting web package versions, including Markdown and build tooling packages.
    • Added an editor runtime package required by the live application.
    • Removed pip package files and executable commands from selected images.

pratapalakshmi and others added 8 commits October 22, 2026 15:52
… 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]>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@coderabbitai

coderabbitai Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d5826c69-c141-4031-b0f2-5da8a22fc975
📥 Commits

Reviewing files that changed from the base of the PR and between 2166450 and 0ba15e2.

📒 Files selected for processing: 1
  • apps/api/pyproject.toml
🚧 Files skipped from review as they are similar to previous changes: 1
  • apps/api/pyproject.toml

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

📝 Walkthrough

Container images now use updated APK patch defaults. The API and community runner images receive certificate and pip-related changes. The workspace updates JavaScript dependency versions and adds a Tiptap runtime dependency to the live app.

Changes: Container image updates

Layer / File(s) Summary
APK patch defaults
apps/admin/Dockerfile.admin, apps/live/Dockerfile.live, apps/proxy/Dockerfile.ce, apps/space/Dockerfile.space, apps/web/Dockerfile.web
The default APK_SECURITY_PATCH value changes to 2026-10-22.
API and runner image settings
apps/api/Dockerfile.api, apps/api/pyproject.toml, deployments/aio/community/Dockerfile
The API and community runner images set gRPC to use the system CA bundle and remove pip files and executables after installation. The API project adds a certifi minimum version. The community runner also updates its APK patch default.

JavaScript dependency updates

Layer / File(s) Summary
Tiptap dependency alignment
pnpm-workspace.yaml, apps/live/package.json
The workspace catalog updates Tiptap versions and adds a @tiptap/starter-kit override. The live app adds @tiptap/pm as a runtime dependency.
Other package updates
pnpm-workspace.yaml
The workspace catalog updates sanitize-html, vite, markdown-it, and follow-redirects versions.

Priority: ➖ Normal

Estimated code review effort: 2 (Simple) | ~12 minutes

Change: Bug fix

Merge Risk: ⚪ Minimal · up to 0ba15

The checked dependency and image-build paths remain consistent with the changes. No identified issue blocks merging after normal checks.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title clearly summarizes the main changes: addressing nightly Trivy findings and removing trust in emSign G3.
Description check Passed The description is detailed and follows the template. It explains the changes, marks the type of change, reports test scenarios and limitations, and lists references.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@makeplane

makeplane Bot commented Oct 22, 2026

Copy link
Copy Markdown

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]>
@sriramveeraghanta
sriramveeraghanta merged commit 9648fc5 into preview Oct 22, 2026
33 checks passed
@sriramveeraghanta
sriramveeraghanta deleted the fix/security-scan-2026-10-22 branch October 22, 2026 11:45
sriramveeraghanta pushed a commit that referenced this pull request Oct 22, 2026
…#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.
szymczag added a commit to szymczag/hangar that referenced this pull request Nov 18, 2026
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants