-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
fix(cve): bump busboy to fix CVE-2022-24434 #1097
base: master
Are you sure you want to change the base?
Conversation
As far as I'm aware, this would be a breaking change, right? I think we need to do this in 2.x instead? |
If the aim is to keep supporting Node v0 which is end-of-life since 2016, then yes it is a breaking change. However, such an aim is, in my opinion, counter-productive. Unless you're considering something else a breaking change? Also, I've tried and run
I'm not a Node expert but it seems "Object Destructuring" is a v6+ feature. |
Hi, why not update to busboy atleast version ^1.6. 0? |
c019e99
to
e081d48
Compare
The aim of this PR is to remove |
I have now enforced the node engine to be |
Hi, Thanks for all the updates, can you please bump the busboy version to the latest 1.6.0 otherwise we may need to upgrade it again sooner for other vulnerabilities in the near future? |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
lgtm. i approve this mr. do let any of us know if we can help you with any blockers. |
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
My NestJs app didn't compile, so i found this temporary fix: As of npm cli v8.3.0 (2021-12-09) this can be solved using the overrides field of package.json For NestJs : For Express : |
override is a temporary solution to use until the package owner does not upgrade the package, also override is okay only if you are sure that the required version will not break the package @Dany-C |
used by pcap upload because of CVE-2022-24434 more info: expressjs/multer#1097
@EstartuPrime how was your dependency on Multer specified? As far as I understand it shouldn't automatically upgrade to |
@LinusU You're right, we updated to 1.4.5-lts.1 manually as we noticed the deprecation information and read in youre deprication wraning, that this 1.4.5-lts.1 still supports Node 6. But during startup of the application it crashes when busboy is loaded by the reason i linked to busboy. We switched back to 1.4.4 and the application is back to normal. All this took me some time to find out where exactly the problem is and if we can solve it anyway and can keep the security fix. |
Hi, |
Temp fix until expressjs/multer#1097 is merged.
Another package that is affected by this is |
The latter should work, too. |
Updates multer and nodemon to resolve security vulnerabilities. multer is updated to a semver convention breaking version due to no fix for the dependancy of multer causing the vulnerability. More details for this: expressjs/multer#1097
Updates multer and nodemon to resolve security vulnerabilities. multer is updated to a semver convention breaking version due to no fix for the dependancy of multer causing the vulnerability. CVE for the issue: CVE-2022-24434 More details for this: expressjs/multer#1097
From what i can see, busboy 1.0.0+ has documented a requirement of node >=10.16.0. Is this an oversight or is there a reason this is being ignored and the engines in multer being set to a lower version (6)? |
Removes Keyman Developer Server's transitive dependency on dicer by updating multer to `1.4.5-lts.1`, which updates its dependency on busboy. See expressjs/multer#1097 (comment) for reasoning behind use of `-lts.1` rather than a full release version. At some point in the future, multer will publish a full release with this fix, at which point we can move back to a full release version.
|
This PR bumps
busboy
to at least1.0.0
to removedicer
from the transitive dependencies as it contains a denial of service vulnerability: https://security.snyk.io/vuln/SNYK-JS-DICER-2311764.The remaining of the PR is about adapting the code to the breaking changes introduced in
busboy
with the bump tov1
and fixing the tests:should report errors from busboy parsing
test as the error was no longer forwarded. I have not really looked into the details but reverting this workaround for an issue related to Node v0 seems like a win anyway,should handle unicode filenames
test to have a more pertinent example of a unicode filename using bothfilename
andfilename*
Content-Disposition
directives.This PR supersedes: #1096, #1092 and #1056.