fix(cve): bump busboy to fix CVE-2022-24434#1097
fix(cve): bump busboy to fix CVE-2022-24434#1097jlourenc wants to merge 1 commit intoexpressjs:masterfrom jlourenc:fix/CVE-2022-24434
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? |
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 |
|
Hey everyone! I understand that this is frustrating for everyone involved. Unfortunately, I also see it as a big problem to release this as 1.x since it would break compatibility with older Node.js versions. Older versions of Node.js is unfortunately still used in many production environment, and it's Express policy to not break Node.js compatibility in non-major changes. It also doesn't make sense to release this as Btw. I have released version I would love to get some input on how to proceed, some alternatives that I see:
@dougwilson do you have any input or guidance? |
|
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 patch was included in multer@1.4.4 and the engines discussion is continuing in #1306 |
This PR bumps
busboyto at least1.0.0to removedicerfrom 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
busboywith the bump tov1and fixing the tests:should report errors from busboy parsingtest 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 filenamestest to have a more pertinent example of a unicode filename using bothfilenameandfilename*Content-Dispositiondirectives.This PR supersedes: #1096, #1092 and #1056.