klaudiosinani / klaudiosinani/taskbook

unsafe dependencies

Open
#194 4 comments 0 reactions 0 assignees View on GitHub
good first issue
Dominant language
JavaScript
Stars
9.3k
Forks
393
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
I wanted to install taskbook and try it out, but npm tells me it has unsafe dependencies.

**To Reproduce**
update npm, install taskbook via npm

**Expected behavior**
The dependencies should be up to date, if possible.

**Technical Info (please complete the following information)**
- OS: Linux
- Node.js Version: 12.16.3
- Taskbook Version: 0.3.0

**Additional context**
Commandline outputs:
```
$ npm install taskbook

added 129 packages, and audited 130 packages in 4s

5 packages are looking for funding
run `npm fund` for details

9 vulnerabilities (6 moderate, 3 high)

To address issues that do not require attention, run:
npm audit fix

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

Run `npm audit` for details.
```
```
$ npm audit fix

up to date, audited 130 packages in 1s

5 packages are looking for funding
run `npm fund` for details

# npm audit report

ansi-regex >2.1.1 <5.0.1
Severity: moderate
Inefficient Regular Expression Complexity in chalk/ansi-regex - https://github.com/advisories/GHSA-93q8-gq69-wqmw
fix available via `npm audit fix`
node_modules/ansi-regex
strip-ansi 4.0.0 - 5.2.0
Depends on vulnerable versions of ansi-regex
node_modules/strip-ansi
string-width 2.1.0 - 4.1.0
Depends on vulnerable versions of strip-ansi
node_modules/string-width
widest-line 2.0.0 - 2.0.1
Depends on vulnerable versions of string-width
node_modules/widest-line
boxen 1.3.0 - 3.2.0
Depends on vulnerable versions of widest-line
node_modules/boxen

trim-newlines <3.0.1
Severity: high
Regular Expression Denial of Service in trim-newlines - https://github.com/advisories/GHSA-7p7h-4mm5-852v
No fix available
node_modules/trim-newlines
meow 3.4.0 - 5.0.0
Depends on vulnerable versions of trim-newlines
Depends on vulnerable versions of yargs-parser
node_modules/meow
taskbook *
Depends on vulnerable versions of meow
node_modules/taskbook

yargs-parser 6.0.0 - 13.1.1
Severity: moderate
Prototype Pollution in yargs-parser - https://github.com/advisories/GHSA-p9pc-299p-vxgp
No fix available
node_modules/yargs-parser
meow 3.4.0 - 5.0.0
Depends on vulnerable versions of trim-newlines
Depends on vulnerable versions of yargs-parser
node_modules/meow
taskbook *
Depends on vulnerable versions of meow
node_modules/taskbook

9 vulnerabilities (6 moderate, 3 high)

To address issues that do not require attention, run:
npm audit fix

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

Contributor guide

Open the contributing guide

Research direction

Reproduce the report on Linux with Node.js 12.16.3 by installing taskbook via npm, then run npm audit and trace the vulnerable ansi-regex, trim-newlines, and yargs-parser dependency paths. No repository file is named; done would require updating or replacing the affected dependencies where fixes are available and documenting any remaining issues without fixes.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
cli, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.