Skip to content

[INFRA-843] fix: close the 2026-10-29 nightly Trivy findings - #10144

Merged
sriramveeraghanta merged 2 commits into
previewfrom
fix/security-scan-2026-10-29
Oct 29, 2026
Merged

sriramveeraghanta merged 2 commits into
previewfrom
fix/security-scan-2026-10-29

Conversation

@pratapalakshmi

@pratapalakshmi pratapalakshmi commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

What

  • Was: on the 2026-10-29 plane-ee nightly scan, plane-frontend, plane-admin and plane-proxy were red on go-jose v4.1.5 in caddy (CVE-2026-116587). plane-live and plane-space were red on happy-dom 20.8.9 / 20.14.6 (CVE-2026-115895; CVE-2026-118660 followed on 10-28).
  • Now: caddy builds on go-jose v4.1.6 and happy-dom is 21.0.4 everywhere, so the branch images scan green.
  • proxy: the --with go-jose/v4 pin goes from v4.1.5 to v4.1.6. admin and web inherit Caddy's own v4.1.5, so they now go get v4.1.6 in the existing x/crypto / grpc pass.
  • happy-dom: the catalog goes from 20.8.9 to 21.0.4 (no 20.x fix). This also replaces the auto-installed 20.14.6 peer under @tiptap/html.
  • plane-space's private-key secret (happy-dom's bundled test cert) is suppressed in plane-ee's .trivyignore.yaml, the file the scan actually uses, so nothing for it lands here.

Where to look

  1. 🟡 pnpm-workspace.yaml + pnpm-lock.yaml: happy-dom 21.0's only break is CSS/iframe loading off by default.
  2. ⚪ apps/admin/Dockerfile.admin, apps/web/Dockerfile.web, apps/proxy/Dockerfile.ce: 3 files, the go-jose pin.

Watch out for: live's server-side HTML codec (@tiptap/html/server) now runs on happy-dom 21.

Blast Radius

  • live: HTML to Yjs conversion and title sync via @plane/editor/server (happy-dom codec).
  • space SSR of published pages, which imports the editor.
  • Every caddy route in web, admin and proxy.

Proof

Important

Confidence: Medium. Every image scans clean, and the lockfile has a single happy-dom. live's document conversion is not exercised against a running stack.

  • Ran: branch build with AIO 40838366787; nightly scan of the branch tag from plane-ee 40840255871.
  • Trivy lock scan: 4 happy-dom findings before, 0 after.
  • Not verified: live HTML / Yjs conversion and space published-page rendering at runtime.

Rollout

  • A push to preview rebuilds the service images automatically, but not the AIO. Dispatch build-branch.yml on preview with aio_build=true so plane-aio-community:preview refreshes; that tag is still from 2026-10-23.
  • EE counterpart: makeplane/plane-ee#10805.

Media

N/A

Links

  • INFRA-843; makeplane/plane-ee#10805
  • Follow-up: [WIKI-1268] chore: upgrade Tiptap and Hocuspocus to v3 #10101 put @tiptap/html in the editor's main entry, so space SSR inlines happy-dom and its test key. Keeping it out of the browser entry would let the suppression go.
  • DRI: Goutham (pratapalakshmi); autonomous agent session.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Bug Fixes
    • Updated security-related components used by the admin, proxy, and web services to newer versions.
    • Updated the browser-like environment used by the app to a version that addresses a known security issue.

CVE-2026-116587 (go-jose v4, HIGH, DoS parsing RSA JWKs) is fixed in v4.1.6.
proxy pins it with --with, so the pin moves; admin and web inherit Caddy's own
v4.1.5, so they get it in the same go get pass as x/crypto and grpc.
CVE-2026-115895 covers every 17.x-21.0.3, so there is no 20.x fix. Moving the
catalog pin also replaces the auto-installed 20.14.6 peer under @tiptap/html,
which is what plane-live and plane-space ship.
Copilot AI balanced review requested due to automatic review settings October 29, 2026 08:11

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.

@coderabbitai

coderabbitai Bot commented Oct 29, 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: 9913bf06-6a46-4977-bab3-f5c520f00399
Commits

Reviewing files that changed from the base of the PR and between 4190800 and dcfc2c1.

Files ignored due to path filters: 1
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
Files selected for processing: 4
  • apps/admin/Dockerfile.admin
  • apps/proxy/Dockerfile.ce
  • apps/web/Dockerfile.web
  • 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 Caddy build configurations now pin go-jose/v4 to v4.1.6. The workspace catalog pin for happy-dom changes to 21.0.4, with a comment documenting the stated affected-version range and fix availability.

Changes: Caddy go-jose pin

Layer / File(s) Summary
Caddy build dependency pins
apps/admin/Dockerfile.admin, apps/web/Dockerfile.web, apps/proxy/Dockerfile.ce
The admin and web Caddy builders add a go-jose/v4 v4.1.6 pin. The proxy Caddy build pin changes from v4.1.5 to v4.1.6.

happy-dom catalog pin

Layer / File(s) Summary
Workspace dependency pin
pnpm-workspace.yaml
The happy-dom catalog pin changes from 20.8.9 to 21.0.4. A comment records the stated affected-version range and the absence of a 20.x fix.

Priority: Low

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

Change: Bug fix

Possibly related PRs

Suggested reviewers: pablohashescobar

Merge Risk: Minimal · up to dcfc2

The dependency updates are consistent with the installation configuration, with no demonstrated build or runtime regression. Mergeable after normal checks.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title clearly identifies the infrastructure fix and the nightly Trivy findings it addresses.
Description check Passed The description provides detailed changes, affected areas, test evidence, limitations, rollout steps, and references. It does not use the template headings exactly and omits the Type of Change checkli…
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
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: Description check

Explanation

The description provides detailed changes, affected areas, test evidence, limitations, rollout steps, and references. It does not use the template headings exactly and omits the Type of Change checklist, but the required information is substantially covered.

Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (4 skipped: 4 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 29, 2026

Copy link
Copy Markdown

@sriramveeraghanta
sriramveeraghanta merged commit b98e1de into preview Oct 29, 2026
33 checks passed
@sriramveeraghanta
sriramveeraghanta deleted the fix/security-scan-2026-10-29 branch October 29, 2026 10:56
nettnikl pushed a commit to nettnikl/hangar that referenced this pull request Dec 1, 2026
Converge the editor and live with upstream makeplane/plane v1.5.0
(b4b48c9, 8e07d40, 9cefae8).

Backport of upstream makeplane/plane b4b48c9 (makeplane#10101), 8e07d40
(makeplane#10121) and 9cefae8 (makeplane#10267), with the happy-dom 21.0.4 pin of
b98e1de (makeplane#10144): Tiptap 3.31.3, @tiptap/y-tiptap 3.0.9, Hocuspocus
3.4.4, Redlock and happy-dom; tippy.js, y-prosemirror and
@hocuspocus/transformer are gone. The document codecs come from one
factory, with a new @plane/editor/server entry on happy-dom that live
imports. This closes GHSA-cp6q-959q-f8rh on @tiptap/core.

Adapted:
- The shared codecs keep normalizeDocumentJSON on both the browser and
  the server entry.
- Paste parsing stays on parseInertHTML; prosemirror.css is now copied
  from the 3.31.3 core style (injectCSS stays off) and loses the tippy
  rule.
- live's onAuthenticate is now upstream's: Hocuspocus 3 names the
  per-socket config connectionConfig, so the guest read-only flag lands
  there. The fork's secret-key middleware on the document controller,
  the PDF asset fetch guard and the Compose live service stay.
- The delete plugin takes ySyncPluginKey from @tiptap/y-tiptap, so it
  still ignores remote collaborator changes; markdown paste reads
  tiptap-markdown's runtime parser through a local type, which the typed
  v3 storage leaves out; the callout keeps stringToEmoji.
- The editor's security suites keep running without a DOM; upstream's
  hook and placeholder tests run in a separate happy-dom vitest project.
- Title saves stay with the editing client connection's credential, so
  upstream's Redis integration test renames the title from a client
  rather than from a server-side direct connection.
- The browser codecs' @tiptap/html DOMParser call is recorded as a
  reviewed Trusted Types sink in the web and space inventories.
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