Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GHSA-vg7j-7cwx-8wgw] Mongoose search injection vulnerability #5187

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"schema_version": "1.4.0",
"id": "GHSA-vg7j-7cwx-8wgw",
"modified": "2025-01-16T14:02:22Z",
"modified": "2025-01-16T14:02:23Z",
"published": "2025-01-15T06:30:49Z",
"aliases": [
"CVE-2025-23061"
],
"summary": "Mongoose search injection vulnerability",
"details": "Mongoose before 8.9.5 can improperly use a nested $where filter with a populate() match, leading to search injection. NOTE: this issue exists because of an incomplete fix for CVE-2024-53900.",
"details": "Mongoose versions prior to 8.8.3, 7.8.3, and 6.13.5 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.\n\nNOTE: this issue exists because of an incomplete fix for CVE-2024-53900.",
"severity": [
{
"type": "CVSS_V3",
Expand All @@ -25,14 +25,52 @@
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
"introduced": "8.0.0"
},
{
"fixed": "8.9.5"
}
]
}
]
},
{
"package": {
"ecosystem": "npm",
"name": "mongoose"
},
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "7.0.0"
},
{
"fixed": "7.8.4"
}
]
}
]
},
{
"package": {
"ecosystem": "npm",
"name": "mongoose"
},
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "6.13.6"
}
]
}
]
}
],
"references": [
Expand All @@ -52,6 +90,26 @@
"type": "WEB",
"url": "https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md"
},
{
"type": "WEB",
"url": "https://github.com/Automattic/mongoose/compare/6.13.5...6.13.6"
},
{
"type": "WEB",
"url": "https://github.com/Automattic/mongoose/compare/7.8.3...7.8.4"
},
{
"type": "WEB",
"url": "https://github.com/Automattic/mongoose/compare/8.9.4...8.9.5"
},
{
"type": "WEB",
"url": "https://github.com/Automattic/mongoose/releases/tag/6.13.6"
},
{
"type": "WEB",
"url": "https://github.com/Automattic/mongoose/releases/tag/7.8.4"
},
{
"type": "WEB",
"url": "https://github.com/Automattic/mongoose/releases/tag/8.9.5"
Expand Down
Loading