Skip to content

fix(deps): update dependency mongoose to v5.13.23 [security]#491

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

fix(deps): update dependency mongoose to v5.13.23 [security]#491
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/npm-mongoose-vulnerability

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Mar 18, 2023

This PR contains the following updates:

Package Change Age Confidence
mongoose (source) 5.13.135.13.23 age confidence

GitHub Vulnerability Alerts

CVE-2022-2564

Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment. Affected versions of this package are vulnerable to Prototype Pollution. The Schema.path() function is vulnerable to prototype pollution when setting the schema object. This vulnerability allows modification of the Object prototype and could be manipulated into a Denial of Service (DoS) attack.

CVE-2023-3696

Prototype Pollution in GitHub repository automattic/mongoose prior to 7.3.3, 6.11.3, and 5.13.20.

CVE-2022-24304

Description

Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment.

Affected versions of this package are vulnerable to Prototype Pollution. The Schema.path() function is vulnerable to prototype pollution when setting the schema object. This vulnerability allows modification of the Object prototype and could be manipulated into a Denial of Service (DoS) attack.

Proof of Concept

// poc.js
const mongoose = require('mongoose');
const schema = new mongoose.Schema();

malicious_payload = '__proto__.toString'

schema.path(malicious_payload, [String])

x = {}
console.log(x.toString()) // crashed (Denial of service (DoS) attack)

Impact

This vulnerability can be manipulated to exploit other types of attacks, such as Denial of service (DoS), Remote Code Execution, or Property Injection.

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.

CVE-2024-53900

Mongoose versions prior to 8.8.3, 7.8.3, 6.13.5, and 5.13.23 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.


Release Notes

Automattic/mongoose (mongoose)

v5.13.23

Compare Source

v5.13.22

Compare Source

v5.13.21

Compare Source

v5.13.20

Compare Source

v5.13.19

Compare Source

v5.13.18

Compare Source

v5.13.17

Compare Source

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

v5.13.16

Compare Source

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

v5.13.15

Compare Source

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

v5.13.14

Compare Source

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

  • fix(timestamps): avoid setting createdAt on documents that already exist but dont have createdAt #​11024
  • docs(models): fix up nModified example for 5.x #​11055

Configuration

📅 Schedule: Branch creation - "" (UTC), 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 changed the title chore(deps): update dependency mongoose to 5.13.15 [security] fix(deps): update dependency mongoose to v5.13.15 [security] Mar 23, 2023
@renovate renovate bot changed the title fix(deps): update dependency mongoose to v5.13.15 [security] fix(deps): update dependency mongoose to v5.13.20 [security] Jul 18, 2023
@renovate renovate bot force-pushed the renovate/npm-mongoose-vulnerability branch from c764df9 to 5f2b4d7 Compare July 18, 2023 22:26
@renovate renovate bot changed the title fix(deps): update dependency mongoose to v5.13.20 [security] fix(deps): update dependency mongoose to v5.13.20 [security] - autoclosed Apr 3, 2024
@renovate renovate bot closed this Apr 3, 2024
@renovate renovate bot deleted the renovate/npm-mongoose-vulnerability branch April 3, 2024 13:20
@renovate renovate bot changed the title fix(deps): update dependency mongoose to v5.13.20 [security] - autoclosed fix(deps): update dependency mongoose to v5.13.20 [security] Apr 3, 2024
@renovate renovate bot restored the renovate/npm-mongoose-vulnerability branch April 3, 2024 17:19
@renovate renovate bot reopened this Apr 3, 2024
@renovate renovate bot force-pushed the renovate/npm-mongoose-vulnerability branch from 5f2b4d7 to 0454745 Compare April 3, 2024 17:20
@renovate renovate bot changed the title fix(deps): update dependency mongoose to v5.13.20 [security] fix(deps): update dependency mongoose to v5.13.20 [security] - autoclosed Apr 13, 2024
@renovate renovate bot closed this Apr 13, 2024
@renovate renovate bot deleted the renovate/npm-mongoose-vulnerability branch April 13, 2024 19:01
@renovate renovate bot changed the title fix(deps): update dependency mongoose to v5.13.20 [security] - autoclosed fix(deps): update dependency mongoose to v5.13.20 [security] Apr 13, 2024
@renovate renovate bot reopened this Apr 13, 2024
@renovate renovate bot restored the renovate/npm-mongoose-vulnerability branch April 13, 2024 22:44
@renovate renovate bot force-pushed the renovate/npm-mongoose-vulnerability branch from 0454745 to 227677e Compare April 13, 2024 22:45
@renovate renovate bot force-pushed the renovate/npm-mongoose-vulnerability branch from 227677e to 4bb1129 Compare December 3, 2024 05:11
@renovate renovate bot changed the title fix(deps): update dependency mongoose to v5.13.20 [security] fix(deps): update dependency mongoose to v8 [security] Dec 3, 2024
@renovate renovate bot force-pushed the renovate/npm-mongoose-vulnerability branch from 4bb1129 to a81cfc3 Compare December 6, 2024 05:30
@renovate renovate bot changed the title fix(deps): update dependency mongoose to v8 [security] fix(deps): update dependency mongoose to v6 [security] Dec 6, 2024
@renovate renovate bot force-pushed the renovate/npm-mongoose-vulnerability branch from a81cfc3 to 92ea094 Compare January 16, 2025 18:33
@renovate renovate bot changed the title fix(deps): update dependency mongoose to v6 [security] fix(deps): update dependency mongoose to v8 [security] Jan 16, 2025
@renovate renovate bot force-pushed the renovate/npm-mongoose-vulnerability branch from 92ea094 to f57c840 Compare January 20, 2025 23:26
@renovate renovate bot changed the title fix(deps): update dependency mongoose to v8 [security] fix(deps): update dependency mongoose to v6 [security] Jan 20, 2025
@renovate renovate bot force-pushed the renovate/npm-mongoose-vulnerability branch from f57c840 to e767d46 Compare February 5, 2026 03:08
@renovate renovate bot changed the title fix(deps): update dependency mongoose to v6 [security] fix(deps): update dependency mongoose to v5.13.23 [security] Feb 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants