Skip to content

Partially address tar vulnerabilities#9700

Merged
tobias-jarvelov merged 3 commits intomainfrom
partially-address-tar-vuln
Jan 27, 2026
Merged

Partially address tar vulnerabilities#9700
tobias-jarvelov merged 3 commits intomainfrom
partially-address-tar-vuln

Conversation

@tobias-jarvelov
Copy link
Copy Markdown
Contributor

@tobias-jarvelov tobias-jarvelov commented Jan 23, 2026

Ignore tar CVEs for about 1 week

We have investigated the uses of the tar dependency and found two uses of it in our code base's supply chain:

  • electron-builder
  • grpc-tools (from their use of @mapbox-node-pre-gyp)

Currently the tar dependency update has not traversed all through the supply chain in the packages we depend on. electron-builder and their supply chain was very fast to bump the dependency, but it seems like @mapbox/node-pre-gyp do not currently have an update available, currently. A draft PR does exist though.

Link to draft PR for @mapbox/node-pre-gyp tar upgrade:
mapbox/node-pre-gyp#933

When this has been patched we should update immediately.


Extended reasoning on ignoring the vulnerable dependency:

The vulnerable tar dependency does not handle arbitrary tar files, as it is only used by grpc-tools to download a specific file. Unless the specific tar file, corresponding to the version of grpc-tools we depend on, is compromised then an attack is not possible.

The tar file is hosted on Github's package repository and for an attack to be possibe either the grpc-tools team or Github's package repostitory must be compromised, which currently seems unlikely.

However, even if unlikely we still want to ensure that we can protect against this attack and if a patch hasn't been made available at the end of this ignore period we will want to investigate other forms of mitigation.


This change is Reviewable

@socket-security
Copy link
Copy Markdown

socket-security Bot commented Jan 26, 2026

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatednpm/​electron-builder@​26.0.18 ⏵ 26.5.09910069 +198 +7100

View full report

@tobias-jarvelov tobias-jarvelov force-pushed the partially-address-tar-vuln branch from c03cdc8 to 33c936e Compare January 26, 2026 16:45
Copy link
Copy Markdown
Member

@faern faern left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@faern reviewed 3 files and all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved.

We have investigated the uses of the tar dependency and found two use
cases of it in our code base's supply chain:

- electron-builder
- grpc-tools (from their use of @mapbox-node-pre-gyp)

Currently the tar dependency update has not traversed all through the
supply chain in the packages we depend on. electron-builder and their
supply chain was very fast to bump the dependency, but it seems like
@mapbox/node-pre-gyp do not currently have an update available,
currently. A draft PR does exist though.

When this has been patched we should update immediately.

---

Extended reasoning on ignoring the vulnerable dependency:

The vulnerable tar dependency does not handle arbitrary tar files, as
it is only used by grpc-tools. Unless the specific tar file,
corresponding to the version of grpc-tools we depend on, is compromised
then an attack is not possible.

The tar file is hosted on Github's package repository and for an attack
to be possibe either the grpc-tools team or Github's package
repostitory must be compromised, which currently seems unlikely.

However, even if unlikely we still want to ensure that we can protect
against this attack and if a patch hasn't been made available at the
end of this ignore period we will want to investigate other forms of
mitigation.
@tobias-jarvelov tobias-jarvelov force-pushed the partially-address-tar-vuln branch from 33c936e to 432b56c Compare January 27, 2026 09:44
@tobias-jarvelov tobias-jarvelov merged commit e85d29d into main Jan 27, 2026
14 of 15 checks passed
@tobias-jarvelov tobias-jarvelov deleted the partially-address-tar-vuln branch January 27, 2026 09:51
tobias-jarvelov added a commit that referenced this pull request Mar 4, 2026
See justification in the original PR:
#9700
tobias-jarvelov added a commit that referenced this pull request Mar 4, 2026
See justification in the original PR:
#9700
tobias-jarvelov added a commit that referenced this pull request Mar 11, 2026
See justification in the original PR:
#9700
tobias-jarvelov added a commit that referenced this pull request Mar 13, 2026
See justification in the original PR:
#9700
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