Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
9.8
LibreChat Docker image countDocuments may miscount data
published 10 days ago
Summary
The LibreChat Docker image uses the Mongoose library, and older versions of that library can count records incorrectly when special filter data is provided. This could let a malicious user manipulate counts and bypass checks that rely on those numbers. Update the image to a version that includes Mongoose 6.13.11 or later, or apply the same patch to the Mongoose library you are using.
What to do
The CVE record does not list a fixed version. Check the vendor's site or the advisory links below - a fix may already be released.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| Docker Hardened Images:Alpine:3.24 | docker hardened images | librechat-0 | All versions |
| Docker Hardened Images:Debian:13 | docker hardened images | librechat-0 | All versions |
Original advisory text
Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment. Prior to 6.13.11, 7.8.12…
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.
References
- https://scout.docker.com/v/DHI-74qn-hqgh-ixs3-nhqj Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-125120 Vendor Advisory
- https://github.com/advisories/GHSA-pcrw-h46h-c93h Vendor Advisory
- https://github.com/Automattic/mongoose/security/advisories/GHSA-pcrw-h46h-c93h Vendor Advisory
- https://github.com/Automattic/mongoose/commit/b5003d3915db1cf9209c38a4b93cf3a92c... Patch
- https://github.com/Automattic/mongoose/commit/b1df045aab076b740fdaec14a15a44c694... Patch
- https://github.com/Automattic/mongoose/commit/8b10d5760bb181f5bf5d01495cde161c8a... Patch
- https://github.com/Automattic/mongoose/commit/7e912af3fac52cb0eea4cd71e24d653189... Patch
- https://github.com/Automattic/mongoose/releases/tag/9.9.2 URL
- https://github.com/Automattic/mongoose/releases/tag/8.24.3 URL
- https://github.com/Automattic/mongoose/releases/tag/7.8.12 URL
- https://github.com/Automattic/mongoose/releases/tag/6.13.11 URL
Internet-facing
3 days
Internal
60 days
- Not known to be exploited
- Can be exploited automatically (estimated)
- Gives an attacker full control (estimated)
Timeline
Published12 Nov 2026
Updated16 Nov 2026
First seen16 Nov 2026
Sources
DHI-74qn-hqgh-ixs3-nhqj · OSV
Track software like this
Free during beta