Skip to content

fix: update tar to >=7.5.7 to address CVE#1343

Merged
rudivanhierden merged 5 commits intomainfrom
fix/tar-vulnerability
Feb 11, 2026
Merged

fix: update tar to >=7.5.7 to address CVE#1343
rudivanhierden merged 5 commits intomainfrom
fix/tar-vulnerability

Conversation

@rudivanhierden
Copy link
Contributor

@rudivanhierden rudivanhierden commented Jan 27, 2026

Add npm override to force tar dependency to version 7.5.7 or higher. This change would lead to reproducible errors with npm ci in either local or docker installation, so this PR opts to return to the npm i command for now until we can find a stable fix.

Add npm override to force tar dependency to version 7.5.4 or higher,
addressing CVE in tar versions before 7.5.4.
@rudivanhierden rudivanhierden requested review from a team as code owners January 27, 2026 14:57
@rudivanhierden rudivanhierden requested review from OscarBakker and iandebruin98 and removed request for a team January 27, 2026 14:57
@cypress
Copy link

cypress bot commented Jan 27, 2026

Openstad Headless    Run #1345

Run Properties:  status check passed Passed #1345  •  git commit 44e30fdd73 ℹ️: Merge 2fa3419dc921be3da4db61d5cecdaa3875e293f7 into 1ff2b7cd8bb93dcfafd7abb6558b...
Project Openstad Headless
Branch Review fix/tar-vulnerability
Run status status check passed Passed #1345
Run duration 22m 14s
Commit git commit 44e30fdd73 ℹ️: Merge 2fa3419dc921be3da4db61d5cecdaa3875e293f7 into 1ff2b7cd8bb93dcfafd7abb6558b...
Committer Rudi van Hierden
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 67
View all changes introduced in this branch ↗︎

@rudivanhierden rudivanhierden added this to the v2.3 milestone Feb 4, 2026
@rudivanhierden rudivanhierden changed the title fix: update tar to >=7.5.4 to address CVE fix: update tar to >=7.5.7 to address CVE Feb 4, 2026
- Resolved conflict in package.json overrides section
- Consolidated duplicate overrides into single section
- Updated tar override to >=7.5.7 (security fix)
- Added node-gyp and @isaacs/brace-expansion overrides for compatibility
@rudivanhierden rudivanhierden force-pushed the fix/tar-vulnerability branch 2 times, most recently from 3b45a74 to d5c058f Compare February 5, 2026 18:44
npm ci has been unreliable across local, CI, and Docker build
environments due to lockfile mismatches. Switch to npm i which
works consistently everywhere. Regenerate package-lock.json.
Vite version mismatch between local (6.x) and hoisted (7.x) caused
Plugin type incompatibility during tsc. The config is only needed at
Vite runtime, not as part of the library type output.
@iandebruin98 iandebruin98 modified the milestones: v2.3, v2.4 Feb 11, 2026
- Remove @isaacs/brace-expansion override that corrupted lock file generation
- Make node-gyp override conditional (node-gyp@<10.0.0) to avoid breaking sqlite3
- Add tar@7.5.7 as direct dependency + override for security fix
- Revert Dockerfile to npm ci for deterministic builds
- Use npm ci --safe-chain-skip-minimum-package-age in CI and Docker
  to prevent safe-chain from suppressing recently-published tar@7.5.7
- Regenerate package-lock.json cleanly from main (423 lines vs 91k)
@rudivanhierden rudivanhierden merged commit afc2434 into main Feb 11, 2026
19 checks passed
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.

2 participants