Skip to content

fix(deps): clear transitive HIGH advisory backlog - #1854

Merged
yannickmonney merged 2 commits into
mainfrom
fix/cve-high-backlog-lockfile
Jun 11, 2026
Merged

yannickmonney merged 2 commits into
mainfrom
fix/cve-high-backlog-lockfile

Conversation

@yannickmonney

Copy link
Copy Markdown
Contributor

What / why

Part of #1803 (security epic) · Part of #1498 (CVE gate ratchet).

Clears the transitive HIGH advisory backlog that blocks ratcheting the CI security gates from CRITICAL to HIGH. After this PR, bun audit --prod --audit-level=high reports only the two xlsx advisories, which the next PR in this chain removes by migrating to the SheetJS CDN build.

Advisory Package Fix
GHSA-c2c7-rcm5-vvqj (ReDoS via extglob) picomatch 2.3.1 / 4.0.3 Lockfile resolution bumps to 2.3.2 / 4.0.4 — all parents declare compatible ranges, no override needed
GHSA-r5fr-rjxr-66jc (_.template code injection) lodash ≤4.17.23 Root overrides entry lodash: 4.18.1 (matches the existing lodash-es override); defeats commitizen's exact 4.17.21 pin. The now-false "no fixed release" accept-risk entry is removed from .trivyignore.yaml
6 tar GHSAs (path traversal family) tar 6.2.1 Dropped the orphaned [email protected] lock entry: jsdom 29 optional-peers canvas ^3.0.0 and no workspace declares canvas, so the whole canvas → @mapbox/node-pre-gyp → tar chain leaves the lockfile
GHSA-ph9p-34f9-6g65 (symlink) tmp 0.0.33 (dev-only) Root overrides entry tmp: 0.2.6 — needed because the Trivy gate scans the lockfile with no prod/dev split

Decision-gate recommendations baked in

  • tmp: root override to 0.2.6 (recommended) instead of a dated dev-only accept-risk entry; external-editor's tmp.fileSync usage verified against 0.2.x.

Verification

  • bun audit --prod --audit-level=high → only the two xlsx HIGHs remain (cleared in the follow-up PR); full dev-inclusive audit identical.
  • bun install --frozen-lockfile passes (lockfile consistent).
  • Smoke-tested tmp.fileSync + external-editor (commitizen path) and jsdom without canvas.
  • bun run check green at the head of this PR chain.

Pre-PR checklist

  • Ran bun run check (format, lint, typecheck, all tests).
  • No hand-rolled skeletons — N/A (lockfile/overrides only).
  • Updated services/platform/messages/{en,de,fr}.json — N/A.
  • Updated /docs/{en,de,fr}/ — N/A (no user-visible change).
  • Docs opening/closing bar — N/A.
  • Ran bun run --filter @tale/docs lint and test — N/A.
  • Updated READMEs — N/A.

Remediates the HIGH advisories blocking the CVE gate ratchet (#1498),
leaving xlsx as the only remaining HIGH in the tree:

- picomatch: bump lockfile resolutions 2.3.1 -> 2.3.2 and 4.0.3 -> 4.0.4
  (GHSA-c2c7-rcm5-vvqj, ReDoS via extglob quantifiers); all parents
  declare compatible ranges, no override needed.
- lodash: root override to 4.18.1 (GHSA-r5fr-rjxr-66jc, _.template code
  injection, fixed in 4.18.x) — defeats commitizen's exact 4.17.21 pin
  and the 4.17.23 transitive resolutions. The now-stale accept-risk
  entry (advisory had no fix when recorded) is removed from
  .trivyignore.yaml.
- tar: drop the orphaned [email protected] lock entry; jsdom 29 optional-
  peers canvas ^3.0.0 and no workspace declares it, so the entire
  canvas -> @mapbox/node-pre-gyp -> [email protected] chain (6 tar GHSAs)
  leaves the lockfile.
- tmp: root override to 0.2.6 (GHSA-ph9p-34f9-6g65, dev-only via
  external-editor); external-editor's tmp.fileSync usage verified
  against 0.2.x.

bun audit --prod --audit-level=high now reports only the two xlsx
advisories (migrated separately).
@coderabbitai

coderabbitai Bot commented Jun 10, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@yannickmonney, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 42 minutes and 28 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: d18b731d-b4f2-4746-b4c5-5bfeb996c821

📥 Commits

Reviewing files that changed from the base of the PR and between 5d6a2c3 and 913cdb3.

⛔ Files ignored due to path filters (1)
  • bun.lock is excluded by !**/*.lock
📒 Files selected for processing (6)
  • .trivyignore.yaml
  • package.json
  • services/platform/app/features/documents/hooks/use-document-preview.ts
  • services/platform/convex.json
  • services/platform/convex/node_only/documents/internal_actions.ts
  • services/platform/package.json
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/cve-high-backlog-lockfile

Warning

Billing warning: we have not been able to collect payment for this subscription for more than 72 hours. Please update the payment method or pay any pending invoices in Billing to avoid service interruption.


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 and usage tips.

@yannickmonney
yannickmonney merged commit 3ffa5ce into main Jun 11, 2026
31 checks passed
@yannickmonney
yannickmonney deleted the fix/cve-high-backlog-lockfile branch June 11, 2026 00:18
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.

1 participant