tar 6.1.9 → 6.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/unpack.js +7 -7
  2. package/package.json +1 -1
package/lib/unpack.js CHANGED
@@ -550,13 +550,13 @@ class Unpack extends Parser {
550
550
  // then that means we are about to delete the directory we created
551
551
  // previously, and it is no longer going to be a directory, and neither
552
552
  // is any of its children.
553
- // If a symbolic link is encountered on Windows, all bets are off.
554
- // There is no reasonable way to sanitize the cache in such a way
555
- // we will be able to avoid having filesystem collisions. If this
556
- // happens with a non-symlink entry, it'll just fail to unpack,
557
- // but a symlink to a directory, using an 8.3 shortname, can evade
558
- // detection and lead to arbitrary writes to anywhere on the system.
559
- if (isWindows && entry.type === 'SymbolicLink')
553
+ // If a symbolic link is encountered, all bets are off. There is no
554
+ // reasonable way to sanitize the cache in such a way we will be able to
555
+ // avoid having filesystem collisions. If this happens with a non-symlink
556
+ // entry, it'll just fail to unpack, but a symlink to a directory, using an
557
+ // 8.3 shortname or certain unicode attacks, can evade detection and lead
558
+ // to arbitrary writes to anywhere on the system.
559
+ if (entry.type === 'SymbolicLink')
560
560
  dropCache(this.dirCache)
561
561
  else if (entry.type !== 'Directory')
562
562
  pruneCache(this.dirCache, entry.absolute)
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
3
3
  "name": "tar",
4
4
  "description": "tar for node",
5
- "version": "6.1.9",
5
+ "version": "6.1.10",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/npm/node-tar.git"