Skip to content

Bump tar from 6.2.1 to 7.5.10#4070

Closed
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/npm_and_yarn/tar-7.5.10
Closed

Bump tar from 6.2.1 to 7.5.10#4070
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/npm_and_yarn/tar-7.5.10

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 5, 2026

Bumps tar from 6.2.1 to 7.5.10.

Changelog

Sourced from tar's changelog.

Changelog

7.5

  • Added zstd compression support.
  • Consistent TOCTOU behavior in sync t.list
  • Only read from ustar block if not specified in Pax
  • Fix sync tar.list when file size reduces while reading
  • Sanitize absolute linkpaths properly
  • Prevent writing hardlink entries to the archive ahead of their file target

7.4

  • Deprecate onentry in favor of onReadEntry for clarity.

7.3

  • Add onWriteEntry option

7.2

  • DRY the command definitions into a single makeCommand method, and update the type signatures to more appropriately infer the return type from the options and arguments provided.

7.1

  • Update minipass to v7.1.0
  • Update the type definitions of write() and end() methods on Unpack and Parser classes to be compatible with the NodeJS.WritableStream type in the latest versions of @types/node.

7.0

  • Drop support for node <18
  • Rewrite in TypeScript, provide ESM and CommonJS hybrid interface
  • Add tree-shake friendly exports, like import('tar/create') and import('tar/read-entry') to get individual functions or classes.
  • Add chmod option that defaults to false, and deprecate noChmod. That is, reverse the default option regarding explicitly setting file system modes to match tar entry settings.
  • Add processUmask option to avoid having to call process.umask() when chmod: true (or noChmod: false) is set.

... (truncated)

Commits
  • 2b72abc 7.5.10
  • 7bc755d parse root off paths before sanitizing .. parts
  • c8cb846 update deps
  • 1f0c2c9 7.5.9
  • fbb0851 build minified version as default export
  • 6b8eba0 7.5.8
  • 2cb1120 fix(unpack): improve UnpackSync symlink error "into" path accuracy
  • d18e4e1 fix: do not write linkpaths through symlinks
  • 4a37eb9 7.5.7
  • f4a7aa9 fix: properly sanitize hard links containing ..
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by isaacs, a new releaser for tar since your current version.

Install script changes

This version adds prepare script that runs during installation. Review the package contents before updating.


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Mar 5, 2026
@vercel
Copy link

vercel bot commented Mar 5, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
umami Error Error Mar 5, 2026 5:42am
3 Skipped Deployments
Project Deployment Actions Updated (UTC)
umami-analytics-eu Ignored Ignored Mar 5, 2026 5:42am
umami-analytics-us Ignored Ignored Mar 5, 2026 5:42am
umami-postgresql Ignored Ignored Mar 5, 2026 5:42am

Request Review

@greptile-apps
Copy link
Contributor

greptile-apps bot commented Mar 5, 2026

Greptile Summary

This PR bumps the tar devDependency from 6.2.1 to 7.5.10, a major version upgrade that includes several important security fixes (path traversal and symlink hardening) and drops support for Node.js < 18.

  • tar is used exclusively as a devDependency, only in scripts/build-geo.js for streaming-parsing of a .tar.gz GeoLite2 database file.
  • The usage pattern (tar.t() piped from a gunzip stream, with an .on('entry', ...) listener to extract .mmdb files) is compatible with the tar v7 API; the entry event is still emitted by the Parse stream in v7 — only the onentry option was deprecated in favor of onReadEntry in v7.4.
  • All transitive dependencies (chownr, fs-minipass, minipass, minizlib, yallist) were also updated to Node >=18-only major versions, consolidating several previously duplicated minipass/yallist versions in the lock file.
  • The chmod-default-to-false behavior change introduced in v7.0 only affects extraction via tar.x(); the build-geo.js script uses tar.t() (list/parse mode) and is unaffected.
  • The updated deprecation notices for glob@7, glob@8, and glob@10 in the lockfile are informational metadata changes with no behavioral impact.

Confidence Score: 5/5

  • This PR is safe to merge; it is a devDependency-only security update with no production runtime impact.
  • tar is a devDependency used only in a build script. The single call site in scripts/build-geo.js uses tar.t() with the event-based API, which remains compatible with v7. All breaking changes in v7 (Node >=18 requirement, chmod default flip, onentry deprecation) either don't apply to this usage pattern or are already satisfied by the project's environment assumptions.
  • No files require special attention.

Sequence Diagram

sequenceDiagram
    participant Script as build-geo.js
    participant HTTPS as https.get()
    participant Zlib as zlib.createGunzip()
    participant Tar as tar.t() (Parse stream)
    participant FS as fs.createWriteStream()

    Script->>HTTPS: GET .tar.gz URL
    HTTPS-->>Zlib: pipe compressed response
    Zlib-->>Tar: pipe decompressed tar stream
    Tar-->>Script: emit 'entry' event per archive entry
    Script->>Script: filter entries ending with .mmdb
    Script->>FS: pipe matching entry to geo/GeoLite2-City.mmdb
    Tar-->>Script: emit 'finish' → resolve promise
Loading

Last reviewed commit: 95de8e5

Bumps [tar](https://github.com/isaacs/node-tar) from 6.2.1 to 7.5.10.
- [Release notes](https://github.com/isaacs/node-tar/releases)
- [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md)
- [Commits](isaacs/node-tar@v6.2.1...v7.5.10)

---
updated-dependencies:
- dependency-name: tar
  dependency-version: 7.5.10
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Mar 5, 2026

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot dependabot bot deleted the dependabot/npm_and_yarn/tar-7.5.10 branch March 5, 2026 05:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant