Skip to content
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

Vulnerable dependancy #7402

Closed
robinMcA opened this issue Feb 26, 2020 · 21 comments
Closed

Vulnerable dependancy #7402

robinMcA opened this issue Feb 26, 2020 · 21 comments

Comments

@robinMcA
Copy link

robinMcA commented Feb 26, 2020

Bug Report

Description

If a yarn or npm audit is part of the CI/CD builds will fail.
Raising the issue here because there has been no action on the issue in the library.

  1. What did you do?
    npm audit or yarn audit
  2. What happened?
    serverless fails because of this https://www.npmjs.com/advisories/1217
  3. What should've happened?
    serverless passes
  4. What's the content of your serverless.yml file?
    N/A
  5. What's the output you get when you use the SLS_DEBUG=* environment variable (e.g. SLS_DEBUG=* serverless deploy)
    N/A

Similar or dependent issues:

@medikoo
Copy link
Contributor

medikoo commented Feb 27, 2020

@robinMcA thanks for reporting.

PR that patches that in a framework is highly welcome

@medikoo
Copy link
Contributor

medikoo commented Feb 27, 2020

cc @richarddd (dependency on decompress was added with latest docker invocation improvements)

@robinMcA
Copy link
Author

Looks like the issue will be in download as well, download use

@Nikhilkapoor20
Copy link

any update on this guys ?

@medikoo
Copy link
Contributor

medikoo commented Feb 27, 2020

I've opened also issue at download: kevva/download#189

I'd give a moment for package authors to recover. If that'll turn dragging I believe we need to replace them with alternatives.

@singhemant
Copy link

Shouldn't you change it in your package.json?

"decompress": "^4.2.0",

&
"download": "^7.1.0",

@rajbir123
Copy link

Any update resolution on this guys?

@em0ney
Copy link

em0ney commented Mar 9, 2020

Any news? It looks like decompress is no longer maintained. Any plans to move to an alternative?

@medikoo
Copy link
Contributor

medikoo commented Mar 9, 2020

Any news? It looks like decompress is no longer maintained. Any plans to move to an alternative?

It's quite easy to get rid of decompress (it's question of reverting part of f6d9bfd)

Still we also depend on download (which depends on decompress).

PR that reliably get rids of both of those dependencies is welcome!

@bhtandev
Copy link

Hi, unsure if I should create another brand new issue or tag into this existing issue since this issue's title seem generic enough. ( my first time )

There are 2 more security vulnerable dependencies. minimalist and dot-prop found by SYNK on top of decompress.

Both can be easily remediated by

  1. Upgrading mkdirp package which uses minimalist.
  2. Upgrading update-notifier which uses dot-prop.

Screen Shot 2020-03-13 at 11 53 21 am

Screen Shot 2020-03-13 at 11 53 08 am

@richarddd
Copy link
Contributor

Hi everyone!

Let's replace decompress with something else! Maybe https://www.npmjs.com/package/adm-zip
?

@Nikhilkapoor20
Copy link

any update on this ?

@medikoo
Copy link
Contributor

medikoo commented Mar 19, 2020

There are 2 more security vulnerable dependencies

@bhtandev for that I've created another dedicated issue: #7486

@medikoo
Copy link
Contributor

medikoo commented Mar 19, 2020

Maybe https://www.npmjs.com/package/adm-zip
?

@richarddd that'll be great. Still just replacing decompress won't fix it. We also need to replace download (which uses decompress as well)

@medikoo
Copy link
Contributor

medikoo commented Mar 31, 2020

There's a decompress fork: https://github.com/Atomic-Reactor/decompress that apparently has a fix. However we still need to replace download as well.

@neverendingqs
Copy link
Contributor

It looks like the original package also got an update: kevva/decompress#73 (comment)

@neverendingqs
Copy link
Contributor

PR to merge the change into download: kevva/download#192

@neverendingqs
Copy link
Contributor

The latest versions of both decompress and download should resolve this issue. The NPM advisory has been updated as well: https://www.npmjs.com/advisories/1217

@preshetin
Copy link
Contributor

@neverendingqs thanks! I'll prepare the PR that updates both decompress and download dependencies

@medikoo
Copy link
Contributor

medikoo commented Apr 2, 2020

It's great to hear that! With next release (coming today or on Monday latest) we'll have those dependencies bumped.

@medikoo
Copy link
Contributor

medikoo commented Apr 21, 2020

Closing as that was addressed with one of latest releases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
10 participants