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

Potential command injection vulnerability in npm-dependency-versions #6

Open
xiaofen9 opened this issue Apr 6, 2022 · 0 comments
Open

Comments

@xiaofen9
Copy link

xiaofen9 commented Apr 6, 2022

Hi,

Thanks for devloping this great npm package! We find a potential command injection vulnerabilty from it. The bug is caused by the fact that package-exported method fail to sanitize pkgs parameter and let it flow into a sensitive command execution API.

Here is the proof of concept.

const dependencyVersions = require("./index.js")
dependencyVersions({"pkgs":["|touch rce"]})

Please consider fix it. thanks!

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

No branches or pull requests

1 participant