fix(deps): replace vulnerable xlsx release - #67
Open
alexandroit wants to merge 1 commit into
Open
alexandroit wants to merge 1 commit into
alexandroit wants to merge 1 commit into
Conversation
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.
Why
Angular T9n dynamically imports
xlsxin its translation import and export services. The npmxlsx@0.18.5release is affected by GHSA-4r6h-8v6p-xvw6 (prototype pollution) and GHSA-5pgg-2g8v-p4x9 (ReDoS).This changes only the dev dependency target to
"xlsx": "npm:@stackline/xlsx@^1.0.6". Existingimport('xlsx')calls and TypeScript usage remain unchanged.@stackline/xlsxis an independent, maintained SheetJS-compatible fork with regression tests for both advisories. Its Node 20+ requirement is below this repository's Node 24.15 development contract.Disclosure: I maintain the Stackline fork. A neutral alternative is SheetJS CE 0.20.3 from the official tarball.
Validation
npm ci --ignore-scripts: passednpm run lint: passednpm test: 170 passednpm run build: passednpm ls xlsx --all: resolvesxlsx@npm:@stackline/xlsx@1.0.6The XLSX code remains a lazy chunk. Its estimated transfer size changes from 119.24 KB in the baseline build to 136.57 KB; the initial application chunk remains 517.78 KB. This is disclosed as the measurable cost of moving from the old npm build to the hardened current fork.
Only
package.jsonandpackage-lock.jsonare changed.