Skip to content

Override tar to v8 in dev dependencies (no change for consumers) - #12

Merged
AndreyKozhevnikov merged 1 commit into
mainfrom
tar-override
Dec 3, 2026
Merged

AndreyKozhevnikov merged 1 commit into
mainfrom
tar-override

Conversation

@AndreyKozhevnikov

Copy link
Copy Markdown
Collaborator

Dependabot flags tar@7.5.22, which comes in through the @vvago/vale devDependency. npm audit lists 20 advisories against it (19 high, 1 moderate), and all of them are fixed only in tar 8, one of them in 8.0.2. Dependabot can't update it, because @vvago/vale@3.25.1 is the latest version and requires tar ^7.5.15. This PR forces tar 8 with an npm override.

The advisories weren't exploitable here. Every one needs a crafted archive, and tar only runs in @vvago/vale's postinstall, which unpacks a Vale release whose SHA-256 is pinned and checked before extraction. The override clears the alerts so that new tar 7 advisories stop arriving.

Changes

  • package.json: adds "overrides": { "tar": "^8.0.2" }.
  • package-lock.json: tar goes from 7.5.22 to 8.1.0. Five packages that only tar 7 needed are removed: @isaacs/fs-minipass, chownr, minipass, minizlib and yallist.

No change for consumers

npm applies overrides only in the project being installed, so consumers' dependency trees stay the same. The published files (dist/ and THIRD_PARTY_NOTICES.md) don't change either, so this doesn't need a release. Consumers who install @vvago/vale still get tar 7 in their own tree.

Compatibility

tar 8 has a new API and requires Node 22 or later.

  • @vvago/vale makes one call: tar.x({ sync: false, z: true, f, filter, onReadEntry, C }). I ran that exact call on tar 7.5.22 and 8.1.0 against a stand-in Vale archive. Both extracted only vale and LICENSE.
  • CI uses lts/*, and @devexpress/vale-style-package-publisher already requires Node 22 or later.

Remove the override once @vvago/vale moves to tar 8.

Testing

  • npm ci installs tar@8.1.0 and reports 0 vulnerabilities.
  • npm test passes: "36 files packed, vale version 3.25.1".
  • These ran on Windows, where the postinstall unpacks with yauzl instead of tar. The Ubuntu CI run on this PR is what actually tests the Vale download unpacking with tar 8.

@AndreyKozhevnikov
AndreyKozhevnikov merged commit bdd778b into main Dec 3, 2026
1 check passed
@AndreyKozhevnikov
AndreyKozhevnikov deleted the tar-override branch December 3, 2026 08:37
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