Skip to content

[INFRA-843] fix: close the 2026-10-26 nightly Trivy findings - #10120

Merged
sriramveeraghanta merged 1 commit into
previewfrom
fix/security-scan-2026-10-26-v2
Oct 26, 2026
Merged

sriramveeraghanta merged 1 commit into
previewfrom
fix/security-scan-2026-10-26-v2

Conversation

@pratapalakshmi

@pratapalakshmi pratapalakshmi commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Replaces #10119: the same commit and diff, re-raised so the history carries no co-author trailer.

Description

Clears the findings that fail the community legs (plane-live, plane-space, plane-aio-community) of plane-ee's nightly Trivy scan (run 40251334553). The advisories were published on 2026-10-23, after the last image push.

Package Before After CVE
body-parser (exact pin) 1.20.6 1.20.9 CVE-2026-111181
undici@7 (exact pin) 7.30.0 7.30.1 CVE-2026-109869
zod (catalog + override) 3.25.76 4.6.7 CVE-2023-54404 (no 3.x fix)
curl / libcurl (Alpine) 8.22.0-r0 8.23.0-r0 CVE-2026-92392
  • zod 3 has no fixed release, so the catalog moves to ^4.6.7. An override keeps eslint-plugin-react-hooks, which declares ^3.25.0 || ^4.0.0, on the same copy. The only code change is that apps/live document controller now reads ZodError.issues, because zod 4 removed .errors. That matches plane-ee's live controllers.
  • APK_SECURITY_PATCH goes to 2026-10-26 in all 7 Dockerfiles. That busts buildx's cached apk-upgrade layer so a rebuild installs curl 8.23.0-r0.
  • The companion plane-ee PR uses the same branch name, so one scan dispatch covers both repos. That PR also adds a .trivyignore.yaml entry for **/node_modules/.pnpm/zod@3.25.76/**, which plane-ee's scan applies to these images too. This PR removes zod 3 from this repo entirely, so that entry hides nothing here.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

Screenshots and Media (if applicable)

N/A

Test Scenarios

  • Ran aquasec/trivy:0.70.0 fs --severity CRITICAL,HIGH --ignore-unfixed --include-dev-deps on pnpm-lock.yaml before and after this change: 3 findings (body-parser, undici, zod) before, 0 after.
  • OS fix: built faithful replicas of the space runner (node:22-alpine + apk upgrade + apk del go + npm removal + apk add curl) and the AIO runner (python:3.12.12-alpine + apk upgrade + the real apk add list). Scanned with --platform linux/amd64, both gave 0 findings with curl/libcurl 8.23.0-r0.
  • Not verified: I didn't run check:types or build the full app images here. To check, run pnpm --filter live check:types and test POST /convert-document with an invalid body; it should return a 400 with validationErrors. Then dispatch build-branch.yml on this branch and scan with tag_name=fixsecurity-scan-2026-10-26.

References

INFRA-843. Companion plane-ee PR: https://github.com/makeplane/plane-ee/pull/10681

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Refreshed container builds to pick up the latest Alpine security updates across the application services and community all-in-one image.
    • Updated validation handling while preserving the existing error response format and status code.
    • No user-facing features or changes to application behavior are included in this release.

…o 2026-10-26

Advisories that red the plane-live, plane-space and plane-aio-community
legs of the nightly scan:
- body-parser CVE-2026-111181: exact pin 1.20.6 -> 1.20.9
- undici CVE-2026-109869: exact pin 7.30.0 -> 7.30.1
- zod CVE-2023-54404: no 3.x fix, so the catalog moves ^3.25.76 -> ^4.6.7
  and an override keeps eslint-plugin-react-hooks on it too. The live
  document controller reads ZodError.issues (zod 4 dropped .errors).
- curl/libcurl CVE-2026-92392: APK_SECURITY_PATCH 2026-10-26 busts the
  cached apk-upgrade layer so a rebuild installs 8.23.0-r0.
Copilot AI balanced review requested due to automatic review settings October 26, 2026 11:37

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 insufficient remaining quota.

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.

@github-actions

Copy link
Copy Markdown

React Doctor found no new issues. 🎉

Reviewed by React Doctor for commit 2e0710f.

@coderabbitai

coderabbitai Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Caution

Review failed

The pull request is closed.

Walkthrough

The Dockerfiles update their APK security-patch defaults. The workspace updates Zod, undici, and body-parser versions. The live document controller reads validation errors from ZodError.issues.

Changes: APK security-patch defaults

Layer / File(s) Summary
Update APK security-patch defaults
apps/admin/Dockerfile.admin, apps/api/Dockerfile.api, apps/live/Dockerfile.live, apps/proxy/Dockerfile.ce, apps/space/Dockerfile.space, apps/web/Dockerfile.web, deployments/aio/community/Dockerfile
These Dockerfiles change the APK_SECURITY_PATCH default from 2026-10-22 to 2026-10-26. The APK update and upgrade commands remain unchanged where noted.

Workspace dependency and validation updates

Layer / File(s) Summary
Update workspace dependency versions
pnpm-workspace.yaml
The workspace updates the Zod catalog to ^4.6.7, updates the undici@7 override to 7.30.1, updates the body-parser override to 1.20.9, and adds a Zod override that follows the catalog.
Read Zod validation issues
apps/live/src/controllers/document.controller.ts
The validation-error response maps error.issues instead of error.errors. Its formatting and status code remain unchanged.

Priority: Not assessed

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

Change: Bug fix

Possibly related PRs

Merge Risk: Minimal · up to 2e071

No identified issue blocks merging this security-update PR after normal checks.

Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 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 26, 2026

Copy link
Copy Markdown

@sriramveeraghanta
sriramveeraghanta merged commit 92054a2 into preview Oct 26, 2026
21 of 24 checks passed
@sriramveeraghanta
sriramveeraghanta deleted the fix/security-scan-2026-10-26-v2 branch October 26, 2026 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants