Menu

Why We Replaced SheetJS (xlsx@0.18.5) With a 460-Line Zero-CVE OOXML Codec in Next.js & Cloudflare Workers
📰

Why We Replaced SheetJS ([email protected]) With a 460-Line Zero-CVE OOXML Codec in Next.js & Cloudflare Workers

DEV Community: nextjs·Sergiu Golub·1 day ago
#eZ0VA2XU
#devtonextjs#devto#dev#xlsx#excel
Long article (949 words) — no AI summary yet.
Reading 0:00
15s threshold

If you run npm audit on almost any JavaScript project that reads or writes Excel spreadsheets, you have probably seen this warning:

xlsx * Severity: high Prototype Pollution in sheetJS - GHSA-4r6h-8v6p-xvw6 SheetJS Regular Expression Denial of Service (ReDoS) - GHSA-5pgg-2g8v-p4x9 No fix available

Enter fullscreen mode

Exit fullscreen mode

SheetJS stopped publishing security updates to the public npm registry after 0.18.5 . For teams deploying Next.js applications to Cloudflare Workers, leaving an unpatched high-severity dependency in production is a recurring security audit headache — and pulling the full xlsx library statically also adds roughly 400 KB to client bundles even when a user never clicks "Export XLSX".

While auditing ToolsMetrics (a privacy-first suite of 198 client-side web tools and calculators running on Next.js 16 + OpenNext Cloudflare Workers), we looked at what our three Excel-enabled tools actually needed:

Reading .xlsx (OOXML) and UTF-8 .csv files into 2D string matrices (…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.