-
Notifications
You must be signed in to change notification settings - Fork 696
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade Rubyzip 2 #646
Comments
There is a vulnerability in rubyzip < 1.3: rubyzip/rubyzip#403 |
By unlock, I do not mean allowing |
@Apokly I've had success with the following polyfill on Place a file ``zip.rb'' as below
zip.rb # Polyfill to make AXLSX package work with v1.2.x `zip` which no longer defines `Zip::Zip`
require 'zip'
require 'zip/output_stream'
module Zip
class ZipOutputStream < OutputStream
def initialize(filename, stream = false)
if stream
filename = StringIO.new
end
super(filename, stream)
end
end
end |
There’s now a community-supported fork of axlsx: https://github.com/caxlsx/caxlsx Versions 2.0.2 and 3.0.x have been released, both supporting newer versions of Rubyzip. See https://rubygems.org/gems/caxlsx/versions/3.0.1 |
Note: there have since been more critical vulnerabilities discovered in
Taking a serious look at https://github.com/caxlsx/caxlsx ... |
As far as I understand, both vulnerabilities are in the context of extracting archives. Axlsx only creates archives. However, it’s a very bad idea to have a vulnerable version of Rubyzip in your project at all, so please upgrade to at least caxlsx 2.0.2 or 3.0.1. In caxlsx it's also possible to use an external zip program instead of Rubyzip, see https://www.rubydoc.info/gems/caxlsx/Axlsx/Package#serialize-instance_method |
Could you please unlock
rubyzip
version to use newest version 2 ? https://github.com/rubyzip/rubyzip/releases/tag/v2.0.0The text was updated successfully, but these errors were encountered: