Skip to content

Update dependency tar-fs to v2.1.4 [SECURITY]#66

Open
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/npm-tar-fs-vulnerability
Open

Update dependency tar-fs to v2.1.4 [SECURITY]#66
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/npm-tar-fs-vulnerability

Conversation

@renovate

@renovate renovate Bot commented Mar 29, 2025

Copy link
Copy Markdown

This PR contains the following updates:

Package Change Age Confidence
tar-fs 2.1.12.1.4 age confidence

tar-fs Vulnerable to Link Following and Path Traversal via Extracting a Crafted tar File

CVE-2024-12905 / GHSA-pq67-2wwv-3xjx

More information

Details

An Improper Link Resolution Before File Access ("Link Following") and Improper Limitation of a Pathname to a Restricted Directory ("Path Traversal"). This vulnerability occurs when extracting a maliciously crafted tar file, which can result in unauthorized file writes or overwrites outside the intended extraction directory. The issue is associated with index.js in the tar-fs package.

This issue affects tar-fs: from 0.0.0 before 1.16.4, from 2.0.0 before 2.1.2, from 3.0.0 before 3.0.7.

PoC
// Create a writable stream to extract the tar content
const extractStream = tarfs.extract('/', {
    // We can ignore the file type checks to allow the extraction of the malicious file
    ignore: (name) => false,
});

// Create a tar stream
const tarStream = tarfs.pack().on('error', (err) => {
    throw err;
});

// Append the malicious entry to the tar stream
tarStream.entry({ name: '/flag.txt', mode: 0o644 }, Buffer.from('This is a flag!'));

// Finalize the tar stream
tarStream.finalize();

// Pipe the tar stream into the extract stream
tarStream.pipe(extractStream);

Severity

  • CVSS Score: 7.5 / 10 (High)
  • Vector String: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


tar-fs can extract outside the specified dir with a specific tarball

CVE-2025-48387 / GHSA-8cj5-5rvv-wf4v

More information

Details

Impact

v3.0.8, v2.1.2, v1.16.4 and below

Patches

Has been patched in 3.0.9, 2.1.3, and 1.16.5

Workarounds

You can use the ignore option to ignore non files/directories.

  ignore (_, header) {
    // pass files & directories, ignore e.g. symlinks
    return header.type !== 'file' && header.type !== 'directory'
  }
Credit

Thank you Caleb Brown from Google Open Source Security Team for reporting this in detail.

Severity

  • CVSS Score: 8.7 / 10 (High)
  • Vector String: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


tar-fs has a symlink validation bypass if destination directory is predictable with a specific tarball

CVE-2025-59343 / GHSA-vj76-c3g6-qr5v

More information

Details

Impact

v3.1.0, v2.1.3, v1.16.5 and below

Patches

Has been patched in 3.1.1, 2.1.4, and 1.16.6

Workarounds

You can use the ignore option to ignore non files/directories.

  ignore (_, header) {
    // pass files & directories, ignore e.g. symlinks
    return header.type !== 'file' && header.type !== 'directory'
  }
Credit

Reported by: Mapta / BugBunny_ai

Severity

  • CVSS Score: 8.7 / 10 (High)
  • Vector String: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


Release Notes

mafintosh/tar-fs (tar-fs)

v2.1.4

Compare Source

v2.1.3

Compare Source

v2.1.2

Compare Source


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot force-pushed the renovate/npm-tar-fs-vulnerability branch from bbb5a0a to a9e8016 Compare June 3, 2025 09:49
@renovate renovate Bot changed the title chore(deps): update dependency tar-fs to v2.1.2 [security] chore(deps): update dependency tar-fs to v2.1.3 [security] Jun 3, 2025
@renovate renovate Bot force-pushed the renovate/npm-tar-fs-vulnerability branch from a9e8016 to 932ef7b Compare June 22, 2025 14:07
@renovate renovate Bot force-pushed the renovate/npm-tar-fs-vulnerability branch from 932ef7b to 0ee67a1 Compare August 10, 2025 13:34
@renovate renovate Bot force-pushed the renovate/npm-tar-fs-vulnerability branch from 0ee67a1 to 72265be Compare September 26, 2025 18:46
@renovate renovate Bot changed the title chore(deps): update dependency tar-fs to v2.1.3 [security] chore(deps): update dependency tar-fs to v2.1.4 [security] Sep 26, 2025
@renovate renovate Bot force-pushed the renovate/npm-tar-fs-vulnerability branch from 72265be to f43bca1 Compare September 26, 2025 20:43
@renovate renovate Bot changed the title chore(deps): update dependency tar-fs to v2.1.4 [security] chore(deps): update dependency tar-fs to v2.1.3 [security] Sep 26, 2025
@renovate renovate Bot force-pushed the renovate/npm-tar-fs-vulnerability branch from f43bca1 to 77f7298 Compare November 11, 2025 02:46
@renovate renovate Bot force-pushed the renovate/npm-tar-fs-vulnerability branch from 77f7298 to 7832c40 Compare November 19, 2025 00:55
@renovate renovate Bot force-pushed the renovate/npm-tar-fs-vulnerability branch from 7832c40 to 28c445e Compare December 3, 2025 14:37
@renovate renovate Bot force-pushed the renovate/npm-tar-fs-vulnerability branch from 28c445e to 1f81de9 Compare January 17, 2026 17:00
@renovate renovate Bot changed the title chore(deps): update dependency tar-fs to v2.1.3 [security] chore(deps): update dependency tar-fs to v2.1.4 [security] Jan 17, 2026
@renovate renovate Bot force-pushed the renovate/npm-tar-fs-vulnerability branch from 1f81de9 to 367e2a9 Compare March 5, 2026 18:43
@renovate renovate Bot force-pushed the renovate/npm-tar-fs-vulnerability branch from 367e2a9 to 3d34d7c Compare March 13, 2026 15:54
@renovate renovate Bot changed the title chore(deps): update dependency tar-fs to v2.1.4 [security] chore(deps): update dependency tar-fs to v2.1.4 [security] - autoclosed Mar 27, 2026
@renovate renovate Bot closed this Mar 27, 2026
@renovate renovate Bot deleted the renovate/npm-tar-fs-vulnerability branch March 27, 2026 01:51
@renovate renovate Bot changed the title chore(deps): update dependency tar-fs to v2.1.4 [security] - autoclosed chore(deps): update dependency tar-fs to v2.1.4 [security] Mar 30, 2026
@renovate renovate Bot reopened this Mar 30, 2026
@renovate renovate Bot force-pushed the renovate/npm-tar-fs-vulnerability branch 2 times, most recently from 3d34d7c to c15443d Compare March 30, 2026 21:07
@renovate renovate Bot changed the title chore(deps): update dependency tar-fs to v2.1.4 [security] Update dependency tar-fs to v2.1.4 [SECURITY] Apr 8, 2026
@renovate renovate Bot changed the title Update dependency tar-fs to v2.1.4 [SECURITY] Update dependency tar-fs to v2.1.4 [SECURITY] - autoclosed Apr 27, 2026
@renovate renovate Bot closed this Apr 27, 2026
@renovate renovate Bot changed the title Update dependency tar-fs to v2.1.4 [SECURITY] - autoclosed Update dependency tar-fs to v2.1.4 [SECURITY] Apr 28, 2026
@renovate renovate Bot reopened this Apr 28, 2026
@renovate renovate Bot force-pushed the renovate/npm-tar-fs-vulnerability branch 2 times, most recently from c15443d to 7457158 Compare April 28, 2026 06:06
@ManiruzzamanAkash ManiruzzamanAkash force-pushed the renovate/npm-tar-fs-vulnerability branch from 7457158 to 25c5687 Compare May 14, 2026 03:46
@renovate

renovate Bot commented May 14, 2026

Copy link
Copy Markdown
Author

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

@kiransbsf kiransbsf force-pushed the renovate/npm-tar-fs-vulnerability branch from 25c5687 to 7457158 Compare May 14, 2026 10:10
@sarangshahane sarangshahane force-pushed the renovate/npm-tar-fs-vulnerability branch from 7457158 to 0401561 Compare May 18, 2026 03:00
@renovate renovate Bot force-pushed the renovate/npm-tar-fs-vulnerability branch from 0401561 to 3b7f70b Compare May 18, 2026 03:01
@kiransbsf kiransbsf force-pushed the renovate/npm-tar-fs-vulnerability branch from 3b7f70b to 7457158 Compare May 18, 2026 05:20
@sushmak02 sushmak02 force-pushed the renovate/npm-tar-fs-vulnerability branch from 7457158 to 65d2bfa Compare May 24, 2026 02:47
@renovate renovate Bot force-pushed the renovate/npm-tar-fs-vulnerability branch from 65d2bfa to 498b991 Compare May 24, 2026 02:49
@kiransbsf kiransbsf force-pushed the renovate/npm-tar-fs-vulnerability branch from 498b991 to 7457158 Compare May 25, 2026 06:06
@imnavanath imnavanath force-pushed the renovate/npm-tar-fs-vulnerability branch from 7457158 to 232baf7 Compare May 28, 2026 00:22
@renovate renovate Bot force-pushed the renovate/npm-tar-fs-vulnerability branch from 232baf7 to 66b876f Compare May 28, 2026 00:24
@socket-security

Copy link
Copy Markdown

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

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatednpm/​tar-fs@​2.1.1 ⏵ 2.1.4100 +1100 +3110085100

View full report

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.

0 participants