{"id":"CVE-2026-87803","aliases":["CVE-2026-87803"],"related":[],"kind":"vulnerability","state":"published","title":"An authorization bypass vulnerability exists in the Countly Server DBViewer due to flawed sub-pipeline detection in the aggregation stage s…","summary":"An authorization bypass vulnerability exists in the Countly Server DBViewer due to flawed sub-pipeline detection in the aggregation stage sanitizer. The /o/db aggregation endpoint parses user-controlled aggregation JSON and passes it through a stage sanitizer that determines whether a nested array is a sub-pipeline by checking if every element contains a key present in a hardcoded KNOWN_STAGE_OPERATORS set. If any element contains an unrecognized stage key, such as the undocumented MongoDB-internal $_internalInhibitOptimization, the sanitizer misclassifies the entire branch as a generic array and skips stage-level stripping for all sibling stages. This allows a non-admin user with DBViewer read permission to inject forbidden operators like $lookup inside $facet sub-pipelines, performing cross-collection joins into restricted collections. This leads to unauthorized read access to sensitive data including password-reset tokens (prid), enabling account takeover.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"An authorization bypass vulnerability exists in the Countly Server DBViewer due to flawed sub-pipeline detection in the aggregation stage sanitizer. The /o/db aggregation endpoint parses user-controlled aggregation JSON and passes it through a stage sanitizer that determines whether a nested array is a sub-pipeline by checking if every element contains a key present in a hardcoded KNOWN_STAGE_OPERATORS set. If any element contains an unrecognized stage key, such as the undocumented MongoDB-internal $_internalInhibitOptimization, the sanitizer misclassifies the entire branch as a generic array and skips stage-level stripping for all sibling stages. This allows a non-admin user with DBViewer read permission to inject forbidden operators like $lookup inside $facet sub-pipelines, performing cross-collection joins into restricted collections. This leads to unauthorized read access to sensitive data including password-reset tokens (prid), enabling account takeover.","source":"cvelist"}],"published":"2026-09-10T09:54:01.912Z","modified":"2026-09-10T15:53:23.707Z","severity":{"scorer":"snyk","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"snyk","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N","score":7.1,"rating":"HIGH"},{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N","score":7.1,"rating":"HIGH"}],"cwes":["CWE-863"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"25.03.53-LTS","status":"affected"}],"vendor":"Countly","product":"countly-server","source":"cvelist"}],"references":[{"url":"https://github.com/Countly/countly-server/pull/7868","tags":[],"sources":["cvelist","nvd"]}],"credits":["Catalin Iovita (Snyk Security Research)"],"assigner":"snyk","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-09-10T13:16:57.956Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-87803","url":"https://www.cve.org/CVERecord?id=CVE-2026-87803","licence":"CVE Terms of Use","modified":"2026-09-10T13:17:16.963Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-87803","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-87803","licence":"Public domain","modified":"2026-09-10T15:53:23.707Z"}],"updatedAt":"2026-11-25T22:59:37.828Z","epss":{"score":0.00181,"percentile":0.08061,"date":"2026-12-01T12:00:22.000Z"}}