Skip to content

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

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

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

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate bot commented Jan 17, 2025

This PR contains the following updates:

Package Change Age Confidence
mongoose (source) 8.8.48.9.5 age confidence

GitHub Vulnerability Alerts

CVE-2025-23061

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

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

v8.9.1

Compare Source

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

  • fix(connection): remove heartbeat check in load balanced mode #​15089 #​15042 #​14812
  • fix(discriminator): gather childSchemas when creating discriminator to ensure $getAllSubdocs() can properly get all subdocs #​15099 #​15088 #​15092
  • fix(model): handle discriminators in castObject() #​15096 #​15075
  • fix(schema): throw error if duplicate index definition using unique in schema path and subsequent .index() call #​15093 #​15056
  • fix: mark documents that are populated using hydratedPopulatedDocs option as populated in top-level doc #​15080 #​15048
  • fix(document+schema): improve error message for get() on invalid path #​15098 #​15071
  • docs: remove more callback doc references & some small other changes #​15095

v8.9.0

Compare Source

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


Configuration

📅 Schedule: (UTC)

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

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

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 changed the title fix(deps): update dependency mongoose to v8.9.5 [security] fix(deps): update dependency mongoose to v8.9.5 [security] - autoclosed Jan 17, 2025
@renovate renovate bot closed this Jan 17, 2025
@renovate renovate bot deleted the renovate/npm-mongoose-vulnerability branch January 17, 2025 20:59
@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] Jan 18, 2025
@renovate renovate bot reopened this Jan 18, 2025
@renovate renovate bot force-pushed the renovate/npm-mongoose-vulnerability branch from 88f49f2 to 733d3ea Compare January 18, 2025 00:11
@renovate renovate bot force-pushed the renovate/npm-mongoose-vulnerability branch from 733d3ea to 94c40c3 Compare August 10, 2025 14:40
@renovate renovate bot force-pushed the renovate/npm-mongoose-vulnerability branch from 94c40c3 to c3a1a6d Compare August 19, 2025 13:33
@renovate renovate bot force-pushed the renovate/npm-mongoose-vulnerability branch from c3a1a6d to 1866f7c Compare September 25, 2025 16:15
@renovate renovate bot force-pushed the renovate/npm-mongoose-vulnerability branch from 1866f7c to 2166bb3 Compare January 19, 2026 14:36
@renovate renovate bot force-pushed the renovate/npm-mongoose-vulnerability branch from 2166bb3 to f5dfd68 Compare February 12, 2026 15:52
@renovate renovate bot force-pushed the renovate/npm-mongoose-vulnerability branch from f5dfd68 to 481725b Compare March 5, 2026 17:12
@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 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 481725b to ef9a0f9 Compare March 30, 2026 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants