Update dependency tmp to v0.2.4 [SECURITY]#464
Open
renovate[bot] wants to merge 1 commit intomainfrom
Open
Conversation
Performance Report✔️ no performance regression detected Full benchmark results
|
d4ea500 to
3dc911d
Compare
3dc911d to
e9a7672
Compare
e9a7672 to
0a0ab1f
Compare
0a0ab1f to
377fea4
Compare
377fea4 to
af45bc5
Compare
Codecov Report✅ All modified and coverable lines are covered by tests.
Additional details and impacted files@@ Coverage Diff @@
## main #464 +/- ##
===========================================
- Coverage 91.96% 23.60% -68.37%
===========================================
Files 85 52 -33
Lines 47705 23045 -24660
Branches 5312 78 -5234
===========================================
- Hits 43873 5440 -38433
- Misses 3832 17605 +13773 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
af45bc5 to
3cac25a
Compare
3cac25a to
19edf91
Compare
19edf91 to
8892444
Compare
8892444 to
df48400
Compare
476be47 to
3a18716
Compare
3a18716 to
d88e53a
Compare
d79361b to
00d70fc
Compare
00d70fc to
b941c6e
Compare
1bd6206 to
bec9f56
Compare
bec9f56 to
993cbc8
Compare
993cbc8 to
6756776
Compare
6756776 to
af7191f
Compare
af7191f to
b1ec260
Compare
b1ec260 to
381e7ae
Compare
381e7ae to
2188e52
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.2.3→0.2.4tmp allows arbitrary temporary file / directory write via symbolic link
dirparameterCVE-2025-54798 / GHSA-52f5-9888-hmc6
More information
Details
Summary
tmp@0.2.3is vulnerable to an Arbitrary temporary file / directory write via symbolic linkdirparameter.Details
According to the documentation there are some conditions that must be held:
Related issue: https://github.com/raszi/node-tmp/issues/207.
The issue occurs because
_resolvePathdoes not properly handle symbolic link when resolving paths:If the
dirparameter points to a symlink that resolves to a folder outside thetmpDir, it's possible to bypass the_assertIsRelativecheck used in_assertAndSanitizeOptions:PoC
The following PoC demonstrates how writing a tmp file on a folder outside the
tmpDiris possible.Tested on a Linux machine.
tmpDirthat points to a directory outside of it$HOME/mydir1(outside thetmpDir):main.jsA Potential fix could be to call
fs.realpathSync(or similar) that resolves also symbolic links.Impact
Arbitrary temporary file / directory write via symlink
Severity
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes
raszi/node-tmp (tmp)
v0.2.4Compare Source
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.