Giter Club home page Giter Club logo

Comments (8)

codecvlt avatar codecvlt commented on August 21, 2024 1

Makes sense. It's ok. I've added this package to my ignore list since it shouldn't be exploitable in my use case.

Cheers, and thanks for the quick responses!

from phantom-html-to-pdf.

codecvlt avatar codecvlt commented on August 21, 2024

Updating the default phantomjs version to 2xx should fix this.

from phantom-html-to-pdf.

bjrmatos avatar bjrmatos commented on August 21, 2024

both vulnerabilities does not affect the security of the system for the use case that this package was built, the npm phantomjs package is only using the request package to install a phantomjs binary, it is not used while an application is running, it is only used when installing dependencies so i don't see any vulnerability here.

updating to phantomjs version 2 will only remove these warnings of the NSP but there is no other gain here.. also we don't want to make phantom v2 executable the default because phantom v2 has many rendering issues compared to phantom 1.9.8 (the most stable) executable.

if you are just worried about those warnings you can easily install [email protected] in your machine, the NSP warning still will be present but your system won't be using the phantom 1.9.8 executable.

from phantom-html-to-pdf.

codecvlt avatar codecvlt commented on August 21, 2024

Fair enough. Problem right now is your latest version in npm still lists phantomjs as a main dependency. I see in your master branch you made it an optionalDependency. Pointing my version to your master branch removes the NSP warning. When do you think you will release a new npm version which reflects what you have on master branch?

from phantom-html-to-pdf.

codecvlt avatar codecvlt commented on August 21, 2024

Weird, looks like 0.5.4 does have phantomjs as optional. My bad.

from phantom-html-to-pdf.

codecvlt avatar codecvlt commented on August 21, 2024

Hmm, though when installed, the package.json for 0.5.4 does have phantomjs in the "dependencies" section.

from phantom-html-to-pdf.

bjrmatos avatar bjrmatos commented on August 21, 2024

Hmm, though when installed, the package.json for 0.5.4 does have phantomjs in the "dependencies" section.

yes, that is the way that npm works, optionalDependencies are always installed, the only difference is that if some optional dependency fails to install then the whole installation won't fail, it will just ignore the optional dependency.

i understand that seeing those warnings can be frustrating, so a solution can be to move the phantomjs dependency from optionalDependencies to peerDependencies, but i'm not sure if everyone will be ok with that, so let's see.. (cc @pofider)

from phantom-html-to-pdf.

pofider avatar pofider commented on August 21, 2024

I believe the explanation @bjrmatos has done is sufficient.
I don't plan to do big changes like moving the phantomjs dependency out at this moment.

from phantom-html-to-pdf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.