Relicense from MIT to the GNU AGPL-3.0: verbatim LICENSE, the license field in every package.json, README badge + section, swagger.json, and docs. Vendor SheetJS xlsx 0.20.3 as vendor/xlsx-0.20.3.tgz and reference it via a file: dependency from the frontend and worker, so installs no longer depend on cdn.sheetjs.com. vendor/README.md documents the contents, SHA-256, and update steps. Also make the README version badge static (the dynamic shield 404'd while the repo is private).
vendor/
Third-party packages committed to the repo as tarballs instead of being pulled
from a registry/CDN at install time. Each is referenced from a package.json
via a file: dependency, so pnpm install never needs network access for it
(no CI/deploy dependency on an external host staying up).
Contents
xlsx-0.20.3.tgz — SheetJS Community Edition (spreadsheet import/export)
| Version | 0.20.3 |
| SHA-256 | 8dc73fc3b00203e72d176e85b50938627c7b086e607c682e8d3c22c02bb99fe8 |
| Upstream | https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz |
| Package license | Apache-2.0 |
| Referenced by | frontend/package.json, worker/package.json — "xlsx": "file:../vendor/xlsx-0.20.3.tgz" |
Why it's vendored: SheetJS stopped publishing xlsx to npm after 0.18.5,
and that frozen version carries two advisories — prototype pollution
(CVE-2023-30533) and ReDoS (CVE-2024-22363). The patched builds (0.19.3 /
0.20.x) ship only from cdn.sheetjs.com, so the fix is a tarball rather than
an npm version bump. Committing the tarball here gives us the patched build
without depending on that CDN at install time.
Updating a vendored package
Using xlsx as the example (replace <new> with the target version):
- Download the new tarball:
curl -fsSL -o vendor/xlsx-<new>.tgz https://cdn.sheetjs.com/xlsx-<new>/xlsx-<new>.tgz - Record its checksum and update the table above:
sha256sum vendor/xlsx-<new>.tgz - Bump the path in every referencing
package.json(frontend/,worker/) tofile:../vendor/xlsx-<new>.tgz. - Reinstall and verify the resolved version:
pnpm -C frontend install # workspace member pnpm -C worker install --ignore-workspace # standalone node -e "console.log(require('./frontend/node_modules/xlsx/package.json').version)" - Delete the old
.tgz, then commit the new tarball + thepackage.json+ this README together.