lighthouse-ci
lighthouse-ci copied to clipboard
Update lighthouse and express versions to get rid of vulnerable cookie dependency
Is your feature request related to a problem? Please describe.
The current @lhci/cli version depends on a vulnerable version of cookies:
└─ @lhci/cli@npm:0.14.0 (via npm:^0.14.0)
├─ @lhci/utils@npm:0.14.0 (via npm:0.14.0)
│ └─ lighthouse@npm:12.1.0 (via npm:12.1.0)
│ └─ @sentry/node@npm:6.19.7 (via npm:^6.17.4)
│ └─ cookie@npm:0.4.2 (via npm:^0.4.1)
├─ express@npm:4.21.1 (via npm:^4.17.1)
│ └─ cookie@npm:0.7.1 (via npm:0.7.1)
└─ lighthouse@npm:12.1.0 (via npm:12.1.0)
Describe the solution you'd like We have to upgrade
-
lighthouseto the latest version (12.2.2) and- this will upgrade
@sentry/nodein version 7 that will vendors thecookiesdependency
- this will upgrade
-
expressto ~the latest version (5.0.1)~ a version >= 4.21.2.
Describe alternatives you've considered
Additional context
Related: https://github.com/GoogleChrome/lighthouse-ci/issues/1058
The low vulnerability in cookie by npm audit is still an outstanding issue: https://github.com/advisories/GHSA-pxg6-pf52-xh8x
Updating lighthouse in @lhci/cli from 12.1.0 to 12.3.0 should update the dependency tree and address the CVE.