# mongoose/release
Mongoose 8.24.7
importance: highsecurity
This release hardens Mongoose against prototype pollution and unsafe handling of special or inherited properties. It also fixes query sanitization behavior and updates mquery to address a prototype-pollution vulnerability in query helpers.
affected
Mongoose users handling documents, schemas, or queries involving inherited or special properties are affected by these safety fixes.
action
Upgrade to Mongoose 8.24.7 to receive the prototype-pollution protections and query sanitization fix.
release_signals
!Avoids walking into inherited properties such as `toString` when hydrating documents, setting dotted paths, and merging updates.
!Uses only own properties when looking up discriminators by key.
!Disallows setting special properties via `virtual()`, and rejects special properties such as `__proto__` as paths in `where()` and `mod()`.
!Updates mquery to 5.0.1 to avoid prototype pollution through query helpers such as `gt()` and `in()`.
# community_signal
How useful is this release to your stack?
—
net score
Sign in with GitHub to cast your vote.
Sign in with GitHub to vote
You’ll return to this release, then choose your vote.