{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-125120",
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "state": "PUBLISHED",
        "assignerShortName": "GitHub_M",
        "dateReserved": "2026-11-09T17:45:35.936Z",
        "datePublished": "2026-11-09T22:36:16.207Z",
        "dateUpdated": "2026-11-13T13:40:53.316Z"
    },
    "containers": {
        "cna": {
            "title": "Mongoose: sanitizeFilter not applied on countDocuments",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-943",
                            "lang": "en",
                            "description": "CWE-943: Improper Neutralization of Special Elements in Data Query Logic",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "attackComplexity": "LOW",
                        "attackVector": "NETWORK",
                        "availabilityImpact": "HIGH",
                        "baseScore": 9.8,
                        "baseSeverity": "CRITICAL",
                        "confidentialityImpact": "HIGH",
                        "integrityImpact": "HIGH",
                        "privilegesRequired": "NONE",
                        "scope": "UNCHANGED",
                        "userInteraction": "NONE",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
                        "version": "3.1"
                    }
                }
            ],
            "references": [
                {
                    "name": "https://github.com/Automattic/mongoose/security/advisories/GHSA-pcrw-h46h-c93h",
                    "tags": [
                        "x_refsource_CONFIRM"
                    ],
                    "url": "https://github.com/Automattic/mongoose/security/advisories/GHSA-pcrw-h46h-c93h"
                },
                {
                    "name": "https://github.com/Automattic/mongoose/commit/7e912af3fac52cb0eea4cd71e24d65318916831a",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/Automattic/mongoose/commit/7e912af3fac52cb0eea4cd71e24d65318916831a"
                },
                {
                    "name": "https://github.com/Automattic/mongoose/commit/8b10d5760bb181f5bf5d01495cde161c8aed0557",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/Automattic/mongoose/commit/8b10d5760bb181f5bf5d01495cde161c8aed0557"
                },
                {
                    "name": "https://github.com/Automattic/mongoose/commit/b1df045aab076b740fdaec14a15a44c694b85b7d",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/Automattic/mongoose/commit/b1df045aab076b740fdaec14a15a44c694b85b7d"
                },
                {
                    "name": "https://github.com/Automattic/mongoose/commit/b5003d3915db1cf9209c38a4b93cf3a92cddd710",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/Automattic/mongoose/commit/b5003d3915db1cf9209c38a4b93cf3a92cddd710"
                },
                {
                    "name": "https://github.com/Automattic/mongoose/releases/tag/6.13.11",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/Automattic/mongoose/releases/tag/6.13.11"
                },
                {
                    "name": "https://github.com/Automattic/mongoose/releases/tag/7.8.12",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/Automattic/mongoose/releases/tag/7.8.12"
                },
                {
                    "name": "https://github.com/Automattic/mongoose/releases/tag/8.24.3",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/Automattic/mongoose/releases/tag/8.24.3"
                },
                {
                    "name": "https://github.com/Automattic/mongoose/releases/tag/9.9.2",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/Automattic/mongoose/releases/tag/9.9.2"
                }
            ],
            "affected": [
                {
                    "vendor": "Automattic",
                    "product": "mongoose",
                    "versions": [
                        {
                            "version": "< 6.13.11",
                            "status": "affected"
                        },
                        {
                            "version": ">= 7.0.0, < 7.8.12",
                            "status": "affected"
                        },
                        {
                            "version": ">= 8.0.0, < 8.24.3",
                            "status": "affected"
                        },
                        {
                            "version": ">= 9.0.0, < 9.9.2",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
                "shortName": "GitHub_M",
                "dateUpdated": "2026-11-09T22:36:16.207Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment. Prior to 6.13.11, 7.8.12, 8.24.3, and 9.9.2, Mongoose countDocuments() does not apply the configured sanitizeFilter query selector injection defense. An application that enables sanitizeFilter and passes attacker-controlled filter values to countDocuments() can therefore process query operator objects as operators rather than literal values, causing the count to include documents that should not match and potentially undermining authorization or application logic based on that count. This issue is fixed in versions 6.13.11, 7.8.12, 8.24.3, and 9.9.2."
                }
            ],
            "source": {
                "advisory": "GHSA-pcrw-h46h-c93h",
                "discovery": "UNKNOWN"
            }
        },
        "adp": [
            {
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2026-11-13T13:38:54.842323Z",
                                "id": "CVE-2026-125120",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "total"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2026-11-13T13:40:53.316Z"
                }
            }
        ]
    }
}