Update dependency mongoose to v8 [SECURITY] #302
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:
3.8.17
->8.9.5
Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
GitHub Vulnerability Alerts
CVE-2019-17426
Automattic Mongoose through 5.7.4 allows attackers to bypass access control (in some applications) because any query object with a
_bsontype
attribute is ignored. For example, adding"_bsontype":"a"
can sometimes interfere with a query filter. NOTE: this CVE is about Mongoose's failure to work around this _bsontype special case that exists in older versions of the bson parser (aka the mongodb/js-bson project).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.GHSA-r5xw-q988-826m
Versions of
mongoose
before 4.3.6, 3.8.39 are vulnerable to remote memory exposure.Trying to save a number to a field of type Buffer on the affected mongoose versions allocates a chunk of uninitialized memory and stores it in the database.
Recommendation
Update to version 4.3.6, 3.8.39 or later.
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 theschema
object. 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.
CVE-2024-53900
Mongoose versions prior to 8.8.3, 7.8.3, and 6.13.5 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.
CVE-2025-23061
Mongoose before 8.9.5 can improperly use a nested $where filter with a populate() match, leading to search injection. NOTE: this issue exists because of an incomplete fix for CVE-2024-53900.
Release Notes
Automattic/mongoose (mongoose)
v8.9.5
Compare Source
==================
v8.9.4
Compare Source
==================
<code>
in header ids #15159v8.9.3
Compare Source
==================
v8.9.2
Compare Source
==================
v8.9.1
Compare Source
==================
v8.9.0
Compare Source
==================
v8.8.4
Compare Source
==================
v8.8.3
Compare Source
==================
v8.8.2
Compare Source
==================
v8.8.1
Compare Source
==================
v8.8.0
Compare Source
==================
__v
to lean() result type and ModifyResult #14990 #12959v8.7.3
Compare Source
==================
v8.7.2
Compare Source
==================
v8.7.1
Compare Source
==================
v8.7.0
Compare Source
==================
v8.6.4
Compare Source
==================
v8.6.3
Compare Source
==================
v8.6.2
Compare Source
==================
v8.6.1
Compare Source
==================
v8.6.0
Compare Source
==================
MongooseError
instead ofMongoCursorExhaustedError
#14813v8.5.5
Compare Source
==================
v8.5.4
Compare Source
==================
v8.5.3
Compare Source
==================
lean()
set #14799 #14794 #14759 MohOrabyv8.5.2
Compare Source
==================
v8.5.1
Compare Source
==================
v8.5.0
Compare Source
==================
v8.4.5
Compare Source
==================
v8.4.4
Compare Source
==================
v8.4.3
Compare Source
==================
v8.4.2
Compare Source
==================
v8.4.1
Compare Source
==================
v8.4.0
Compare Source
==================
v8.3.5
Compare Source
==================
v8.3.4
Compare Source
==================
#14546 #14536
v8.3.3
Compare Source
==================
v8.3.2
Compare Source
==================
v8.3.1
Compare Source
==================
v8.3.0
Compare 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 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.