Page MenuHomePhabricator

Update vulnerable dependencies
Closed, ResolvedPublic

Description

As part of T290248: Security Readiness Review For Campaigns Registration System, some packages with vulnerabilities have been identified. Since they are only used in the development environment, the risk level is not high. So let's update the ones that are not complicated to do so, and note the ones that are to be addressed separately.

Acceptance Criteria

  • Update packages listed below if doing so won't compatibility issues
  • If some of the newer versions contain breaking changes and will hence be difficult to update, create a separate task for it.

As reported via npm audit:

PackageVersionVuln DescVuln URLServiceRisk
grunt1.5.3Race Condition in Gruntadvisory linknpm audit high

As reported via scan.sh:

VulnerabilityPackageNotesServiceRemediationRisk
CVE-2021-44906minimistcurrent: <1.2.6; fixed in: 1.2.6scan[see details within advisory links] critical
CVE-2021-23343path-parsecurrent: <1.0.7; fixed in: 1.0.7scan[see details within advisory links] medium
CVE-2020-7753trimcurrent: <0.0.3; fixed in: 0.0.3scan[see details within advisory links] high
CVE-2021-33623trim-newlinescurrent: <3.0.1; fixed in: 3.0.1scan[see details within advisory links] high
CVE-2021-23566nanoidcurrent: >=3.0.0-<3.1.31; fixed in: 3.1.31scan[see details within advisory links] medium
CVE-2021-3807ansi-regexcurrent: >=5.0.0-<5.0.1; fixed in: 5.0.1scan[see details within advisory links] high

Details

Event Timeline

vyuen updated the task description. (Show Details)
vyuen added subscribers: Daimona, cmelo, MHorsey-WMF and 2 others.

Change 837762 had a related patch set uploaded (by Daimona Eaytoy; author: Daimona Eaytoy):

[mediawiki/extensions/CampaignEvents@master] Update node dependencies

https://gerrit.wikimedia.org/r/837762

Change 837762 merged by jenkins-bot:

[mediawiki/extensions/CampaignEvents@master] build: Update node dependencies

https://gerrit.wikimedia.org/r/837762

This was done, and in the meanwhile, LibUp was restarted and updated a few things as well.