-
Notifications
You must be signed in to change notification settings - Fork 47
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
[Hacktoberfest] Fix security vulnerability related with the doctoc dependency. #830
Comments
Hi @ahmetoz, I want to fix this issue as part of Hacktoberfest, but proposed resolution does not work because remark-parse just installs trim 0.0.1 in own local node_modules in this case. |
Hey @absolutic thanks for the investigation. The issue effecting only development packages so I would not use npm-force-resolutions for now. Looks like the issue is discussed here: thlorenz/doctoc#205, could you check if there is a solution or alternative approach ? |
Hey, one of the doctoc maintainers here, we patched that in |
We already updated to newest version of doctoc and the problem is fixed now! Thank you. I'm closing this issue now. |
Situation
Doctoc on the devDependencies of extension app has vulnerability on the trim package.
The latest possible version that can be installed is 0.0.1 because of the following conflicting dependency:
[email protected] requires [email protected] via a transitive dependency on [email protected]
Complication
CVE-2020-7753
Vulnerable versions: < 0.0.3
Patched version: 0.0.3
All versions of package trim lower than 0.0.3 are vulnerable to Regular Expression Denial of Service (ReDoS) via trim().
Resolution
Upgrade
trim
to version 0.0.3 or later. For example:"devDependencies": {
"trim": ">=0.0.3"
}
The text was updated successfully, but these errors were encountered: