Advisory

GHSA-8687-vv9j-hgph

Also known as: CVE-2019-17426

Summary

Improper Input Validation in Automattic Mongoose

Details

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).

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2019-10-22 20:19 UTC
Modified
2023-11-29 22:07 UTC

Affected packages and fixes

mongoose

npm · All systems

Affected

  • introduced 5.0.0, fixed 5.7.5 (semver)

Fixed versions

5.7.5

Fix

mongoose

npm · All systems

Affected

  • introduced 0, fixed 4.13.21 (semver)

Fixed versions

4.13.21

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