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 all packages #30

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Conversation

windusayles
Copy link

I came across these out-of-date packages when I noticed a security warning for an older version of ansi-regex (more below), which is called by an older version of inquirer, which I found in this package, load-grunt-configs. After updating all packages to current, I ran npm test and saw that yaml.safeLoad is no longer available, but yaml.load is "safe by default":

$ npm test

> [email protected] test /Users/c287688/apps/load-grunt-configs
> grunt nodeunit

Loading "Gruntfile.js" tasks...ERROR
>> Error: Function yaml.safeLoad is removed in js-yaml 4. Use yaml.load instead, which is now safe by default.
>> No "nodeunit" targets found.
Warning: Task "nodeunit" failed. Use --force to continue.

Aborted due to warnings.
npm ERR! Test failed.  See above for more details.

The ansi-regex package is vulnerable to Regular Expression Denial of Service (ReDoS). The index.js file uses an insecure regular expression to identify ANSI escape codes. A remote attacker who is able to supply or influence the input to the affected function can exploit this issue to cause a Denial of Service condition.

For security reasons, please merge this PR in as soon as possible. Thank you.

@darrenwh-bjss
Copy link

Would be good to get this merged as I need to get lodash updated on this package.

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

Successfully merging this pull request may close these issues.

2 participants