BabylonJS / BabylonJS/npm-package-template

Dependencies have high severity security issues

Open
#1 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
20
Forks
17
PR merge metrics
No merged PRs in 30d

Description

From a fresh repo using this template, run `npm install` and then `npm audit`:

```
# npm audit report

shelljs <0.8.5
Severity: high
Improper Privilege Management in shelljs - https://github.com/advisories/GHSA-4rq4-32rv-6wp6
No fix available
node_modules/shelljs
recursive-install *
Depends on vulnerable versions of shelljs
Depends on vulnerable versions of yargs
node_modules/recursive-install

yargs-parser <=5.0.0
Severity: moderate
Prototype Pollution in yargs-parser - https://github.com/advisories/GHSA-p9pc-299p-vxgp
No fix available
node_modules/recursive-install/node_modules/yargs-parser
yargs 4.0.0-alpha1 - 7.0.0-alpha.3 || 7.1.1
Depends on vulnerable versions of yargs-parser
node_modules/recursive-install/node_modules/yargs
recursive-install *
Depends on vulnerable versions of shelljs
Depends on vulnerable versions of yargs
node_modules/recursive-install

4 vulnerabilities (2 moderate, 2 high)

Some issues need review, and may require choosing
a different dependency.
```

It does not appear [recursive-install](https://www.npmjs.com/package/recursive-install) has been updated for 4 years.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by running `npm install` and `npm audit` in a fresh checkout, then inspect the dependency declarations leading to `recursive-install`, `shelljs`, and `yargs-parser`. Determine whether the outdated recursive-install dependency can be replaced or safely removed, and verify that the resulting install no longer reports the listed vulnerabilities.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
security, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.