Closed (fixed)
Project:
Drupal core
Version:
8.8.x-dev
Component:
javascript
Priority:
Major
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
9 Mar 2020 at 16:53 UTC
Updated:
17 Jun 2020 at 09:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
klausiComment #4
dww@xjm was asking for this issue in the #d9readiness meeting today.
Current results:
9.1.x
22 vulnerabilities found - Packages audited: 938
Severity: 21 Low | 1 Moderate
9.0.x
22 vulnerabilities found - Packages audited: 938
Severity: 21 Low | 1 Moderate
8.9.x
299 vulnerabilities found - Packages audited: 870
Severity: 296 Low | 1 Moderate | 2 High
high
Moderate
8.8.x
299 vulnerabilities found - Packages audited: 870
Severity: 296 Low | 1 Moderate | 2 High
(Same as 8.9.x)
I believe the 9.y.x parts of this are blocked on #3107926: Update stylelint to ^13.0.0
Comment #5
dwwNot at all sure this is the right approach, but here's a start. ;)
I can't seem to upgrade just https-proxy-agent nor proxy-agent:
The only thing that seems to work is updating nightwatch itself. :( See attached for full command output.
% yarn upgrade nightwatch
yarn upgrade v1.22.4
...
success Saved lockfile.
success Saved 95 new dependencies.
...
✨ Done in 14.39s
After that
yarn audit --level highis coming back empty. Let's see what the bot thinks of this.Comment #6
dwwNote, to resolve the 'Moderate' issue, it seems I have to use 'yarn upgrade eslint'. Perhaps that should be better handled as an 8.9.x backport of #3107926: Update stylelint to ^13.0.0?
Comment #7
dwwRe: #6: Sorry, I misread. That's about "stylelint" not "eslint", which aren't the same. ;) So, would like input on if this issue should handle both eslint and nightwatch for 8.9.x or if we should split out eslint to a separate issue.
Comment #8
dwwThe 9.1.x "moderate" is the same vulnerability as 8.9.x:
eslint > espree > acornSo perhaps it makes sense to have a separate issue for "Update eslint yarn dependency" that can be for all branches?
Comment #9
dwwPer Slack w/ @xjm, here's an 8.9.x patch that includes both nightwatch and eslint upgrades.
Comment #10
dwwNow that #3107926: Update stylelint to ^13.0.0 landed, here's a patch for D9 (applies to both 9.1.x and 9.0.x) to upgrade eslint to fix the moderate vuln there.
Comment #11
xjmyarn-lock-diffof #9:Edit: Tried to make it readable by macro-ing it into tsv, with limited success.
Comment #12
xjmHere's a spreadsheet since that was less work to format:
https://docs.google.com/spreadsheets/d/1hA6DA_kWDynzziNOduKxirq_2vbK0jd9...
Comment #13
dwwComment #14
xjmComment #15
lauriiiI don't think yarn has a built in command for only updating security releases. To make our lives easier, should we just run
yarn upgradeand update all packages within the version constrains we've set? If there's something breaking, we can update the version constrain to not update that package until we have resolved the issue.Comment #16
lauriiiStarted implementing based on #15. After this there's only two cases to handle on 8.9.x, and one on 9.0.x.
Comment #17
lauriiiThe only remaining package to update is yargs. We should probably open a follow-up for that since it seems like updating it might require changes to stylelint-no-browser-hacks.
Comment #18
lauriiiOpened #3144854: Remove stylelint-no-browser-hacks as a follow-up.
Comment #19
alexpottIn order to verify the patches in #16 I ran
yarn upgrade && yarn build.Note if I run
yarn buildon HEAD of either 8.9.x on 9.0.x there are no changes.9.x review
There's a difference after running
yarn build8.9.x review
I tried to do the same updates locally and found that I couldn't repeat the 8.9.x one. And I get errors when I try to commit it:
The yarn.lock file is exactly the same. This happens with Yarn 1.19.1 and Yarn 1.22.4
Comment #20
tedbowLooking at @alexpott's review in #19
yarn buildI am using yarn version 1.22.4.
yarn upgradedoes get 1 change to is-callable https://classic.yarnpkg.com/en/package/is-callable
Because is-callable 1.2.0 was released today. No uploading patch because I think if we did every time somebody reviewed there would be a new update.
running
The only difference still in
is-callableand I don't get an error with
BABEL_ENV=legacy node ./scripts/js/babel-es6-build.js --check --file /Users/ted.bowman/sites/d8/core/modules/quickedit/js/models/EntityModel.es6.jsComment #21
alexpottHmmm... I can't explain this. I've tried multiple versions of node (12 & 14) and yarn and still end up with differences.
Comment #22
alexpottActually - yeah upgrading node from 12 to 14 fixed what I was seeing. I now can apply #16 and run yarn build and nothing changes.
Sorry for the noise. Given that @tedbow has verified @lauriii's work and now I have I think we're good to go here.
Comment #23
nod_tried #16 for 9.x and same as tedbow. No diff in the JS, after a yarn build I have is-callable updated, electron-to-chromium updated.
yarn 1.22.4
node 12.17.0
so yeah RTBC+1
Comment #27
alexpottI postponed #3143289: Upgrade babel dependencies (yarn run build:js broken) on this. I think everyone from that issue should also get credit here
Comment #28
alexpottCommitted and pushed 045a00c129 to 9.1.x and ac4f426e32 to 9.0.x. Thanks!
Committed 0aea9b9 and pushed to 8.9.x. Thanks!
Fwiw on 8.9.x you need to run
yarn run lint:core-js-passing --fixFixed the js coding standards on commit.
Confirmed that 8.9.x and 9.0.x can run yarn lint:css && yarn run lint:core-js-passing wthout any fails.
Comment #32
alexpottComment #33
xjmThis is also supposed to address 8.8.x sec issues.
Comment #34
xjmOops, I thought there was an 8.8.x patch earlier on the issue but there wasn't.
Comment #35
alexpottI tried to use yarn upgrade-interactive to do a minimal upgrade to fix the 299!!! warnings from yarn audit. Was not possible. So did yarn upgrade - that means we're now down to 2 audit messages about yargs-parser - same as 8.9.x and 9.0.x.
And checked yarn lint:css is not reporting any fails.
Comment #36
nod_Tested on 8.8, running the commands no diff on my end with the patch #35.
Comment #38
lauriiiCommitted a2c5f7b and pushed to 8.8.x. Thanks!
Comment #39
xjm