@@ -257,2 +257,3 @@ "use strict"; | ||
| const p = entry[field]; | ||
| const { type } = entry; | ||
| if (!p || this.preservePaths) | ||
@@ -268,3 +269,3 @@ return true; | ||
| // For paths, they just simply may not ever use .. at all. | ||
| if (field === 'path') { | ||
| if (field === 'path' || type === 'Link') { | ||
| this.warn('TAR_ENTRY_ERROR', `${field} contains '..'`, { | ||
@@ -271,0 +272,0 @@ entry, |
@@ -218,2 +218,3 @@ // the PEND/UNPEND stuff tracks whether we're ready to emit end/close yet. | ||
| const p = entry[field]; | ||
| const { type } = entry; | ||
| if (!p || this.preservePaths) | ||
@@ -229,3 +230,3 @@ return true; | ||
| // For paths, they just simply may not ever use .. at all. | ||
| if (field === 'path') { | ||
| if (field === 'path' || type === 'Link') { | ||
| this.warn('TAR_ENTRY_ERROR', `${field} contains '..'`, { | ||
@@ -232,0 +233,0 @@ entry, |
+1
-1
@@ -5,3 +5,3 @@ { | ||
| "description": "tar for node", | ||
| "version": "7.5.6", | ||
| "version": "7.5.7", | ||
| "repository": { | ||
@@ -8,0 +8,0 @@ "type": "git", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 4 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 4 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
1256289
0.03%11918
0.02%