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

Security vulernability reported on Snyk #89

Closed
mschipperheyn opened this issue Dec 2, 2018 · 10 comments
Closed

Security vulernability reported on Snyk #89

mschipperheyn opened this issue Dec 2, 2018 · 10 comments

Comments

@mschipperheyn
Copy link

I'm not sure if you guys are aware of this:

https://snyk.io/test/npm/markdown-draft-js/1.3.0

reports a security vulnerability on Snyk. It can be solved by upgrading the underscore.string dependency.

@Rosey
Copy link
Owner

Rosey commented Dec 2, 2018

Thanks @mschipperheyn it looks like the vulnerability is through remarkable jonschlinkert/remarkable#310 and there's a pull request with a fix. Hopefully that gets merged soon and we can update our remarkable dependency :)

@jdalegonzalez
Copy link

@Rosey It appears that @jonschlinkert isn't ever interested in fixing this problem. Is there another library you could use instead of remarkable? I am willing to attempt a PR.

@Rosey
Copy link
Owner

Rosey commented Jun 10, 2019

Hmm I chose remarkable because it has really great support for custom markdown options (eg designing your own markdown syntax for things like mentions) which I wasn't able to find with other tools. If you know of another markdown parser that is equally flexible then it could be possible to switch 🙂

I suppose another option is to fork remarkable and patch the vulnerabilities and use that fork instead of the original 😓

@jdalegonzalez
Copy link

jdalegonzalez commented Jun 13, 2019 via email

@jonschlinkert
Copy link

I’m with you.  I like the library and in fact, I offered a PR to the author that met his initial request of ripping out argparse and replacing it with another library he’d identified.

If you did indeed do what you're saying, my apologies, I didn't ignore the PR intentionally. I would love to merge it and get rid of these issues.

Can you link to the pr?

@jdalegonzalez
Copy link

jdalegonzalez commented Jun 14, 2019 via email

@Rosey
Copy link
Owner

Rosey commented Aug 3, 2019

#104 Updates to the latest version of remarkable which resolves 2 out of 3 security alerts on snyk.

@TrySound
Copy link
Contributor

TrySound commented Aug 3, 2019

Is the third one comes from remarkable too?

@TrySound
Copy link
Contributor

TrySound commented Aug 3, 2019

Ah, I see. It comes from autolinker. That dependency is evaluated a lot. I'm not sure it's safe to upgrade it in patch version. I will publish major bump soon. It will include autolinker upgrade.

@Rosey
Copy link
Owner

Rosey commented Aug 7, 2019

Thanks so much @TrySound for knocking out that last one 🙂

https://snyk.io/test/npm/markdown-draft-js/2.0.0 I think we're all clear (for now at least 🙃 )

did a major release bump for this one since the remarkable dependency was major and I didn't want to risk any backwards compatibility issues. However I don't think there should be any.

edit: Actually I'm glad I did major. I have a project with Webpack that also required remarkable separately from markdown-draft-js and was still using an older version of remarkable when I first updated markdown-draft-js. Webpack tried to reconcile the two dependencies and hit problems until I upgraded the main remarkable dependency as well. So beware if you're on Webpack and in a similar situation as myself 🙂

@Rosey Rosey closed this as completed Aug 7, 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

5 participants