Advisory

GHSA-m7xq-9374-9rvx

Also known as: BIT-mongoose-2024-53900, CVE-2024-53900

Summary

Mongoose search injection vulnerability

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2024-12-02 21:31 UTC
Modified
2026-02-05 00:01 UTC

Affected packages and fixes

mongoose

npm · All systems

Affected

  • introduced 8.0.0-rc0, fixed 8.8.3 (semver)

Fixed versions

8.8.3

Fix

mongoose

npm · All systems

Affected

  • introduced 7.0.0-rc0, fixed 7.8.3 (semver)

Fixed versions

7.8.3

Fix

mongoose

npm · All systems

Affected

  • introduced 6.0.0-rc0, fixed 6.13.5 (semver)

Fixed versions

6.13.5

Fix

mongoose

npm · All systems

Affected

  • introduced 3.6.0-rc0, fixed 5.13.23 (semver)

Fixed versions

5.13.23

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