GHSA-r5xw-q988-826m
MEDIUM 5.1CVSS 3.1Remote Memory Exposure in mongoose
Versions of mongoose before 4.3.6, 3.8.39 are vulnerable to remote memory exposure.
Trying to save a number to a field of type Buffer on the affected mongoose versions allocates a chunk of uninitialized memory and stores it in the database.
Recommendation
Update to version 4.3.6, 3.8.39 or later.
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.1 | CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | mongoose | >= 3.5.5, < 3.8.39 | 3.8.39 |
| OSV | npm | mongoose | >= 4.0.0, < 4.3.6 | 4.3.6 |
References
- https://github.com/Automattic/mongoose/issues/3764 · WEB
- https://gist.github.com/ChALkeR/440bc3dfcbd9b6da75c3 · WEB
- https://gist.github.com/ChALkeR/d4a8055625221b6e65f0 · WEB
- https://www.npmjs.com/advisories/599 · WEB
History
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 1 Sep 2020)