Skip to content

Hold tar at one version, past the advisories - #37

Merged
Harted merged 1 commit into
mainfrom
chore/resolve-tar
Aug 28, 2026
Merged

Hold tar at one version, past the advisories#37
Harted merged 1 commit into
mainfrom
chore/resolve-tar

Conversation

@Harted

@Harted Harted commented Aug 28, 2026

Copy link
Copy Markdown
Member

Thirteen of the open alerts are on tar, including the one marked critical, and all of them arrive through the node-gyp subtree that the packaged app carries.

The tree held three copies:

$ yarn why tar | grep -oE "tar@npm:[0-9.]+" | sort -u
tar@npm:7.5.1
tar@npm:7.5.22
tar@npm:7.5.9

The highest fix version the open alerts ask for is 7.5.21, and 7.5.22 is current, so one resolution covers all three. After it:

$ grep -E '^"?tar@npm:' yarn.lock | sort -u
"tar@npm:^7.5.22":

$ yarn why tar | grep -oE "tar@npm:[0-9.]+" | sort -u
tar@npm:7.5.22

package.json already resolves ip-address and node-abi this way.

What this does not do

It does not make the package smaller, and it does not stop the app shipping code it never runs. Dependabot reads the lockfile, so this changes what the list says; files in electron-builder.yml is what changes what a user gets. Those are separate, and this is the first of the two.

What was run

Lint, typecheck, the unit tests, and a packaged run of the navigation spec, since tar sits in the path electron-builder and node-gyp both use. The full matrix runs on this branch.

The tree carried three copies, pulled in by cacache, app-builder-lib and
node-gyp, and the older two are what the open tar alerts name. A single
resolution collapses them:

    "tar@npm:^7.5.22":
      version: 7.5.22

Nothing vulnerable is left in the lockfile, which is what Dependabot
reads. Whether it also shrinks the package is a different question with
a different answer: excluding node-gyp from files is what changes that.

package.json already resolves ip-address and node-abi the same way.
@Harted
Harted marked this pull request as ready for review August 28, 2026 13:41
@Harted
Harted merged commit 446cc7d into main Aug 28, 2026
7 checks passed
@Harted
Harted deleted the chore/resolve-tar branch August 28, 2026 13:41
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.

1 participant