I've received for the first time a notification from GitHub about a potential security issue (label: high-severity) with some of my project's dependencies. Here's the sample message:
url-parse vulnerability found in package-lock.json
And this is the proposed solution:
Upgrade url-parse to version 1.4.3 or later. For example:
"dependencies": {
"url-parse": ">=1.4.3"
}
or…
"devDependencies": {
"url-parse": ">=1.4.3"
}
Now, what I did was to simply check for any outdated packages by running npm outdated -g --depth=0
in my terminal as per the official documentation and execute the npm -g update
command (I also tried targeting the dependency itself with npm update url-parse
). A few packages were successfully updated, but it didn't seem to find the package causing the issue. Am I supposed to update it manually by adding the suggested line of code: "url-parse": ">=1.4.3"
?
And finally, how much should I be concerned with such alerts?
Thank you!