jquery / esprima

ECMAScript parsing infrastructure for multipurpose analysis
http://esprima.org
BSD 2-Clause "Simplified" License
7.04k stars 786 forks source link

Unused packages detected in the esprima project on Tag: 4.0.1 #2103

Closed mahirkabir closed 2 years ago

mahirkabir commented 2 years ago

Issue: We have detected the following unused dependencies in your project: Unused devDependencies

Questions: We are conducting a research study on the unused packages in JS projects. We were curious:

  1. Will you remove the unused packages mentioned above? (Yes/No), and why?:
  2. Do you have any additional comments? (If so, please write it down):

For any publication or research report based on this study, we will share all responses from developers in an anonymous way. Both your projects and personal information will be kept confidential.

Rationale: When a JS application depends on too many packages, its attack surface can grow dramatically; hackers can get a higher chance of successfully exploiting the vulnerabilities inside those packages and escalating the potential damage. Therefore, JS application developers are recommended to remove unused packages from their projects, in order to eliminate the security risks unnecessarily incurred by those packages.

Steps to reproduce:

Suggested Solution: Please look at the unused dependencies list and uninstall them if they do not find them necessary.

Resources: https://www.npmjs.com/package/depcheck

ariya commented 2 years ago

Thanks for the report! This is a similar to #2103 and the explanation is also exactly the same (tl;dr it's not a run-time issue).