File tree Expand file tree Collapse file tree 7 files changed +10
-10
lines changed
Expand file tree Collapse file tree 7 files changed +10
-10
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -283,7 +283,7 @@ class Unpack extends parse_js_1.Parser {
283283 // `path.posix` is safe to use because we're operating on
284284 // tar paths, not a filesystem.
285285 const entryDir = node_path_1 . default . posix . dirname ( entry . path ) ;
286- const resolved = node_path_1 . default . posix . normalize ( node_path_1 . default . posix . join ( entryDir , p ) ) ;
286+ const resolved = node_path_1 . default . posix . normalize ( node_path_1 . default . posix . join ( entryDir , parts . join ( '/' ) ) ) ;
287287 // If the resolved path escapes (starts with ..), reject it
288288 if ( resolved . startsWith ( '../' ) || resolved === '..' ) {
289289 this . warn ( 'TAR_ENTRY_ERROR' , `${ field } escapes extraction directory` , {
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -244,7 +244,7 @@ export class Unpack extends Parser {
244244 // `path.posix` is safe to use because we're operating on
245245 // tar paths, not a filesystem.
246246 const entryDir = path . posix . dirname ( entry . path ) ;
247- const resolved = path . posix . normalize ( path . posix . join ( entryDir , p ) ) ;
247+ const resolved = path . posix . normalize ( path . posix . join ( entryDir , parts . join ( '/' ) ) ) ;
248248 // If the resolved path escapes (starts with ..), reject it
249249 if ( resolved . startsWith ( '../' ) || resolved === '..' ) {
250250 this . warn ( 'TAR_ENTRY_ERROR' , `${ field } escapes extraction directory` , {
Original file line number Diff line number Diff line change 22 "author" : " Isaac Z. Schlueter" ,
33 "name" : " tar" ,
44 "description" : " tar for node" ,
5- "version" : " 7.5.10 " ,
5+ "version" : " 7.5.11 " ,
66 "repository" : {
77 "type" : " git" ,
88 "url" : " https://github.com/isaacs/node-tar.git"
Original file line number Diff line number Diff line change 142142 "spdx-expression-parse" : " ^4.0.0" ,
143143 "ssri" : " ^13.0.1" ,
144144 "supports-color" : " ^10.2.2" ,
145- "tar" : " ^7.5.10 " ,
145+ "tar" : " ^7.5.11 " ,
146146 "text-table" : " ~0.2.0" ,
147147 "tiny-relative-date" : " ^2.0.2" ,
148148 "treeverse" : " ^3.0.0" ,
1343713437 }
1343813438 },
1343913439 "node_modules/tar" : {
13440- "version" : " 7.5.10 " ,
13441- "resolved" : " https://registry.npmjs.org/tar/-/tar-7.5.10 .tgz" ,
13442- "integrity" : " sha512-8mOPs1//5q/rlkNSPcCegA6hiHJYDmSLEI8aMH/CdSQJNWztHC9WHNam5zdQlfpTwB9Xp7IBEsHfV5LKMJGVAw ==" ,
13440+ "version" : " 7.5.11 " ,
13441+ "resolved" : " https://registry.npmjs.org/tar/-/tar-7.5.11 .tgz" ,
13442+ "integrity" : " sha512-ChjMH33/KetonMTAtpYdgUFr0tbz69Fp2v7zWxQfYZX4g5ZN2nOBXm1R2xyA+lMIKrLKIoKAwFj93jE/avX9cQ ==" ,
1344313443 "inBundle" : true ,
1344413444 "license" : " BlueOak-1.0.0" ,
1344513445 "dependencies" : {
Original file line number Diff line number Diff line change 110110 "spdx-expression-parse" : " ^4.0.0" ,
111111 "ssri" : " ^13.0.1" ,
112112 "supports-color" : " ^10.2.2" ,
113- "tar" : " ^7.5.10 " ,
113+ "tar" : " ^7.5.11 " ,
114114 "text-table" : " ~0.2.0" ,
115115 "tiny-relative-date" : " ^2.0.2" ,
116116 "treeverse" : " ^3.0.0" ,
You can’t perform that action at this time.
0 commit comments