fix(deps): update dependency mongoose to v6.13.6 [security]#1460
fix(deps): update dependency mongoose to v6.13.6 [security]#1460renovate-bot wants to merge 1 commit intoGoogleCloudPlatform:v1from
Conversation
|
/gcbrun |
There was a problem hiding this comment.
Code Review
This pull request updates the mongoose dependency to version 6.13.6 in the backend service. Feedback highlights that Mongoose 6.x is end-of-life and recommends migrating to version 8.x, which would involve refactoring database logic to remove callback support. Furthermore, the update creates a version mismatch between the root mongodb dependency and the transitive version used by mongoose, suggesting an alignment of these versions to reduce package bloat.
| "mongodb": "4.17.1", | ||
| "express": "4.18.2", | ||
| "mongoose": "6.11.3" | ||
| "mongoose": "6.13.6" |
There was a problem hiding this comment.
Mongoose 6.x is End-of-Life (EOL) and no longer receives general updates. While this version addresses a specific security vulnerability (CVE-2025-23061), it is recommended to plan a migration to a supported version like Mongoose 8.x. Note that Mongoose 7+ introduced breaking changes, including the removal of callback support, which would require refactoring the database logic in files like routes/messages.js to use Promises or async/await.
| "mongodb": "4.17.1", | ||
| "express": "4.18.2", | ||
| "mongoose": "6.11.3" | ||
| "mongoose": "6.13.6" |
There was a problem hiding this comment.
Updating mongoose to 6.13.6 brings in mongodb@4.17.2 as a transitive dependency. Since the root package.json explicitly pins mongodb to 4.17.1 (line 13), this results in duplicate versions of the MongoDB driver being installed. Consider updating the root mongodb dependency to 4.17.2 or removing it if it is not used directly in the codebase to maintain consistency and reduce package bloat.
This PR contains the following updates:
6.11.3→6.13.6GitHub 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
$whereoperator. This vulnerability arises from the ability of the$whereclause 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.
Release Notes
Automattic/mongoose (mongoose)
v6.13.6Compare Source
===================
v6.13.5Compare Source
===================
v6.13.4Compare Source
===================
v6.13.3Compare Source
===================
v6.13.2Compare Source
===================
v6.13.1Compare Source
===================
v6.13.0Compare Source
===================
v6.12.9Compare Source
===================
v6.12.8Compare Source
===================
valueproperty rather than boolean #14418v6.12.7Compare Source
===================
openUri()#14370 #13376 #13335v6.12.6Compare Source
===================
v6.12.5Compare Source
===================
v6.12.4Compare Source
===================
v6.12.3Compare Source
===================
removeVirtual()#14019 #13085v6.12.2Compare Source
===================
v6.12.1Compare Source
===================
v6.12.0Compare Source
===================
v6.11.6Compare Source
===================
v6.11.5Compare Source
===================
v6.11.4Compare Source
===================
Configuration
📅 Schedule: Branch creation - "" (UTC), 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.
This PR was generated by Mend Renovate. View the repository job log.