mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-12-02 18:22:09 +03:00
chore: bump up multer version to v2.5.0 [SECURITY] (#15737)
This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [multer](https://redirect.github.com/expressjs/multer) | [`2.4.0` → `2.5.0`](https://renovatebot.com/diffs/npm/multer/2.4.0/2.5.0) |  |  | --- ### multer vulnerable to Denial of Service via a pending asynchronous fileFilter after request teardown [CVE-2026-113872](https://nvd.nist.gov/vuln/detail/CVE-2026-113872) / [GHSA-q7qp-rjg7-q26m](https://redirect.github.com/advisories/GHSA-q7qp-rjg7-q26m) <details> <summary>More information</summary> #### Details ##### Impact When `multer` is configured with an asynchronous `fileFilter`, a single request can crash the Node.js process. If a request is aborted (for example when one file is rejected) while another file's async `fileFilter` is still pending, the pending callback later resumes a parsing stream that multer has already torn down. busboy then emits an error on a stream that no longer has an error listener, which Node raises as an unhandled `'error'` event, and the process exits. A single unauthenticated request is enough, so any application using `multer` with an asynchronous `fileFilter` is affected, regardless of storage engine. Uploads using a synchronous `fileFilter` are not affected. ##### Patches Users should upgrade to `multer` `2.5.0` or later. ##### Workarounds Use a synchronous `fileFilter`. #### Severity - CVSS Score: 7.5 / 10 (High) - Vector String: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H` #### References - [https://github.com/expressjs/multer/security/advisories/GHSA-q7qp-rjg7-q26m](https://redirect.github.com/expressjs/multer/security/advisories/GHSA-q7qp-rjg7-q26m) - [https://nvd.nist.gov/vuln/detail/CVE-2026-113872](https://nvd.nist.gov/vuln/detail/CVE-2026-113872) - [https://github.com/expressjs/multer/commit/80a2d9df1dfd63b5fab631b8b9966164ed647adf](https://redirect.github.com/expressjs/multer/commit/80a2d9df1dfd63b5fab631b8b9966164ed647adf) - [https://cna.openjsf.org/security-advisories.html](https://cna.openjsf.org/security-advisories.html) - [https://github.com/expressjs/multer/releases/tag/v2.5.0](https://redirect.github.com/expressjs/multer/releases/tag/v2.5.0) - [https://github.com/advisories/GHSA-q7qp-rjg7-q26m](https://redirect.github.com/advisories/GHSA-q7qp-rjg7-q26m) This data is provided by the [GitHub Advisory Database](https://redirect.github.com/advisories/GHSA-q7qp-rjg7-q26m) ([CC-BY 4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)). </details> --- ### Release Notes <details> <summary>expressjs/multer (multer)</summary> ### [`v2.5.0`](https://redirect.github.com/expressjs/multer/blob/HEAD/CHANGELOG.md#250) [Compare Source](https://redirect.github.com/expressjs/multer/compare/v2.4.0...v2.5.0) - Fix [CVE-2026-113872](https://www.cve.org/CVERecord?id=CVE-2026-113872) ([GHSA-q7qp-rjg7-q26m](https://redirect.github.com/expressjs/multer/security/advisories/GHSA-q7qp-rjg7-q26m)) - Accept a field value of exactly `limits.fieldSize` bytes, so `LIMIT_FIELD_VALUE` fires only when the limit is exceeded. This also covers the default `fieldSize` of 1MB, so a [`1048576`](https://redirect.github.com/expressjs/multer/commit/1048576) byte value is no longer rejected when you set no limits. If you set `fieldSize` one higher to work around this, you can drop the extra one ([#​1481](https://redirect.github.com/expressjs/multer/pull/1481)) - Do not add a file to the abort cleanup list when its storage engine reports an error after a `LIMIT_FILE_SIZE` abort; `DiskStorage` no longer tries to unlink an undefined path ([#​1489](https://redirect.github.com/expressjs/multer/pull/1489)) </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/toeverything/AFFiNE). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xODAuMCIsInVwZGF0ZWRJblZlciI6IjQ0LjE4MC4wIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5IiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyJdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
733d839bcf
commit
e8aae4e443
1 file changed
+3
-3
@@ -26210,13 +26210,13 @@ __metadata:
|
||||
linkType: hard
|
||||
|
||||
"multer@npm:^2.4.0":
|
||||
version: 2.4.0
|
||||
resolution: "multer@npm:2.4.0"
|
||||
version: 2.5.0
|
||||
resolution: "multer@npm:2.5.0"
|
||||
dependencies:
|
||||
append-field: "npm:^1.0.0"
|
||||
busboy: "npm:^1.6.0"
|
||||
type-is: "npm:^1.6.18"
|
||||
checksum: 10/644efb2eefa60079866c3ed9eb549e76c93bd642af2790c2579b224de9a4a4e0545d8e36aeafca21207445b6d2505e85779dca365351eb6f45fca8ce44a8e605
|
||||
checksum: 10/c5b968f51f69df631059bb01088c15d0e670853fcfed029af3cf8167ef50f798bb6344143eb1884708bd0de34317d1b4696d74aa93c482390e7d291172958ae9
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
|
||||
Reference in new issue
Block a user