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

Update dependencies to fix security issues #205

Open
royNiladri opened this issue May 17, 2021 · 14 comments
Open

Update dependencies to fix security issues #205

royNiladri opened this issue May 17, 2021 · 14 comments

Comments

@royNiladri
Copy link

I am using doctoc in my project and getting security warnings for 2 dependencies.
image
Both are directly or indirectly related to doctoc, and hence dependabot is unable to bump them.

@greyscaled
Copy link
Contributor

greyscaled commented May 18, 2021

I have an outstanding PR for underscore - see #200 and the associated issue #199.

As for trim - this requires an upstream change in @textlint/markdown-to-ast and is being tracked here: textlint/textlint#717. They're using major version 5 of remark-parse that relied on trim 0.1. It's only removed in remark-parse version 9 and up.

In other words, underscore is actionable, but is awaiting review from @thlorenz . trim is going to need a bump from @textlint then one again here.

@royNiladri
Copy link
Author

Thanks for the elaborate reply. Will wait it out. For me doctoc is a dev dependency and should not be impacting my end users. Since action items are already in the pipeline, feel free to mark it as a duplicate and close it.

@MapleCCC
Copy link

MapleCCC commented Jun 7, 2021

textlint has released v12.0.0. Seem like we can do the bump now.

@neozenith
Copy link

neozenith commented Jun 8, 2021

Perfect! I was following #199 and when it closed I was excited but confused there was still a high security alert for trim.

I have just chased through my package-lock.json but double checking every library in that chain seeing packages updated, only to land here with others already on top of everything. 😆

In the process textlint.markdow-to-ast relying on remark-parse picks up a rather major change to their markdown parsing engine support using the micromark engine:

https://github.com/remarkjs/remark/releases/tag/13.0.0

But yeah, thank you to all involved 👏

@geoffcorey
Copy link

Is there a PR associated yet to bump the version or do we need to create one?

@thlorenz
Copy link
Owner

The versions should've been bumped here #200 if I understand this correctly.

@AndrewSouthpaw
Copy link
Collaborator

Calling this closed.

@MapleCCC
Copy link

I think the closing of this issue is an overlook. This issue is about bumping the version of the dependency @textlint/markdown-to-ast to above 12.0.0 for security patching, while the PR #200 is about bumping the version of the dependency underscore to above 1.12.1. This issue is not resolved yet! Please reopen it to keep track of the issue.

@MapleCCC
Copy link

MapleCCC commented Oct 21, 2021

Bumping @textlint/markdown-to-ast from 6.1.7 to 12.0.0 rushes through six major versions. I am afraid we might need some change in our source code to accommodate the changes of @textlint/markdown-to-ast's API.

This is no small work :)

@AndrewSouthpaw
Copy link
Collaborator

Thanks! I did overlook that aspect. Reopening.

@fergiemcdowall
Copy link

Any progress here? Still getting [email protected] requires [email protected] via a transitive dependency on [email protected]

@ComLock
Copy link

ComLock commented Apr 28, 2022

Still a High Security Vulnerability
Screenshot 2022-04-28 at 14 46 09

@jhillacre
Copy link

PR #225 seems to deal with this, but hadn't mentioned this issue.

@AndrewSouthpaw
Copy link
Collaborator

This should be fixed now with v2.2.0, lmk if you're seeing otherwise.

~/Projects/doctoc on master
$ npm audit
found 0 vulnerabilities

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

10 participants