Repository navigation
CVE-2026-24842 node-tar: Vulnerable to Arbitrary File Creation/Overwrite via Hardlink Path Traversal - #648
Conversation
3b28b84 to
4262a4d
Compare
|
Pull Request images published ✨ Editor amd64: quay.io/che-incubator-pull-requests/che-code:pr-648-amd64 |
3 similar comments
|
Pull Request images published ✨ Editor amd64: quay.io/che-incubator-pull-requests/che-code:pr-648-amd64 |
|
Pull Request images published ✨ Editor amd64: quay.io/che-incubator-pull-requests/che-code:pr-648-amd64 |
|
Pull Request images published ✨ Editor amd64: quay.io/che-incubator-pull-requests/che-code:pr-648-amd64 |
RomanNikitenko
left a comment
There was a problem hiding this comment.
The problem is fixed from the security point of view.
I just noticed that [email protected] requires [email protected],
but we override it to 7.5.7
2.2.2 => 7.5.7 = too big difference = some risk
At the same time [email protected] was published 8 years ago, so no chance to get it updated to fix the problem. So, only replacing gulp-untar by another dependency could be an alternative solution...
one possible solution might be to use https://www.npmjs.com/package/gulp-decompress |
|
@sbouchet |
via Hardlink Path Traversal Signed-off-by: Stephane Bouchet <[email protected]>
Signed-off-by: Stephane Bouchet <[email protected]>
Signed-off-by: Stephane Bouchet <[email protected]>
Signed-off-by: Stephane Bouchet <[email protected]>
|
so i'll rework this PR to bump to at least |
Signed-off-by: Stephane Bouchet <[email protected]>
138f824 to
43252f8
Compare
Signed-off-by: Stephane Bouchet <[email protected]>
|
Pull Request images published ✨ Editor amd64: quay.io/che-incubator-pull-requests/che-code:pr-648-amd64 |
|
forgot to add rebase rules for source code. please wait for PR to be ready for review |
Signed-off-by: Stephane Bouchet <[email protected]>
|
Pull Request images published ✨ Editor amd64: quay.io/che-incubator-pull-requests/che-code:pr-648-amd64 |
|
Pull Request images published ✨ Editor amd64: quay.io/che-incubator-pull-requests/che-code:pr-648-amd64 |
|
Pull Request images published ✨ Editor amd64: quay.io/che-incubator-pull-requests/che-code:pr-648-amd64 |
Signed-off-by: Stephane Bouchet <[email protected]>
|
Pull Request images published ✨ Editor amd64: quay.io/che-incubator-pull-requests/che-code:pr-648-amd64 |
Signed-off-by: Stephane Bouchet <[email protected]>
|
@sbouchet |
|
Pull Request images published ✨ Editor amd64: quay.io/che-incubator-pull-requests/che-code:pr-648-amd64 |
| gulp.src('*.tgz', { cwd: dir }) | ||
| .pipe(gunzip()) | ||
| .pipe(untar()) | ||
| .pipe(decompress()) |
There was a problem hiding this comment.
@sbouchet
I think we have a problem here
I don't see decompress() function was imported
| const acquireBuiltOpenSSL = (callback) => { | ||
| const untar = require('gulp-untar'); | ||
| const gunzip = require('gulp-gunzip'); | ||
| const untar = require('gulp-decompress'); |
There was a problem hiding this comment.
Where is untar used?
There was a problem hiding this comment.
did you mean decompress?
| function nodejs(platform, arch) { | ||
| const { fetchUrls, fetchGithub } = require('./lib/fetch'); | ||
| const untar = require('gulp-untar'); | ||
| const untar = require('gulp-decompress'); |
There was a problem hiding this comment.
this is also not working :
$ node ./node_modules/gulp/bin/gulp.js node-linux-x64
[16:50:00] Using gulpfile ~/git/che-code/code/gulpfile.js
[16:50:00] Starting 'node-linux-x64'...
[16:50:00] Downloading node.js 22.18.0 linux x64 from https://nodejs.org...
[16:50:00] Using SHA256 checksum for checking integrity: a2e703725d8683be86bb5da967bf8272f4518bdaf10f21389e2b2c9eaeae8c8a
[16:50:00] 'node-linux-x64' errored after 13 ms
[16:50:00] ReferenceError: decompress is not defined
at nodejs (/home/sbouchet/git/che-code/code/build/gulpfile.reh.js:240:6)
at /home/sbouchet/git/che-code/code/build/gulpfile.reh.js:176:11
at taskWrapper (/home/sbouchet/git/che-code/code/node_modules/undertaker/lib/set-task.js:13:15)
at bound (node:domain:433:15)
at runBound (node:domain:444:12)
at asyncRunner (/home/sbouchet/git/che-code/code/node_modules/async-done/index.js:55:18)
at process.processTicksAndRejections (node:internal/process/task_queues:85:11)
|
@RomanNikitenko for all above reviews, i've created #666 and backport #665 |
Reverts the gulp-decompress introduction from #648/#666 and realigns with upstream VS Code's own solution: gunzip + untar() backed by tar.Parser. This removes the vulnerable [email protected] (CVE-2026-53486, CVSS 9.1) while keeping the tar@^7.5.22 pin for GHSA-34x7-hfp2-rc4v. Signed-off-by: Stephane Bouchet <[email protected]> Co-Authored-By: Claude Opus 4.6 <[email protected]>
What does this PR do?
This PR fixes GHSA-34x7-hfp2-rc4v : Vulnerable to Arbitrary File Creation/Overwrite via Hardlink Path Traversal.
tarversion is updated to7.5.8What issues does this PR fix?
https://issues.redhat.com/browse/CRW-10039
https://issues.redhat.com/browse/CRW-10249
also
fixes https://github.com/che-incubator/che-code/security/dependabot/6
fixes https://github.com/che-incubator/che-code/security/dependabot/58
fixes https://github.com/che-incubator/che-code/security/dependabot/62
fixes https://github.com/che-incubator/che-code/security/dependabot/7
fixes https://github.com/che-incubator/che-code/security/dependabot/4
fixes https://github.com/che-incubator/che-code/security/dependabot/54
fixes https://github.com/che-incubator/che-code/security/dependabot/5
fixes https://github.com/che-incubator/che-code/security/dependabot/57
fixes https://github.com/che-incubator/che-code/security/dependabot/45
fixes https://github.com/che-incubator/che-code/security/dependabot/44
How to test this PR?
Does this PR contain changes that override default upstream Code-OSS behavior?
git rebasewere added to the .rebase folder