You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.jsconstmongoose=require('mongoose');constschema=newmongoose.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.
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.
feat(model): add throwOnValidationError option for opting into getting MongooseBulkWriteError if all valid operations succeed in bulkWrite() and insertMany() #14599#14587#14572#13410
fix(schema): make Schema.prototype.clone() avoid creating different copies of subdocuments and single nested paths underneath single nested paths #13671#13626
fix: custom debug function not processing all args #13418
fix(collection): handle creating model when connection disconnected with bufferCommands = false #12889
fix(populate): merge instead of overwrite when match is on _id #12891
fix: add guard to stop loadClass copying Document if Document is used as base of loaded class (same hack as implemented for Model already) #12820sgpinkus
renovateBot
changed the title
chore(deps): update dependency mongoose to v5.13.20 [security]
Update dependency mongoose to v5.13.20 [SECURITY]
Aug 22, 2024
renovateBot
changed the title
Update dependency mongoose to v5.13.20 [SECURITY]
chore(deps): update dependency mongoose to v5.13.20 [security]
Aug 29, 2024
renovateBot
changed the title
chore(deps): update dependency mongoose to v5.13.20 [security]
Update dependency mongoose to v5.13.20 [SECURITY]
Aug 31, 2024
renovateBot
changed the title
Update dependency mongoose to v5.13.20 [SECURITY]
chore(deps): update dependency mongoose to v5.13.20 [security]
Sep 11, 2024
renovateBot
changed the title
chore(deps): update dependency mongoose to v5.13.20 [security]
Update dependency mongoose to v5.13.20 [SECURITY]
Sep 13, 2024
renovateBot
changed the title
Update dependency mongoose to v5.13.20 [SECURITY]
chore(deps): update dependency mongoose to v5.13.20 [security]
Sep 17, 2024
renovateBot
changed the title
chore(deps): update dependency mongoose to v5.13.20 [security]
Update dependency mongoose to v5.13.20 [SECURITY]
Sep 20, 2024
renovateBot
changed the title
Update dependency mongoose to v5.13.20 [SECURITY]
chore(deps): update dependency mongoose to v5.13.20 [security]
Oct 10, 2024
renovateBot
changed the title
chore(deps): update dependency mongoose to v5.13.20 [security]
Update dependency mongoose to v5.13.20 [SECURITY]
Oct 12, 2024
renovateBot
changed the title
Update dependency mongoose to v5.13.20 [SECURITY]
chore(deps): update dependency mongoose to v5.13.20 [security]
Oct 29, 2024
renovateBot
changed the title
chore(deps): update dependency mongoose to v5.13.20 [security]
Update dependency mongoose to v5.13.20 [SECURITY]
Nov 23, 2024
Next steps: Take a moment to review the security alert above. Review
the linked package source code to understand the potential risk. Ensure the
package is not malicious before proceeding. If you're unsure how to proceed,
reach out to your security team or ask the Socket team for help at
support@socket.dev.
Suggestion: Packages should not obfuscate their code. Consider not using packages with obfuscated code.
Mark the package as acceptable risk. To ignore this alert only
in this pull request, reply with the comment
@SocketSecurity ignore npm/mongoose@6.13.6. You can
also ignore all packages with @SocketSecurity ignore-all.
To ignore an alert for all future pull requests, use Socket's Dashboard to
change the triage state of this alert.
renovateBot
changed the title
chore(deps): update dependency mongoose to v8 [security]
chore(deps): update dependency mongoose to v6 [security]
Dec 6, 2024
renovateBot
changed the title
chore(deps): update dependency mongoose to v6 [security]
Update dependency mongoose to v6 [SECURITY]
Dec 7, 2024
renovateBot
changed the title
Update dependency mongoose to v6 [SECURITY]
chore(deps): update dependency mongoose to v6 [security]
Dec 21, 2024
renovateBot
changed the title
chore(deps): update dependency mongoose to v6 [security]
Update dependency mongoose to v6 [SECURITY]
Jan 26, 2025
renovateBot
changed the title
Update dependency mongoose to v6 [SECURITY]
chore(deps): update dependency mongoose to v6 [security]
Jan 31, 2025
renovateBot
changed the title
chore(deps): update dependency mongoose to v6 [security]
Update dependency mongoose to v6 [SECURITY]
Feb 16, 2025
renovateBot
changed the title
Update dependency mongoose to v6 [SECURITY]
chore(deps): update dependency mongoose to v6 [security]
Mar 4, 2025
renovateBot
changed the title
chore(deps): update dependency mongoose to v6 [security]
Update dependency mongoose to v6 [SECURITY]
Mar 29, 2025
renovateBot
changed the title
Update dependency mongoose to v6 [SECURITY]
chore(deps): update dependency mongoose to v6 [security]
Apr 2, 2025
renovateBot
changed the title
chore(deps): update dependency mongoose to v6 [security]
Update dependency mongoose to v6 [SECURITY]
Apr 5, 2025
renovateBot
changed the title
Update dependency mongoose to v6 [SECURITY]
chore(deps): update dependency mongoose to v6 [security]
Apr 9, 2025
renovateBot
changed the title
chore(deps): update dependency mongoose to v6 [security]
chore(deps): update dependency mongoose to v6 [security] - abandoned
Mar 27, 2026
This PR has been flagged for autoclosing. However, it is being skipped due to the branch being already modified. Please close/delete it manually or report a bug if you think this is in error.
renovateBot
changed the title
chore(deps): update dependency mongoose to v6 [security] - abandoned
chore(deps): update dependency mongoose to v6 [security]
Mar 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
5.13.14→6.13.6automattic/mongoose vulnerable to Prototype pollution via Schema.path
CVE-2022-2564 / GHSA-f825-f98c-gj3g
More information
Details
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.Severity
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:HReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Mongoose Prototype Pollution vulnerability
CVE-2023-3696 / GHSA-9m93-w8w6-76hh
More information
Details
Prototype Pollution in GitHub repository automattic/mongoose prior to 7.3.3, 6.11.3, and 5.13.20.
Severity
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:HReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Mongoose Vulnerable to Prototype Pollution in Schema Object
CVE-2022-24304 / GHSA-h8hf-x3f4-xwgp
More information
Details
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 theschemaobject. This vulnerability allows modification of the Object prototype and could be manipulated into a Denial of Service (DoS) attack.Proof of Concept
Impact
This vulnerability can be manipulated to exploit other types of attacks, such as Denial of service (DoS), Remote Code Execution, or Property Injection.
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
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
$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.
Severity
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:HReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
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
===================
v6.11.3Compare Source
===================
v6.11.2Compare Source
===================
v6.11.1Compare Source
===================
v6.11.0Compare Source
===================
v6.10.5Compare Source
===================
v6.10.4Compare Source
===================
v6.10.3Compare Source
===================
v6.10.2Compare Source
===================
enginesinpackage.json#13124 lorand-horvathv6.10.1Compare Source
===================
$andand$or#13086 #12898Model.populate()#13070v6.10.0Compare Source
===================
v6.9.3Compare Source
==================
autoCreateandautoIndexuntil after initial connection established #13007 #12940 lpizzinidevv6.9.2Compare Source
==================
v6.9.1Compare Source
==================
v6.9.0Compare Source
==================
$orconditions after strict applied #12898 0x0a0dv6.8.4Compare Source
==================
v6.8.3Compare Source
==================
v6.8.2Compare Source
==================
v6.8.1Compare Source
==================
$localsparameters to getters/setters tutorial #12814 #12550 IslandRhythmsv6.8.0Compare Source
==================
localFieldandforeignFieldfor virtual populate #12657 #6963 IslandRhythmsv6.7.5Compare Source
==================
v6.7.4Compare Source
==================
v6.7.3Compare Source
==================
Configuration
📅 Schedule: (UTC)
🚦 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.
This PR was generated by Mend Renovate. View the repository job log.