Skip to content

fix(deps): update dependency mongoose to v8.9.5 [security]#59

Open
renovate[bot] wants to merge 1 commit intomainfrom
renovate/npm-mongoose-vulnerability
Open

fix(deps): update dependency mongoose to v8.9.5 [security]#59
renovate[bot] wants to merge 1 commit intomainfrom
renovate/npm-mongoose-vulnerability

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented Sep 12, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
mongoose (source) 8.9.18.9.5 age adoption passing confidence

Mongoose search injection vulnerability

CVE-2025-23061 / GHSA-vg7j-7cwx-8wgw

More information

Details

Mongoose versions prior to 8.9.5, 7.8.4, and 6.13.6 are vulnerable to improper use of the $where operator. This vulnerability arises from the ability of the $where clause to execute arbitrary JavaScript code in MongoDB queries, potentially leading to code injection attacks and unauthorized access or manipulation of database data.

NOTE: this issue exists because of an incomplete fix for CVE-2024-53900.

Severity

  • CVSS Score: 9.1 / 10 (Critical)
  • Vector String: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


Release Notes

Automattic/mongoose (mongoose)

v8.9.5

Compare Source

==================

v8.9.4

Compare Source

==================

  • fix(document): fix document not applying manual populate when using a function in schema.options.ref #​15138 IchirokuXVI
  • fix(model): make Model.validate() static correctly cast document arrays #​15169 #​15164
  • fix(model): allow passing validateBeforeSave option to bulkSave() to skip validation #​15161 #​15156
  • fix(schema): allow multiple self-referencing discriminator schemas using Schema.prototype.discriminator #​15142 #​15120
  • types: avoid BufferToBinary<> wiping lean types when passed to generic functions #​15160 #​15158
  • docs: fix <code> in header ids #​15159
  • docs: fix header in field-level-encryption.md #​15137 damieng

v8.9.3

Compare Source

==================

  • fix(schema): make duplicate index error a warning for now to prevent blocking upgrading #​15135 #​15112 #​15109
  • fix(model): handle document array paths set to non-array values in Model.castObject() #​15124 #​15075
  • fix(document): avoid using childSchemas.path for compatibility with pre-Mongoose-8.8 schemas #​15131 #​15071
  • fix(model): avoid throwing unnecessary error if updateOne() returns null in save() #​15126
  • perf(cursor): clear the stack every time if using populate with batchSize to avoid stack overflows with large docs #​15136 #​10449
  • types: make BufferToBinary avoid Document instances #​15123 #​15122
  • types(model+query): avoid stripping out virtuals when calling populate with paths generic #​15132 #​15111
  • types(schema): add missing removeIndex #​15134
  • types: add cleanIndexes() to IndexManager interface #​15127
  • docs: move search endpoint to netlify #​15119

v8.9.2

Compare Source

==================

  • fix(schema): avoid throwing duplicate index error if index spec keys have different order or index has a custom name #​15112 #​15109
  • fix(map): clean modified subpaths when overwriting values in map of subdocs #​15114 #​15108
  • fix(aggregate): pull session from transaction local storage for aggregation cursors #​15094 IchirokuXVI
  • types: correctly handle union types in BufferToBinary and related helpers #​15103 #​15102 #​15057
  • types: add UUID to RefType #​15115 #​15101
  • docs: remove link to Mongoose 5.x docs from dropdown #​15116
  • docs(connection+document+model): remove remaining references to remove(), clarify that deleteOne() does not execute until then() or exec() #​15113 #​15107

Configuration

📅 Schedule: (in timezone Asia/Tokyo)

  • Branch creation
    • ""
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added the renovate label Sep 12, 2025
@renovate renovate Bot force-pushed the renovate/npm-mongoose-vulnerability branch from 1bf6da3 to 003c3cc Compare September 26, 2025 15:59
@renovate renovate Bot force-pushed the renovate/npm-mongoose-vulnerability branch from 003c3cc to 22ba477 Compare October 25, 2025 15:43
@renovate renovate Bot force-pushed the renovate/npm-mongoose-vulnerability branch from 22ba477 to 4279d82 Compare January 1, 2026 15:39
@renovate renovate Bot force-pushed the renovate/npm-mongoose-vulnerability branch from 4279d82 to 6615419 Compare January 20, 2026 07:23
@renovate renovate Bot force-pushed the renovate/npm-mongoose-vulnerability branch 2 times, most recently from 26aea20 to 830ac03 Compare February 7, 2026 04:13
@renovate renovate Bot force-pushed the renovate/npm-mongoose-vulnerability branch from 830ac03 to 8a41b3f Compare February 12, 2026 12:04
@renovate renovate Bot changed the title fix(deps): update dependency mongoose to v8.9.5 [security] fix(deps): update dependency mongoose to v8.9.5 [security] - autoclosed Mar 27, 2026
@renovate renovate Bot closed this Mar 27, 2026
@renovate renovate Bot deleted the renovate/npm-mongoose-vulnerability branch March 27, 2026 01:04
@renovate renovate Bot changed the title fix(deps): update dependency mongoose to v8.9.5 [security] - autoclosed fix(deps): update dependency mongoose to v8.9.5 [security] Mar 30, 2026
@renovate renovate Bot reopened this Mar 30, 2026
@renovate renovate Bot force-pushed the renovate/npm-mongoose-vulnerability branch 2 times, most recently from 8a41b3f to fc43609 Compare March 30, 2026 17:49
@renovate renovate Bot force-pushed the renovate/npm-mongoose-vulnerability branch from fc43609 to f92618b Compare April 8, 2026 19:30
@renovate renovate Bot force-pushed the renovate/npm-mongoose-vulnerability branch from f92618b to 692b4a5 Compare April 13, 2026 05:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants