-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[wordpress/scripts] 5 high severity vulnerabilities #63771
Comments
Thanks for raising this, @kjroelke 👍 |
Thanks @kjroelke ! Any news on this for a fix ? |
@leup besides adding the "overrides" param in your package.json file, no. For what it's worth, I noticed that v30.0.2 seems to fix part of this problem, but as I've worked with it, the vulnerabilities still exist, so there must be some peer dependency that still requires an insecure version of puppeteer-core. I'm not a contributor (yet) and I have no experience with Docker or WP-CLI (yet) so I can't open a PR (yet 😂) and I'm hoping to level up my skills to begin to contribute! Or at least get things started. I am also inexperienced with mono-repo architecture and I just had my first child, so it may be a while for me before I can really begin to contribute with anything besides Issues and comments 😅 |
It shows slightly different in my case, it will down grade to cross-spawn <6.0.6
Severity: high
Regular Expression Denial of Service (ReDoS) in cross-spawn - https://github.com/advisories/GHSA-3xgq-45jj-v275
fix available via `npm audit fix --force`
Will install @wordpress/[email protected], which is a breaking change
node_modules/cross-spawn
@wordpress/scripts >=1.0.1-0
Depends on vulnerable versions of cross-spawn
node_modules/@wordpress/scripts
ws 8.0.0 - 8.17.0
Severity: high
ws affected by a DoS when handling a request with many HTTP headers - https://github.com/advisories/GHSA-3h5v-q93c-6h6q
fix available via `npm audit fix`
node_modules/lighthouse/node_modules/puppeteer-core/node_modules/ws
puppeteer-core 11.0.0 - 22.11.1
Depends on vulnerable versions of ws
node_modules/lighthouse/node_modules/puppeteer-core |
@hueitan the overrides parameter still fixes this issue, and I don't know if what you're working on is compatible with the latest version of the vulnerable dependencies. Here's my latest "overrides": {
"cookie": "^1.0.1",
"cross-spawn": "^7.0.6",
"puppeteer-core": "^23.9.0"
} I see that PR #64597 attempted to fix the |
Description
Installing
@wordpress/scripts
package throws vulnerability errors with npm.Terminal responds with “5 high severity issues” that appear to stemming from
ws
,puppeteer-core
, andlighthouse
.What I’ve tried:
npm audit fix --force
downgrades @wordpress/scripts to v19.2.4, unsurprisingly causing 47 other vulnerabilities.overrides
param inpackage.json
fixes the issue.Step-by-step reproduction instructions
npm install @wordpress/scripts
or go throughnpx @wordpress/create-block
npm audit
Screenshots, screen recording, code snippet
Environment info
Unsure if this bit matters, but for what's worth:
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
The text was updated successfully, but these errors were encountered: