fix(deps): update dependency mongoose to v5.13.23 [security]#287
Open
renovate[bot] wants to merge 1 commit intomasterfrom
Open
fix(deps): update dependency mongoose to v5.13.23 [security]#287renovate[bot] wants to merge 1 commit intomasterfrom
renovate[bot] wants to merge 1 commit intomasterfrom
Conversation
b37593b to
f28500e
Compare
f28500e to
53b9495
Compare
53b9495 to
5c84a2d
Compare
5c84a2d to
cdb5382
Compare
37d6703 to
cdb5382
Compare
cdb5382 to
b056eea
Compare
a1528df to
b714e15
Compare
b714e15 to
d251994
Compare
d251994 to
d58f7d7
Compare
d58f7d7 to
d96a670
Compare
d96a670 to
e65b045
Compare
e65b045 to
0273166
Compare
0273166 to
ed3b73f
Compare
ed3b73f to
7962135
Compare
7962135 to
52d83be
Compare
52d83be to
431e184
Compare
431e184 to
a97567b
Compare
a97567b to
2b29d38
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.9.15→5.13.23GitHub 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 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.
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.
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.23Compare Source
v5.13.22Compare Source
v5.13.21Compare Source
v5.13.20Compare Source
v5.13.19Compare Source
v5.13.18Compare Source
v5.13.17Compare Source
====================
v5.13.16Compare Source
====================
bulkSave()#12019v5.13.15Compare Source
====================
v5.13.14Compare Source
====================
v5.13.13Compare Source
====================
v5.13.12Compare Source
====================
v5.13.11Compare Source
====================
useDb()#10732v5.13.10Compare Source
====================
v5.13.9Compare Source
===================
extends Documentandany#10647v5.13.8Compare Source
===================
v5.13.7Compare Source
===================
Schema#index()types #10562 JaredReisingerpush()#10546v5.13.6Compare Source
===================
next()to avoid stack overflow with large batch size #10449v5.13.5Compare Source
===================
depopulate()with no args depopulates all #10501 gfranczv5.13.4Compare Source
===================
$setOnInsert#10460docan object with correct keys #10475v5.13.3Compare Source
===================
$addToSetand with positional operator #10447discriminator()with non-document #10452 #10421 DouglasGabrv5.13.2Compare Source
===================
v5.13.1Compare Source
====================
v5.13.0Compare Source
===================
bulkSave()function that saves multiple docs in 1bulkWrite()#9727 #9673 AbdelrahmanHafezpathsToSkipto apply intoObject()andtoJSON()#10120diffIndexes()function that calculates what indexessyncIndexes()will create/drop without actually executing any changes #10362 IslandRhythmsendSession()#10306v5.12.15Compare Source
====================
Schemafor cases when we can't infer from Model #10358Query#cast()#10388 lkhodiscriminatorKeyschema option #10386 #10376 IslandRhythmsv5.12.14Compare Source
====================
Model.populate()#10335ValidationErroras a possible type forValidationError#errors#10320 IslandRhythmsModel.exists()#10336 Aminoizv5.12.13Compare Source
====================
$getAllSubdocs()#10275findOneAndUpdate()#10232 #10231 cnwangjiev5.12.12Compare Source
====================
returnOriginalwithfindOneAndUpdate()#10298 #10297 #10292 #10285 IslandRhythmsmap()result an array if used over an array #10288 quantumsheepv5.12.11Compare Source
====================
v5.12.10Compare Source
====================
defaultsoption on result documents from query options #7287 IslandRhythmspathsToValidatetovalidate()andvalidateSync()#10258loadClass()on classes that havecollectionas a static property #10257 #10254 IslandRhythmsvirtualsOnlyparameter toloadClass()function signature IslandRhythmsv5.12.9Compare Source
===================
optionsas first parameter #10216v5.12.8Compare Source
===================
toJSON()function to ensurenameproperty always ends up inJSON.stringify()output #10166 IslandRhythmsallowDiskUseoption #10177insertMany()#10144extends Document#10144UpdateWithAggregationPipelinefor cases whenUpdateQueryis used as a function param #10186useFindAndModifyanduseCreateIndexdeprecation warnings #10155v5.12.7Compare Source
===================
process.nextTick()to avoid clean stack traces causing memory leak when using synchronous recursion likeasync.whilst()#9864v5.12.6Compare Source
===================
writeConcernschema option to work around MongoDB driver'swriteConcerndeprecation warning #10083 #10009 IslandRhythmslocalFieldfilter to$elemMatchon virtual populate when custommatchhas a$elemMatchandforeignFieldis an array #10117save()when usingoptimisticConcurrencyif no changes in document #10128 IslandRhythmsobjascontextinModel.validate()ifobjis a document #10132useDb()withuseUnifiedTopology#8267create()andinsertMany()#10144eachAsync()callback receives a single doc rather than array of docs unlessbatchSizeis set #10135validateSync()is a ValidationError #10147 michaln-qv5.12.5Compare Source
===================
autoCreatevalue from Mongoose global when creating new model before callingconnect()#10091type: Booleanin Schema definitions #10085updateOne()andupdateMany()#10095deleteOne(),deleteMany()#10122useCreateIndexalwaysfalsein docs #10033v5.12.4Compare Source
===================
_idproperty #10069.$*#10123transform()function for single conventional populate #10064Tto useT & Documentinternally #10046$pullwith$paths #10075Datetype for$currentDate#10058$unsetproperties to be any value #10066indexproperty to a string #10077v5.12.3Compare Source
===================
writeConcern()method to avoid writeConcern deprecation warning #10009createCollection()and other helpers to avoid event emitter warning #9778Connection#idto Mongoose instance so id always lines up withmongoose.connectionsindex #10025 IslandRhythmspromiseOrCallback()if 3rd param isn't an EventEmitter #10055 emrebassModel.discriminator()#10054 coro101next()callback forpre('insertMany')hooks #10078 #10072 pezzutransformto PopulateOptions interface #10061v5.12.2Compare Source
===================
post('find')hooks with an array of docs #10015 #9982 IslandRhythmsrefas an option on an array SchemaType #10029selectoption from array schematypes #10029Schema()constructor #10035 zpbrentQueryWithHelpersso query helpers pass through chaining #10040upsertedarray toupdateOne(),updateMany(),update()result #10042Aggregate#project()types that were mistakenly removed in 5.12.0 #10043typein Schema to a SchemaType class or a Schema instance #10030session.withTransaction()beforesession.startTransaction()becausewithTransaction()is the recommended approach #10008mongoose.Types#10016v5.12.1Compare Source
====================
Schemafor cases when we can't infer from Model #10358Query#cast()#10388 lkhodiscriminatorKeyschema option #10386 #10376 IslandRhythmsv5.12.0Compare Source
===================
transformoption that Mongoose will call on every populated doc #3775Query#pre()andQuery#post()public #9784Document#getPopulatedDocs()to return an array of all populated documents in a document #9702 IslandRhythmsDocument#getAllSubdocs()to return an array of all single nested and array subdocuments #9764 IslandRhythmsschemaas a schema path name #8798 IslandRhythmsnoListeneroption to help with use cases where you're usinguseDb()on every request #9961mongoose.createConnection()#9985explainoption toModel.exists()#8098 IslandRhythmsv5.11.20Compare Source
====================
dbevents deprecation warning with 'close' events #10004 #9930$pullmore permissive toConfiguration
📅 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.
This PR was generated by Mend Renovate. View the repository job log.