Repository navigation
fix(deps): migrate xlsx to the SheetJS-maintained CDN tarball - #1855
Merged
yannickmonney merged 1 commit intoJun 10, 2026
Merged
Conversation
The npm xlsx release line is frozen at 0.18.5 with two open HIGH advisories (GHSA-4r6h-8v6p-xvw6 prototype pollution, GHSA-5pgg-2g8v-p4x9 ReDoS) — the last prod-tree blocker for ratcheting the CVE gates to HIGH (#1498). SheetJS distributes fixed releases via cdn.sheetjs.com, so the dependency now pins the 0.20.3 CDN tarball; bun.lock records the integrity hash as the supply-chain control. The import specifier and all call-site APIs (read, write, sheet_to_json, sheet_to_html, aoa_to_sheet, book_new, book_append_sheet) are unchanged. xlsx leaves convex.json node.externalPackages because Convex installs externals from the npm registry by version, which cannot resolve a URL dependency — esbuild now bundles the CDN build into the node action (~960 KB, verified to bundle and load). The three xlsx accept-risk entries in .trivyignore.yaml are removed: the advisories are fixed, not suppressed. Renovate/OSV cannot track URL deps, so the pin is bumped manually when cdn.sheetjs.com announces a release (noted at the import sites). Validated: full audit clean at --audit-level=high; parse/generate round-trip on the CDN build; platform production build emits the vendor-xlsx chunk; targeted tests for file-parsing, use-file-import and process_attachments pass.
7 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What / why
Part of #1803 (security epic) · Part of #1498 (CVE gate ratchet). Stacked on #1854.
Removes the last prod-tree HIGH advisories: npm's
xlsxis frozen at 0.18.5 with two open HIGHs (GHSA-4r6h-8v6p-xvw6 prototype pollution, GHSA-5pgg-2g8v-p4x9 ReDoS). SheetJS ships fixed releases off-registry, so the dependency now pins the maintained CDN tarball:services/platform/package.json:xlsx: 0.18.5→https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz.bun.lockrecords the tarball integrity hash (the supply-chain control for the off-registry source). Import specifier and all call-site APIs are unchanged (read,write,sheet_to_json,sheet_to_html,aoa_to_sheet,book_new,book_append_sheet).services/platform/convex.json:xlsxremoved fromnode.externalPackages— Convex installs externals from the npm registry by version, which cannot resolve a URL dep; esbuild now bundles the CDN build into the node action (~960 KB, verified to bundle and load)..trivyignore.yaml: the three xlsx accept-risk entries are deleted — the advisories are fixed, not suppressed.Decision-gate recommendations baked in
Coordination with #1522
The DOCX/XLSX "Index failed" fix (#1522) touches the same attachment parse path (
process_attachments.ts→parseExcel). This migration may independently improve XLSX indexing (0.20.x contains parse fixes absent from 0.18.5) — whichever lands second should re-validate the chat-attachment XLSX path, and the #1522 repro file should be re-run against this build.Verification
Performed:
sheet_to_htmlfor document preview).bun audit --audit-level=high→ 0 advisories.vite build) emits thevendor-xlsxchunk from the CDN build.convex/node_only/documents/internal_actions.tswith xlsx inlined builds (~960 KB) and loads, exportinggenerateExcel/parseExcel.file-parsing,use-file-import,process_attachments(39 tests) pass; platform typecheck green.bun run checkgreen at the head of this PR chain.Manual verification required:
bun install --production(Dockerfile line 134) must reachcdn.sheetjs.comfrom the builder — confirm egress..xlsx(attachment indexing), customer/vendor/product import dialogs, agent Excel generation; re-run the Bug: File Upload Shows “Index Failed” for Supported Formats (DOCX, XLSX) #1522 repro file.Pre-PR checklist
bun run check(format, lint, typecheck, all tests).services/platform/messages/{en,de,fr}.json— N/A./docs/{en,de,fr}/— N/A (no user-visible behaviour change; parser version swap).bun run --filter @tale/docs lintandtest— N/A.