Advisory

GHSA-f825-f98c-gj3g

Also known as: BIT-mongoose-2022-2564, CVE-2022-2564

Summary

automattic/mongoose vulnerable to Prototype pollution via Schema.path

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

High Basis: The source's own band: HIGH

Dates

Published
2022-07-29 00:00 UTC
Modified
2023-12-06 01:02 UTC

Affected packages and fixes

mongoose

npm · All systems

Affected

  • introduced 6.0.0, fixed 6.4.6 (semver)

Fixed versions

6.4.6

Fix

mongoose

npm · All systems

Affected

  • introduced 0, fixed 5.13.15 (semver)

Fixed versions

5.13.15

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences