lighthouse-ci icon indicating copy to clipboard operation
lighthouse-ci copied to clipboard

`got` has security vulnerability

Open akaustav opened this issue 2 years ago • 4 comments

The [email protected] package (that has been indirectly referenced in this repository) contains a "Moderate" security vulnerability - see https://github.com/advisories/GHSA-pfrx-2q88-qq97. The vulnerability has been fixed in a later version i.e. [email protected] (or higher).

Here is the output of the npm why command ran on a repo containing the @lhci/[email protected] - that shows the dependency tree of how the got package is being imported into this package:

$ npm why got
[email protected]
node_modules/got
  got@"^9.6.0" from [email protected]
  node_modules/package-json
    package-json@"^6.3.0" from [email protected]
    node_modules/latest-version
      latest-version@"^5.0.0" from [email protected]
      node_modules/update-notifier
        update-notifier@"^3.0.1" from @lhci/[email protected]
        node_modules/@lhci/cli
          @lhci/cli@"^0.9.0" from the root project

Consider upgrading the update-notifier package to 6.0.2 or the latest version. Or as per issue https://github.com/GoogleChrome/lighthouse/issues/13453 consider merging PR #756 where the update-notifier package is being removed.

akaustav avatar Jul 01 '22 14:07 akaustav

#756 has been merged. Oddly, npm has @lhci/[email protected], but the latest in this repo is 0.1.0 and the last time that line was changed was 3 years ago. I don't think this repo is where the package is getting published from despite the repository URL in the package.json.

jamesarosen avatar Jul 22 '22 16:07 jamesarosen

#756 has been merged.

@jamesarosen - Thank you for merging the PR. I will wait for the next release into the npm registry before marking this issue as "Closed".

Oddly, npm has @lhci/[email protected], but the latest in this repo is 0.1.0 and the last time that line was changed was 3 years ago. I don't think this repo is where the package is getting published from despite the repository URL in the package.json.

@jamesarosen - I am not a contributor on this repository - so I am not entirely familiar with the release process for this repository. Normally, I would agree with you. However, I noticed that the release process has been creating tags in this repository corresponding to the versions being published into the npm registry. This repository contains an npm workspace - that houses 4 projects / packages - see this folder. I am guessing that the release process is missing the step to increment the version numbers within each of the 4 package.json files (before the npm publish step). For example:

The GitHub tag v0.9.0 appears to be published as the following npm packages:

  1. @lhci/[email protected]
  2. @lhci/[email protected]
  3. @lhci/[email protected]
  4. @lhci/[email protected]

akaustav avatar Jul 23 '22 10:07 akaustav

I hope this gets a release soon. lhci/cli is the only package in our project that has any vulnerabilities - always disappointing to see the orange npm message popping up that something might be wrong.

Screenshot 2022-09-05 at 23 32 31

without @lhci/cli installed:

Screenshot 2022-09-05 at 23 30 09

ttristan avatar Sep 05 '22 21:09 ttristan

Hello,

Any update on this?

aalvarezwindey-peya avatar Sep 20 '22 19:09 aalvarezwindey-peya

0.10.0 is now available.

connorjclark avatar Nov 15 '22 02:11 connorjclark