Skip to content

remove string module dependency #15

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

Closed
dlong500 opened this issue Aug 9, 2018 · 5 comments
Closed

remove string module dependency #15

dlong500 opened this issue Aug 9, 2018 · 5 comments

Comments

@dlong500
Copy link

dlong500 commented Aug 9, 2018

Given that it appears the string module on npm has been abandoned, has some regex DOS security issues, and that is seems to only be used in one index.js file in this package, it might be best to find an alternative.

See jprichardson/string.js#212 (comment)

NPM is currently flagging jsreport-core in its security auditing due to script-manager's dependency on string.

@pofider
Copy link
Owner

pofider commented Aug 13, 2018

@dlong500
Copy link
Author

I do understand that there is not anything that currently appears to affect the security of jsreport in this context. The issue is more about the spam constantly generated because of npm audit warnings. In this particular situation, since you are only using one call to startswith and the minimum supported node version is now 4.x I'm pretty sure you can just use the built-in String prototype startswith directly and eliminate the string module dependency altogether.

@pofider
Copy link
Owner

pofider commented Aug 14, 2018

Yes makes sense. Don't you want to send a PR with it? I would publish new version then.

@dlong500
Copy link
Author

Sure, I'll do that when I can get back in town in a few days. Thanks.

@pofider
Copy link
Owner

pofider commented Jan 5, 2019

We removed it some time ago.
There are 0 vulnerabilities in whole jsreport currently.

@pofider pofider closed this as completed Jan 5, 2019
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

2 participants