Skip to content
This repository has been archived by the owner on Nov 4, 2020. It is now read-only.

Package requirements contain security vulnerabilities. #12

Open
adamjaffeback opened this issue Aug 29, 2018 · 0 comments
Open

Package requirements contain security vulnerabilities. #12

adamjaffeback opened this issue Aug 29, 2018 · 0 comments

Comments

@adamjaffeback
Copy link

Background

npm install karma-angular-filesort successfully completes, but warns of a security vulnerability. `npm audit shows the following:

filesort

karma-angular-filesort currently requires [email protected], which in turn requires [email protected]. The printout in the console above shows that the security vulnerability is fixed with [email protected].

Solution

In order to fix this, ng-dependencies should be updated to the most recent version (0.8.1), which requires [email protected].

How did this happen?

I assumed that npm install karma-angular_filesort should have installed the most recent minor version of ng-dependencies which includes the lodash fix, because karma-angular-filesort requires "^0.3.0". However npm's documentation on semver states:

Allows changes that do not modify the left-most non-zero digit in the [major, minor, patch] tuple.

The key here is "non-zero" digit. As a result, v0.3.x is installed. Source: npm bug report.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant