Socket
Socket
Sign inDemoInstall

unzip-stream

Package Overview
Dependencies
6
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.1 to 0.3.2

poc.js

2

lib/unzip-stream.js

@@ -291,3 +291,3 @@ 'use strict';

// protect against malicious zip files which want to extract to parent dirs
entry.path = entry.path.replace(/^([/\\]*[.]+[/\\]+)*[/\\]*/, "");
entry.path = entry.path.replace(/(?<=^|[/\\]+)[.][.]+(?=[/\\]+|$)/g, ".");
entry.type = isDirectory ? 'Directory' : 'File';

@@ -294,0 +294,0 @@ entry.isDirectory = isDirectory;

{
"name": "unzip-stream",
"version": "0.3.1",
"version": "0.3.2",
"description": "Process zip files using streaming API",

@@ -5,0 +5,0 @@ "author": "Michal Hruby <michal.mhr@gmail.com>",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc