-
-
Notifications
You must be signed in to change notification settings - Fork 2.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
npm audit moderate severity postcss dependency related #6315
Comments
#6317 upgrades htmlnano and cssnano to the latest version, but even the latest htmlnano still uses uncss which depends on PostCSS 7 |
will the upcoming fixes to Parcel 2 referenced above make their way into parcel-bundler (v1)? |
No. Especially because updating dependencies to new major versions would be a breaking change for v1. |
not really a "thumbs up" but more of an "acknowledged". I know from reading some of the issue traffic that parcel-bundler v1 is in "maintenance" and most (all?) future development efforts are being directed to parcel v2. This deprecation warning is also present on the NPM package page here: https://www.npmjs.com/package/parcel-bundler. I'd suggest that you also add a deprecation notice (re: v1) to the top of the main parcel repo (since both v1 and v2 seem to share a repo). It's also somewhat unfortunate/confusing that v2 is tagged as a "beta" version even though that is now the only actively developed "production" version. I'd also suggest dropping the beta tag for v2 now that it is stable (for most users?). Thanks for tackling the npm audit fixes in v2! |
Thanks for opening this issue and for fixing it! And I agree that v2 has been in beta/nightly for way too long. I mean it's soon at version 800. At one daily release that's like more than 2 years???? We've been using it in prod since the beginning of this year and it's been doing an awesome job. Parcel 1 is buggier than v2 at this point so I really don't see why it shouldn't be declared dead. |
@danieltroger how do you keep up with the constant security vulnerabilities? |
There are three sources at the moment:
And in all of these cases, a denial of service isn't really a security vulnerability in the Parcel usecase. The worst case here is that your build never finishes, you're not running PostCSS in a SaaS webapp like codesandbox. |
npm audit doesn't report any errors at the moment with |
🐛 bug report
NPM audit moderate severity findings in parcel-bundler 1.12.5 (postcss dependency related)
🎛 Configuration (.babelrc, package.json, cli command)
from .babelrc:
from package.json:
🤔 Expected Behavior
npm audit will succeed
😯 Current Behavior
npm audit returns 66 moderate severity vulnerabilities
These all seem related to the same postcss npm advisory (https://npmjs.com/advisories/1693) via cssnano and htmlnano:
💁 Possible Solution
Update internal dependencies on htmlnano and cssnano to versions that use postcss version greater than or equal to 8.2.10.
I'm not at all sure how difficult or easy that would be...
🔦 Context
Some organizations (including ours) have security policies which prevent production deployments if npm audit vulnerabilities are found (even in dev dependencies).
I know this particular npm audit finding may not be truly as severe as npm audit describes, but dealing with security audits is a fact of life.
The root of the issue appears to be in postcss v7 as mentioned here:
postcss/postcss#1574
but that version will not be fixed as the developer has a newer version to maintain (postcss v8)
I realize that Parcel 1 is also in "maintenance mode" and there is a push to move to Parcel 2 (as mentioned here: #5250 (comment))
I've made a first stab (so far unsuccessful) attempt to migrate to Parcel 2, but these npm audit findings are also present after uninstalling Parcel 1 (parcel-bundler) and installing latest Parcel 2 using npm. So this issue likely impacts all Parcel users of both versions?
💻 Code Sample
for version 1:
or for version 2:
🌍 Your Environment
The text was updated successfully, but these errors were encountered: