Skip to content

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

Closed
pratapalakshmi wants to merge 1 commit into
previewfrom
fix/security-scan-2026-10-26
Closed

pratapalakshmi wants to merge 1 commit into
previewfrom
fix/security-scan-2026-10-26

Conversation

@pratapalakshmi

@pratapalakshmi pratapalakshmi commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

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/10666

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Security

    • Updated the security patch level used when building application and deployment images.
  • Bug Fixes

    • Improved compatibility with the current validation library while preserving existing validation-error responses.

…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.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 26, 2026 10:56

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 721daa6.

@coderabbitai

coderabbitai Bot commented Oct 26, 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: 116df587-a52d-4ba2-8af9-538156af6276
Commits

Reviewing files that changed from the base of the PR and between d9726d5 and 721daa6.

Files ignored due to path filters: 1
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
Files selected for processing: 9
  • apps/admin/Dockerfile.admin
  • apps/api/Dockerfile.api
  • apps/live/Dockerfile.live
  • apps/live/src/controllers/document.controller.ts
  • apps/proxy/Dockerfile.ce
  • apps/space/Dockerfile.space
  • apps/web/Dockerfile.web
  • deployments/aio/community/Dockerfile
  • pnpm-workspace.yaml

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

Walkthrough

The pull request updates workspace dependency versions, changes the document controller’s Zod validation-error property, and advances the APK security patch defaults in seven Dockerfiles.

Changes: Security updates

Layer / File(s) Summary
Dependency versions and validation mapping
pnpm-workspace.yaml, apps/live/src/controllers/document.controller.ts
The workspace updates zod to ^4.6.7, undici@7 to 7.30.1, and body-parser to 1.20.9. The document controller reads validation errors from error.issues.
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
Each Dockerfile changes the APK_SECURITY_PATCH default from 2026-10-22 to 2026-10-26.

Priority: Normal

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

Change: Bug fix

Possibly related PRs

Merge Risk: Minimal · up to 721da

The reviewed security and dependency updates present no established merge-blocking risk.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title names a ticket ID, a conventional-commit type, and a date-specific goal (closing the 2026-10-26 nightly Trivy findings). It is specific and matches the changeset, which bumps body-parser, un…
Description check Passed The description follows the template. It has a Description section that explains the Trivy findings, the package changes, the zod 4 migration, and the APK patch bump. It has a Type of Change section w…
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 1…
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: Title check

Explanation

The title names a ticket ID, a conventional-commit type, and a date-specific goal (closing the 2026-10-26 nightly Trivy findings). It is specific and matches the changeset, which bumps body-parser, undici, and zod, adds an override, updates ZodError.issues, and bumps APK_SECURITY_PATCH. It does not name the packages or the Alpine curl fix, so it covers only part of the change, but it does not mislead.

Full details: Description check

Explanation

The description follows the template. It has a Description section that explains the Trivy findings, the package changes, the zod 4 migration, and the APK patch bump. It has a Type of Change section with the Bug fix box checked. It has a Test Scenarios section with commands run and results. It has a References section linking INFRA-843 and the companion PR. The Screenshots section is marked N/A. The description says some verification (check:types and the full image builds) was not run. That gap is disclosed, not missing, so the template is satisfied.

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 1 files. (8 skipped: 8 unsupported.)

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

@pratapalakshmi

Copy link
Copy Markdown
Contributor Author

Superseded by #10120: the same commits and diff, re-raised so the commit history carries no co-author trailer. Please continue the review there.

@pratapalakshmi
pratapalakshmi deleted the fix/security-scan-2026-10-26 branch October 26, 2026 11:38
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.

2 participants