{"id":"CVE-2024-53900","aliases":["BIT-mongoose-2024-53900","CLSA-2026-1774916718","CLSA-2026-1786374654","EUVD-2024-3487","GHSA-m7xq-9374-9rvx","ROOT-APP-NPM-CVE-2024-53900"],"status":"published","title":"Mongoose search injection vulnerability","description":"Mongoose before 8.8.3 can improperly use $where in match, leading to search injection.","severity":{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","level":"critical","assessor":"adp","from":"cve"},"epss":{"day":"2026-11-12","score":0.03981,"percentile":0.90638,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":true},"cwes":["CWE-89"],"published":"2024-12-02T00:00:00Z","modified":"2026-10-28T02:30:45Z","exploits":[{"source":"nuclei","id":"CVE-2024-53900","title":"Mongoose \u003c 8.8.3 - Remote Code Execution","type":"detection template","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-53900.yaml"},{"source":"pocgithub","id":"Gokul-Krishnan-V-R/CVE-2024-53900","title":"Gokul-Krishnan-V-R/CVE-2024-53900","date":"2025-04-03","url":"https://github.com/Gokul-Krishnan-V-R/CVE-2024-53900"},{"source":"pocgithub","id":"www-spam/CVE-2024-53900","title":"www-spam/CVE-2024-53900","date":"2025-08-19","url":"https://github.com/www-spam/CVE-2024-53900"}],"fixes":[{"ecosystem":"npm","package":"mongoose","fixed_in":["8.8.3","7.8.3","6.13.5","5.13.23"],"sources":["ghsa","osv"]},{"ecosystem":"Bitnami","package":"mongoose","fixed_in":["6.13.5","8.8.3"],"sources":["osv"]},{"ecosystem":"TuxCare:npm","package":"mongoose","fixed_in":["6.12.2-tuxcare.1","7.8.8-tuxcare.3"],"sources":["osv"]},{"ecosystem":"Root:npm","package":"mongoose","fixed_in":["6.9.1-aikido.4","5.13.23-aikido.1"],"sources":["osv"]},{"ecosystem":"Root:npm","package":"@rootio/mongoose","fixed_in":["6.9.1-root.io.4","5.13.23-root.io.1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"mongoose","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"8.0.0-rc0"},{"fixed":"8.8.3"}]}]},{"source":"ghsa","ecosystem":"npm","package":"mongoose","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"7.0.0-rc0"},{"fixed":"7.8.3"}]}]},{"source":"ghsa","ecosystem":"npm","package":"mongoose","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.0.0-rc0"},{"fixed":"6.13.5"}]}]},{"source":"ghsa","ecosystem":"npm","package":"mongoose","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.6.0-rc0"},{"fixed":"5.13.23"}]}]},{"source":"osv","ecosystem":"Bitnami","package":"mongoose","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"6.13.5"},{"introduced":"7.0.0"},{"fixed":"8.8.3"}]}]},{"source":"osv","ecosystem":"TuxCare:npm","package":"mongoose","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.12.2-tuxcare.0"},{"fixed":"6.12.2-tuxcare.1"}]}],"versions":["6.12.2"]},{"source":"osv","ecosystem":"TuxCare:npm","package":"mongoose","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"7.8.8-tuxcare.0"},{"fixed":"7.8.8-tuxcare.3"}]}],"versions":["7.8.8","7.8.8-tuxcare.1","7.8.8-tuxcare.2"]},{"source":"osv","ecosystem":"npm","package":"mongoose","ranges":[{"type":"SEMVER","events":[{"introduced":"8.0.0-rc0"},{"fixed":"8.8.3"}]}]},{"source":"osv","ecosystem":"npm","package":"mongoose","ranges":[{"type":"SEMVER","events":[{"introduced":"7.0.0-rc0"},{"fixed":"7.8.3"}]}]},{"source":"osv","ecosystem":"npm","package":"mongoose","ranges":[{"type":"SEMVER","events":[{"introduced":"6.0.0-rc0"},{"fixed":"6.13.5"}]}]},{"source":"osv","ecosystem":"npm","package":"mongoose","ranges":[{"type":"SEMVER","events":[{"introduced":"3.6.0-rc0"},{"fixed":"5.13.23"}]}]},{"source":"osv","ecosystem":"Root:npm","package":"mongoose","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.9.1-aikido.4"},{"fixed":"5.13.23-aikido.1"}]}]},{"source":"osv","ecosystem":"Root:npm","package":"@rootio/mongoose","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.9.1-root.io.4"},{"fixed":"5.13.23-root.io.1"}]}]}],"products":[{"vendor":"automattic","product":"mongoose"},{"vendor":"mongoosejs","product":"mongoose"}],"references":[{"url":"https://www.npmjs.com/package/mongoose?activeTab=versions","tags":["Product","web"]},{"url":"https://github.com/Automattic/mongoose/releases","tags":["Release Notes","article","package","web"]},{"url":"https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md","tags":["Release Notes","article","web"]},{"url":"https://github.com/Automattic/mongoose/commit/c9e86bff7eef477da75a29af62a06d41a835a156","tags":["Patch","fix","web"]},{"url":"https://github.com/advisories/GHSA-m7xq-9374-9rvx","tags":["Vendor Advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-53900","tags":["web","advisory"]},{"url":"https://github.com/Automattic/mongoose/commit/33679bcf8ca43d74e3e8ecd4cc224826772d805b","tags":["web"]},{"url":"https://github.com/Automattic/mongoose/compare/6.13.4...6.13.5","tags":["web"]},{"url":"https://github.com/Automattic/mongoose/compare/7.8.2...7.8.3","tags":["web"]},{"url":"https://github.com/Automattic/mongoose/compare/8.8.2...8.8.3","tags":["web"]},{"url":"https://github.com/github/advisory-database/pull/6769","tags":["web"]},{"url":"https://github.com/github/advisory-database/pull/6776","tags":["web"]},{"url":"https://github.com/Automattic/mongoose/commit/bbb6fa7ecb44bbaf5bea955d886378a1247bce0b","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/53xxx/CVE-2024-53900.json","tags":["advisory"]},{"url":"https://github.com/Automattic/mongoose","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2024-53900","description":"Mongoose before 8.8.3 can improperly use $where in match, leading to search injection.","status":"published","published":"2024-12-02T00:00:00Z","modified":"2025-01-06T17:43:08.256Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","level":"critical","assessor":"adp"}],"cwes":["CWE-89"],"updated_at":"2026-11-02T14:34:17.523201Z"}],"euvd":[{"id":"EUVD-2024-3487","description":"Mongoose before 8.8.3 can improperly use $where in match, leading to search injection.","status":"published","published":"2024-12-02T00:00:00Z","modified":"2025-01-06T17:43:08Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","level":"critical"}],"updated_at":"2026-11-03T00:04:25.578405Z"}],"ghsa":[{"id":"GHSA-m7xq-9374-9rvx","title":"Mongoose search injection vulnerability","description":"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.","status":"published","published":"2024-12-02T21:31:20Z","modified":"2026-02-04T22:47:46Z","cvss":[{"version":"4.0","score":8.7,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","level":"high"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-89"],"updated_at":"2026-11-02T14:39:22.637668Z"}],"nvd":[{"id":"CVE-2024-53900","description":"Mongoose before 8.8.3 can improperly use $where in match, leading to search injection.","status":"published","published":"2024-12-02T20:15:08.347Z","modified":"2026-06-17T08:09:28.387Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","level":"critical","assessor":"secondary"}],"cwes":["CWE-89"],"updated_at":"2026-11-02T14:10:38.973941Z"}],"osv":[{"id":"CVE-2024-53900","description":"Mongoose before 8.8.3 can improperly use $where in match, leading to search injection.","status":"published","published":"2024-12-02T00:00:00Z","modified":"2026-10-28T02:30:45.932296997Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","level":"critical"}],"updated_at":"2026-11-02T15:44:44.451316Z"},{"id":"GHSA-m7xq-9374-9rvx","title":"Mongoose search injection vulnerability","description":"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.","status":"published","published":"2024-12-02T21:31:20Z","modified":"2026-02-05T00:01:59.584013Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"},{"version":"4.0","score":8.7,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","level":"high"}],"cwes":["CWE-89"],"updated_at":"2026-11-02T15:46:51.463834Z"},{"id":"BIT-mongoose-2024-53900","description":"Mongoose before 8.8.3 can improperly use $where in match, leading to search injection.","status":"published","published":"2025-10-02T14:44:18.222Z","modified":"2026-09-08T08:45:15.016343912Z","updated_at":"2026-11-02T15:28:33.469426Z"},{"id":"CLSA-2026-1774916718","title":"TuxCare security update for mongoose (1 CVE)","description":"TuxCare rebuilt mongoose to address 1 CVE. Fixed in 6.12.2-tuxcare.1.","status":"published","published":"2026-08-04T14:52:17Z","modified":"2026-10-15T09:47:49.160979948Z","updated_at":"2026-11-02T15:43:43.621843Z"},{"id":"CLSA-2026-1786374654","title":"TuxCare security update for mongoose (2 CVEs)","description":"TuxCare rebuilt mongoose to address 2 CVEs. Fixed in 7.8.8-tuxcare.3.","status":"published","published":"2026-08-10T15:10:54Z","modified":"2026-10-15T09:45:59.890294549Z","updated_at":"2026-11-02T15:43:46.850893Z"},{"id":"ROOT-APP-NPM-CVE-2024-53900","title":"CVE-2024-53900 in mongoose - Patched by Root","description":"Root has patched CVE-2024-53900 in the mongoose package for Root:npm. Multiple fixed versions available.","status":"published","published":"2026-09-01T06:57:58Z","modified":"2026-09-01T09:15:06.713418532Z","updated_at":"2026-11-02T15:53:27.362922Z"}]}}
