Problem/Motivation
Note (& Cover My Ass-disclaimer): This issue been discussed with @longwave wearing his Drupal Security Team hat and he was OK with this being handled in the public queue, since PostCSS is a dev tool only.
Also the CVE affects linters using PostCSS to parse external Cascading Style Sheets, which we don't do.
Steps to reproduce
$ yarn audit
yarn audit v1.22.19
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ moderate │ PostCSS line return parsing error │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package │ postcss │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in │ >=8.4.31 │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ postcss │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path │ postcss │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info │ https://www.npmjs.com/advisories/1094239 │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ moderate │ PostCSS line return parsing error │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package │ postcss │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in │ >=8.4.31 │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ stylelint │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path │ stylelint > postcss │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info │ https://www.npmjs.com/advisories/1094239 │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ moderate │ PostCSS line return parsing error │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package │ postcss │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in │ >=8.4.31 │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ stylelint-order │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path │ stylelint-order > postcss │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info │ https://www.npmjs.com/advisories/1094239 │
└───────────────┴──────────────────────────────────────────────────────────────┘
3 vulnerabilities found - Packages audited: 822
Severity: 3 Moderate
Done in 4.13s.
Proposed resolution
Bump postcss to version 8.4.31
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comments
Comment #2
spokjeComment #3
spokjeComment #4
spokjeComment #5
spokjeComment #6
smustgrave commentedReran the 11.x tests and they had no failure.
Comment #7
longwaveCommitted and pushed 772ba90504 to 11.x and e4e192f7ba to 10.2.x and 35da18cb5b to 10.1.x. Thanks!