Problem/Motivation

yarn audit is showing one vulnerability on 10.1.x, and multiple vulnerabilities on lower branches.

Steps to reproduce

cd core
rm -rf node_modules
yarn install
yarn audit

Proposed resolution

yarn upgrade
yarn vendor-update
yarn build
yarn audit

There are no changes to built assets or production dependencies with the current approach, so no un-minification to audit them is required.

Remaining tasks

A Nightwatch dependency has a critical vulnerability on 9.x that is not addressed by upgrades allowed by the current constraints:

yarn audit v1.22.17
───────────────┬──────────────────────────────────────────────────────────────┐
│ critical      │ flat vulnerable to Prototype Pollution                       │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ flat                                                         │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=5.0.1                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ nightwatch                                                   │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ nightwatch > mocha > yargs-unparser > flat                   │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1085318                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ high          │ minimatch ReDoS vulnerability                                │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ minimatch                                                    │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=3.0.5                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ nightwatch                                                   │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ nightwatch > minimatch                                       │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1085778                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ high          │ minimatch ReDoS vulnerability                                │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ minimatch                                                    │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=3.0.5                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ nightwatch                                                   │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ nightwatch > mocha > minimatch                               │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1085778                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
3 vulnerabilities found - Packages audited: 1184
Severity: 2 High | 1 Critical
✨  Done in 1.43s.

User interface changes

API changes

Data model changes

Release notes snippet

JavaScript dependencies have been updated to their latest patch releases to fix security issues.

Comments

xjm created an issue. See original summary.

xjm’s picture

Issue summary: View changes
xjm’s picture

StatusFileSize
new100.5 KB
new100.5 KB
new166.13 KB
new2.57 MB
xjm’s picture

Title: yarn audit shows vulnerabilities » Upgrade yarn dependencies to fix vulnerabilities shown by yarn audit
Issue tags: +Needs followup

Tagging "Needs followup" for the issues that aren't addressed within current constraints on 9.x (namely the critical Nightwatch issue).

xjm’s picture

Most of the changes to 9.5.x seem to be no-op code cleanups. However, 9.4.x has more substantive changes to the following files:

  • core/misc/date.js
  • core/misc/jquery.cookie.shim.js
  • core/misc/message.js
  • core/modules/ckeditor5/js/ckeditor5.admin.js
  • core/modules/ckeditor5/js/ckeditor5.js
  • core/modules/system/js/system.modules.js
  • core/modules/views_ui/js/views_ui.listing.js
xjm’s picture

The 9.4.x patch failure seems to be from:

[ayrton:core | Tue 15:49:22] $ yarn check -s
warning ../../../package.json: No license field
error "postcss-nesting#@csstools/selector-specificity" not installed
error Found 1 errors.

No idea what to do with that. 🤷‍♀️

xjm’s picture

xjm’s picture

Issue summary: View changes
xjm’s picture

StatusFileSize
new1.19 KB

@longwave suggested that we could upgrade the vulnerable dependencies only by removing it from the yarn.lock and rerunning yarn.install. I tried removing both json5 and debug, then running yarn install. This still leaves:

[ayrton:core | Tue 16:28:53] $ yarn audit
yarn audit v1.22.17
warning ../../../package.json: No license field
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ low           │ debug Inefficient Regular Expression Complexity              │
│               │ vulnerability                                                │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ debug                                                        │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=3.1.0                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ eslint-plugin-import                                         │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ eslint-plugin-import > debug                                 │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1087958                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
1 vulnerabilities found - Packages audited: 792
Severity: 1 Low
✨  Done in 0.81s.

...but that same vulnerability is also present with the patch from #3, so we'd need to change constraints to fix it.

Attached shows the manual removal I made to yarn.lock, and the resultant update for json5 only in the patch.

xjm’s picture

Forgot to attach the manual removal diff; doing so here.

Repeating this on 9.5.x. yarn audit of HEAD gives:

[ayrton:core | Tue 16:35:05] $ yarn audit
yarn audit v1.22.17
warning ../../../package.json: No license field
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ critical      │ flat vulnerable to Prototype Pollution                       │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ flat                                                         │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=5.0.1                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ nightwatch                                                   │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ nightwatch > mocha > yargs-unparser > flat                   │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1085318                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ high          │ minimatch ReDoS vulnerability                                │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ minimatch                                                    │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=3.0.5                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ nightwatch                                                   │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ nightwatch > minimatch                                       │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1085778                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ high          │ minimatch ReDoS vulnerability                                │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ minimatch                                                    │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=3.0.5                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ nightwatch                                                   │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ nightwatch > mocha > minimatch                               │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1085778                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ high          │ Prototype Pollution in JSON5 via Parse Method                │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ json5                                                        │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=2.2.2                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ @babel/core                                                  │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ @babel/core > json5                                          │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1085312                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ high          │ Prototype Pollution in JSON5 via Parse Method                │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ json5                                                        │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=1.0.2                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ eslint-plugin-import                                         │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ eslint-plugin-import > tsconfig-paths > json5                │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1085311                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ low           │ debug Inefficient Regular Expression Complexity              │
│               │ vulnerability                                                │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ debug                                                        │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=3.1.0                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ eslint-plugin-import                                         │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ eslint-plugin-import > debug                                 │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1087958                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
6 vulnerabilities found - Packages audited: 1022
Severity: 1 Low | 4 High | 1 Critical
✨  Done in 1.72s.

On 9.5.x this saves a whole lot of random little changes to the built assets, +1 for this approach.

xjm’s picture

Issue summary: View changes
StatusFileSize
new11 KB
new9.17 KB

For 9.4.x:

[ayrton:core | Tue 16:42:09] $ yarn audit
yarn audit v1.22.17
warning ../../../package.json: No license field
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ critical      │ flat vulnerable to Prototype Pollution                       │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ flat                                                         │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=5.0.1                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ nightwatch                                                   │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ nightwatch > mocha > yargs-unparser > flat                   │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1085318                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ high          │ minimatch ReDoS vulnerability                                │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ minimatch                                                    │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=3.0.5                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ nightwatch                                                   │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ nightwatch > minimatch                                       │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1085778                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ high          │ minimatch ReDoS vulnerability                                │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ minimatch                                                    │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=3.0.5                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ nightwatch                                                   │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ nightwatch > mocha > minimatch                               │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1085778                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ high          │ Terser insecure use of regular expressions before v4.8.1 and │
│               │ v5.14.2 leads to ReDoS                                       │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ terser                                                       │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=5.14.2                                                     │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ @ckeditor/ckeditor5-dev-utils                                │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ @ckeditor/ckeditor5-dev-utils > terser-webpack-plugin >      │
│               │ terser                                                       │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1081698                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ high          │ Terser insecure use of regular expressions before v4.8.1 and │
│               │ v5.14.2 leads to ReDoS                                       │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ terser                                                       │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=5.14.2                                                     │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ terser-webpack-plugin                                        │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ terser-webpack-plugin > terser                               │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1081698                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ high          │ Terser insecure use of regular expressions before v4.8.1 and │
│               │ v5.14.2 leads to ReDoS                                       │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ terser                                                       │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=5.14.2                                                     │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ webpack                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ webpack > terser-webpack-plugin > terser                     │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1081698                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ high          │ loader-utils is vulnerable to Regular Expression Denial of   │
│               │ Service (ReDoS) via url variable                             │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ loader-utils                                                 │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=2.0.4                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ raw-loader                                                   │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ raw-loader > loader-utils                                    │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1084992                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ high          │ loader-utils is vulnerable to Regular Expression Denial of   │
│               │ Service (ReDoS) via url variable                             │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ loader-utils                                                 │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=2.0.4                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ @ckeditor/ckeditor5-dev-utils                                │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ @ckeditor/ckeditor5-dev-utils > postcss-loader >             │
│               │ loader-utils                                                 │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1084992                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ high          │ loader-utils is vulnerable to Regular Expression Denial of   │
│               │ Service (ReDoS)                                              │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ loader-utils                                                 │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=2.0.4                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ raw-loader                                                   │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ raw-loader > loader-utils                                    │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1087892                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ high          │ loader-utils is vulnerable to Regular Expression Denial of   │
│               │ Service (ReDoS)                                              │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ loader-utils                                                 │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=2.0.4                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ @ckeditor/ckeditor5-dev-utils                                │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ @ckeditor/ckeditor5-dev-utils > postcss-loader >             │
│               │ loader-utils                                                 │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1087892                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ critical      │ Prototype pollution in webpack loader-utils                  │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ loader-utils                                                 │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=2.0.3                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ raw-loader                                                   │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ raw-loader > loader-utils                                    │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1087895                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ critical      │ Prototype pollution in webpack loader-utils                  │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ loader-utils                                                 │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=2.0.3                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ @ckeditor/ckeditor5-dev-utils                                │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ @ckeditor/ckeditor5-dev-utils > postcss-loader >             │
│               │ loader-utils                                                 │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1087895                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ high          │ Prototype Pollution in JSON5 via Parse Method                │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ json5                                                        │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=2.2.2                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ @babel/core                                                  │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ @babel/core > json5                                          │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1085312                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ high          │ Prototype Pollution in JSON5 via Parse Method                │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ json5                                                        │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=2.2.2                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ postcss-header                                               │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ postcss-header > @babel/core > json5                         │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1085312                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ high          │ Prototype Pollution in JSON5 via Parse Method                │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ json5                                                        │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=2.2.2                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ @ckeditor/ckeditor5-dev-utils                                │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ @ckeditor/ckeditor5-dev-utils > postcss-loader >             │
│               │ loader-utils > json5                                         │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1085312                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ critical      │ vm2 vulnerable to Arbitrary Code Execution                   │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ vm2                                                          │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=3.9.10                                                     │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ nightwatch                                                   │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ nightwatch > proxy-agent > pac-proxy-agent > pac-resolver >  │
│               │ degenerator > vm2                                            │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1085320                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ critical      │ vm2 vulnerable to Sandbox Escape resulting in Remote Code    │
│               │ Execution on host                                            │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ vm2                                                          │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=3.9.11                                                     │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ nightwatch                                                   │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ nightwatch > proxy-agent > pac-proxy-agent > pac-resolver >  │
│               │ degenerator > vm2                                            │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1085427                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ high          │ Prototype Pollution in JSON5 via Parse Method                │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ json5                                                        │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=1.0.2                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ eslint-plugin-import                                         │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ eslint-plugin-import > tsconfig-paths > json5                │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1085311                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ low           │ debug Inefficient Regular Expression Complexity              │
│               │ vulnerability                                                │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ debug                                                        │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=3.1.0                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ eslint-plugin-import                                         │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ eslint-plugin-import > debug                                 │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1087958                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
19 vulnerabilities found - Packages audited: 1178
Severity: 1 Low | 13 High | 5 Critical
✨  Done in 1.93s.

Much cleaner update, no built asset changes and therefore hopefully no yarn check failure.

longwave credited Spokje.

longwave’s picture

Adding credit for Spokje who brought this issue to my attention privately a few days ago, and who demonstrated the same solution as #9.

xjm’s picture

Issue tags: +Needs release note
spokje’s picture

Regarding:

[ayrton:core | Tue 16:28:53] $ yarn audit
yarn audit v1.22.17
warning ../../../package.json: No license field
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ low           │ debug Inefficient Regular Expression Complexity              │
│               │ vulnerability                                                │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ debug                                                        │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=3.1.0                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ eslint-plugin-import                                         │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ eslint-plugin-import > debug                                 │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1087958                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
1 vulnerabilities found - Packages audited: 792
Severity: 1 Low
✨  Done in 0.81s.

This seems to be caused by an incorrect CVE based on a correct CVE from 2018(!), so there isn't an actual vulnerability, (that was in 2.6.8 and fixed in 2.6.8, which we're using) at least that's what I understand from https://github.com/debug-js/debug/issues/924 and https://github.com/expressjs/express/issues/5088#issuecomment-1378028914

All we can done here, I reckon, is to wait until the incorrect CVE has been reviewed and changed/revoked.

xjm’s picture

xjm’s picture

So let's ignore debug for now (as well as a handful of other vulns on 9..x that aren't cleaned up with simple lockfile updates) and focus on gettin these for now-simple patches in? And have followups to address the remaining yarn audit issues when either our constraints allow it or upstream makes it easier.

Thanks!

spokje’s picture

CVE on debug has been updated, warning in yarn audit has disappeared.

spokje’s picture

So there's a lot going on in this issue with multiple patches for multiple core versions.
Let's see if we can go through all of them in a series of comments.

For 10.0.x-dev and 10.1.x-dev patch yarn-3332447-9-10.0.x.patch from #9 results in a "clean" yarn audit:

frank@LAPTOP-EMEOAUGS:/mnt/d/htdocs/drupal/core$ patch -p1 < yarn-3332447-9-10.0.x.patch
patching file core/yarn.lock
frank@LAPTOP-EMEOAUGS:/mnt/d/htdocs/drupal/core$ yarn install
yarn install v1.22.19
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
[4/5] Linking dependencies...
[5/5] Building fresh packages...
Done in 77.16s.
frank@LAPTOP-EMEOAUGS:/mnt/d/htdocs/drupal/core$ yarn audit
yarn audit v1.22.19
0 vulnerabilities found - Packages audited: 777
Done in 1.21s.
spokje’s picture

On 9.5.x-dev applying patch yarn-3332447-9-9.5.x.patch from #10 gives us:

frank@LAPTOP-EMEOAUGS:/mnt/d/htdocs/drupal/core$ patch -p1 < yarn-3332447-9-9.5.x.patch
patching file core/yarn.lock
frank@LAPTOP-EMEOAUGS:/mnt/d/htdocs/drupal/core$ yarn install
yarn install v1.22.19
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
[4/5] Linking dependencies...
[5/5] Building fresh packages...
Done in 95.47s.
frank@LAPTOP-EMEOAUGS:/mnt/d/htdocs/drupal/core$ yarn audit
yarn audit v1.22.19
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ critical      │ flat vulnerable to Prototype Pollution                       │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ flat                                                         │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=5.0.1                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ nightwatch                                                   │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ nightwatch > mocha > yargs-unparser > flat                   │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1085318                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ high          │ minimatch ReDoS vulnerability                                │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ minimatch                                                    │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=3.0.5                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ nightwatch                                                   │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ nightwatch > minimatch                                       │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1085778                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ high          │ minimatch ReDoS vulnerability                                │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ minimatch                                                    │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=3.0.5                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ nightwatch                                                   │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ nightwatch > mocha > minimatch                               │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1085778                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
3 vulnerabilities found - Packages audited: 1022
Severity: 2 High | 1 Critical
Done in 0.93s.

That's 2 vulnerabilities less than without the patch:

frank@LAPTOP-EMEOAUGS:/mnt/d/htdocs/drupal/core$ yarn audit
yarn audit v1.22.19
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ critical      │ flat vulnerable to Prototype Pollution                       │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ flat                                                         │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=5.0.1                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ nightwatch                                                   │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ nightwatch > mocha > yargs-unparser > flat                   │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1085318                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ high          │ minimatch ReDoS vulnerability                                │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ minimatch                                                    │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=3.0.5                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ nightwatch                                                   │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ nightwatch > minimatch                                       │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1085778                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ high          │ minimatch ReDoS vulnerability                                │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ minimatch                                                    │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=3.0.5                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ nightwatch                                                   │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ nightwatch > mocha > minimatch                               │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1085778                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ high          │ Prototype Pollution in JSON5 via Parse Method                │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ json5                                                        │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=2.2.2                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ @babel/core                                                  │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ @babel/core > json5                                          │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1088342                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ high          │ Prototype Pollution in JSON5 via Parse Method                │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ json5                                                        │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=1.0.2                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ eslint-plugin-import                                         │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ eslint-plugin-import > tsconfig-paths > json5                │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1088341                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
5 vulnerabilities found - Packages audited: 1022
Severity: 4 High | 1 Critical
Done in 0.94s.
spokje’s picture

On 9.4.x-dev applying patch yarn-3332447-11-9.4.x.patch from #11 gives us:

frank@LAPTOP-EMEOAUGS:/mnt/d/htdocs/drupal/core$ patch -p1 < yarn-3332447-11-9.4.x.patch
patching file core/yarn.lock
frank@LAPTOP-EMEOAUGS:/mnt/d/htdocs/drupal/core$ yarn install
yarn install v1.22.19
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
[4/5] Linking dependencies...
[5/5] Building fresh packages...
Done in 95.47s.
frank@LAPTOP-EMEOAUGS:/mnt/d/htdocs/drupal/core$ yarn audit
yarn audit v1.22.19
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ critical      │ flat vulnerable to Prototype Pollution                       │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ flat                                                         │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=5.0.1                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ nightwatch                                                   │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ nightwatch > mocha > yargs-unparser > flat                   │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1085318                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ high          │ minimatch ReDoS vulnerability                                │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ minimatch                                                    │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=3.0.5                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ nightwatch                                                   │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ nightwatch > minimatch                                       │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1085778                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ high          │ minimatch ReDoS vulnerability                                │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ minimatch                                                    │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=3.0.5                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ nightwatch                                                   │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ nightwatch > mocha > minimatch                               │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1085778                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
3 vulnerabilities found - Packages audited: 1163
Severity: 2 High | 1 Critical
Done in 1.24s.

That's 15 vulnerabilities less than without the patch:

frank@LAPTOP-EMEOAUGS:/mnt/d/htdocs/drupal/core$ yarn audit
yarn audit v1.22.19
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ critical      │ flat vulnerable to Prototype Pollution                       │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ flat                                                         │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=5.0.1                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ nightwatch                                                   │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ nightwatch > mocha > yargs-unparser > flat                   │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1085318                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ high          │ minimatch ReDoS vulnerability                                │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ minimatch                                                    │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=3.0.5                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ nightwatch                                                   │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ nightwatch > minimatch                                       │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1085778                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ high          │ minimatch ReDoS vulnerability                                │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ minimatch                                                    │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=3.0.5                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ nightwatch                                                   │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ nightwatch > mocha > minimatch                               │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1085778                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ critical      │ vm2 vulnerable to Arbitrary Code Execution                   │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ vm2                                                          │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=3.9.10                                                     │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ nightwatch                                                   │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ nightwatch > proxy-agent > pac-proxy-agent > pac-resolver >  │
│               │ degenerator > vm2                                            │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1085320                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ critical      │ vm2 vulnerable to Sandbox Escape resulting in Remote Code    │
│               │ Execution on host                                            │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ vm2                                                          │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=3.9.11                                                     │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ nightwatch                                                   │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ nightwatch > proxy-agent > pac-proxy-agent > pac-resolver >  │
│               │ degenerator > vm2                                            │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1085427                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ high          │ loader-utils is vulnerable to Regular Expression Denial of   │
│               │ Service (ReDoS)                                              │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ loader-utils                                                 │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=2.0.4                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ raw-loader                                                   │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ raw-loader > loader-utils                                    │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1087892                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ high          │ loader-utils is vulnerable to Regular Expression Denial of   │
│               │ Service (ReDoS)                                              │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ loader-utils                                                 │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=2.0.4                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ @ckeditor/ckeditor5-dev-utils                                │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ @ckeditor/ckeditor5-dev-utils > postcss-loader >             │
│               │ loader-utils                                                 │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1087892                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ critical      │ Prototype pollution in webpack loader-utils                  │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ loader-utils                                                 │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=2.0.3                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ raw-loader                                                   │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ raw-loader > loader-utils                                    │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1087895                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ critical      │ Prototype pollution in webpack loader-utils                  │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ loader-utils                                                 │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=2.0.3                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ @ckeditor/ckeditor5-dev-utils                                │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ @ckeditor/ckeditor5-dev-utils > postcss-loader >             │
│               │ loader-utils                                                 │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1087895                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ high          │ loader-utils is vulnerable to Regular Expression Denial of   │
│               │ Service (ReDoS) via url variable                             │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ loader-utils                                                 │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=2.0.4                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ raw-loader                                                   │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ raw-loader > loader-utils                                    │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1087985                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ high          │ loader-utils is vulnerable to Regular Expression Denial of   │
│               │ Service (ReDoS) via url variable                             │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ loader-utils                                                 │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=2.0.4                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ @ckeditor/ckeditor5-dev-utils                                │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ @ckeditor/ckeditor5-dev-utils > postcss-loader >             │
│               │ loader-utils                                                 │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1087985                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ high          │ Prototype Pollution in JSON5 via Parse Method                │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ json5                                                        │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=2.2.2                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ @babel/core                                                  │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ @babel/core > json5                                          │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1088342                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ high          │ Prototype Pollution in JSON5 via Parse Method                │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ json5                                                        │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=2.2.2                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ postcss-header                                               │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ postcss-header > @babel/core > json5                         │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1088342                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ high          │ Prototype Pollution in JSON5 via Parse Method                │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ json5                                                        │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=2.2.2                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ @ckeditor/ckeditor5-dev-utils                                │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ @ckeditor/ckeditor5-dev-utils > postcss-loader >             │
│               │ loader-utils > json5                                         │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1088342                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ high          │ Terser insecure use of regular expressions before v4.8.1 and │
│               │ v5.14.2 leads to ReDoS                                       │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ terser                                                       │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=5.14.2                                                     │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ @ckeditor/ckeditor5-dev-utils                                │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ @ckeditor/ckeditor5-dev-utils > terser-webpack-plugin >      │
│               │ terser                                                       │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1088439                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ high          │ Terser insecure use of regular expressions before v4.8.1 and │
│               │ v5.14.2 leads to ReDoS                                       │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ terser                                                       │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=5.14.2                                                     │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ terser-webpack-plugin                                        │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ terser-webpack-plugin > terser                               │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1088439                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ high          │ Terser insecure use of regular expressions before v4.8.1 and │
│               │ v5.14.2 leads to ReDoS                                       │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ terser                                                       │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=5.14.2                                                     │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ webpack                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ webpack > terser-webpack-plugin > terser                     │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1088439                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ high          │ Prototype Pollution in JSON5 via Parse Method                │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ json5                                                        │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=1.0.2                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ eslint-plugin-import                                         │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ eslint-plugin-import > tsconfig-paths > json5                │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1088341                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
18 vulnerabilities found - Packages audited: 1178
Severity: 13 High | 5 Critical
Done in 1.68s.
spokje’s picture

Status: Needs review » Reviewed & tested by the community

focus on gettin these for now-simple patches in?

The now-simple patches reduce the amount of vulnerabilities detected with yarn audit.
On 10.0.x and 10.1.x they reduce them to 0.

For me this is a RTBC.

longwave’s picture

Removing frontend framework manager review tag, I don't think it's needed now we are no longer making changes to built assets, and added a short release note snippet.

Also removing "needs followup" as I don't believe we can do anything about the remaining Nightwatch issues in 9.x without a major version upgrade, which is not possible if we also want to retain backward compatibility.

Committed and pushed c13e8ec365 to 10.1.x and 9130250b65 to 10.0.x.

Committed and pushed 82f4da1540 to 9.5.x.

Committed and pushed f08ff26754 to 9.4.x. Thanks!

xjm’s picture

xjm’s picture

This does belong in the 10.1.x release notes since the dependency updates there are much broader than the patch releases' updates; however, for now, I've left it to the normal note of:

Drupal core's JavaScript dependencies have been updated, and the latest minor versions of all JavaScript dependencies are now required by core yarn constraints.

(The second half of that isn't true yet, but will be before release.)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.