CVE-2019-17426:
Improper Input Validation in Automattic Mongoose
9.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.46791%
CWE
Published
10/22/2019
Updated
11/29/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
mongoose | npm | >= 5.0.0, < 5.7.5 | 5.7.5 |
mongoose | npm | < 4.13.21 | 4.13.21 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability was explicitly patched by modifying the cast function in lib/cast.js to delete _bsontype properties. This function is responsible for processing query objects, and the absence of _bsontype sanitization in vulnerable versions directly enabled the filter bypass. The commit diff and CVE description both specifically reference this file and the _bsontype handling as the root cause.