# CVE-2026-55253: LangChain MongoDB: NoSQL Operator Injection in MongoDBSaver.list() leading to cross-tenant data exposure

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.7
- **CVSS:** 7.7 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: High; Integrity impact: None; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.53% (percentile 38, 2026-11-26)
- **CWE:** CWE-943
- **Aliases:** GHSA-533j-2v4q-mw5h, PYSEC-2026-3859, PYSEC-2026-3860
- **Published:** 2026-08-20T17:29:14.000Z
- **Modified:** 2026-09-30T17:43:24.057Z

## Who should check

- Projects that depend on PyPI package langgraph-checkpoint-mongodb (\< 0.3.0)
- Projects that depend on PyPI package langgraph-store-mongodb (\< 0.4.0)
- Anyone running langchain-ai langchain-mongodb \< 0.4.0
- Anyone running langchain-ai langgraph-checkpoint-mongodb \< 0.3.0
- Anyone running langchain-ai langgraph-store-mongodb \< 0.4.0

## Description

LangChain MongoDB provides integrations between MongoDB, Atlas, LangChain, and LangGraph. Prior to langgraph-checkpoint-mongodb 0.3.0 and langgraph-store-mongodb 0.4.0, MongoDBSaver.list(), MongoDBSaver.alist(), and MongoDBStore.search() incorporate filter dictionaries into MongoDB queries without recursively rejecting keys prefixed with $. An authenticated caller who controls a filter argument through HTTP query parameters, request body fields, or agent tool arguments can inject MongoDB Query Language operators such as $regex or $where. In a multi-tenant deployment that uses the filter to enforce per-user or per-tenant isolation, injected operators can bypass intended equality filtering and expose other tenants' checkpoint or store data. Filters constructed entirely from trusted server-side values have lower practical risk. This issue is fixed in langgraph-checkpoint-mongodb 0.3.0 and langgraph-store-mongodb 0.4.0.

## Affected and fixed versions

- PyPI `langgraph-checkpoint-mongodb`: affected \< 0.3.0; fixed 0.3.0 (osv)
- PyPI `langgraph-store-mongodb`: affected \< 0.4.0; fixed 0.4.0 (osv)
- langchain-ai langchain-mongodb: \< 0.4.0 (cvelist)
- langchain-ai langgraph-checkpoint-mongodb: \< 0.3.0 (cvelist)
- langchain-ai langgraph-store-mongodb: \< 0.4.0 (cvelist)

## Mitigation

- Upgrade langgraph-checkpoint-mongodb to 0.3.0 or later.
- Upgrade langgraph-store-mongodb to 0.4.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-55253. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-55253.md
Affected: langgraph-checkpoint-mongodb < 0.3.0; langgraph-store-mongodb < 0.4.0
Fixed in: 0.3.0, 0.4.0

Steps:
1. Search this machine and project for langgraph-checkpoint-mongodb (PyPI), langgraph-store-mongodb (PyPI), langchain-ai langchain-mongodb, langchain-ai langgraph-checkpoint-mongodb, langchain-ai langgraph-store-mongodb: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-55253 being exploited?

There is no confirmed exploitation: CVE-2026-55253 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.53% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-55253?

High: CVSS 7.7 (v3.1, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2026-55253?

langgraph-checkpoint-mongodb \< 0.3.0; langgraph-store-mongodb \< 0.4.0.

### Is there a fix for CVE-2026-55253?

Yes. Fixed in 0.3.0, 0.4.0. Upgrade langgraph-checkpoint-mongodb to 0.3.0 or later. Upgrade langgraph-store-mongodb to 0.4.0 or later.

### How do I check if I'm affected by CVE-2026-55253?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/langchain-ai/langchain-mongodb/security/advisories/GHSA-533j-2v4q-mw5h>
- vendor: <https://github.com/advisories/GHSA-533j-2v4q-mw5h>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-55253>
- patch: <https://github.com/langchain-ai/langchain-mongodb/pull/384>
- patch: <https://github.com/langchain-ai/langchain-mongodb/commit/14a6cc39e67d23fd409cd13a9caae2c329df0a09>
- patch: <https://github.com/langchain-ai/langchain-mongodb/commit/240e7ecee432ea006d9fef6ea506bfd2e009a3f4>
- patch: <https://github.com/langchain-ai/langchain-mongodb/commit/5465e4d3ea0ef5c88a666a6442bd853ff4bd70e5>
- other: <https://github.com/langchain-ai/langchain-mongodb/releases/tag/libs/langgraph-checkpoint-mongodb/v0.4.0>
- other: <https://github.com/langchain-ai/langchain-mongodb/releases/tag/libs/langgraph-store-mongodb/v0.3.0>
- other: <https://github.com/langchain-ai/langchain-mongodb>
- other: <https://github.com/langchain-ai/langchain-mongodb/releases/tag/libs%2Flanggraph-checkpoint-mongodb%2Fv0.4.0>
- other: <https://github.com/langchain-ai/langchain-mongodb/releases/tag/libs%2Flanggraph-store-mongodb%2Fv0.3.0>
- other: <https://pypi.org/project/langgraph-checkpoint-mongodb>
- other: <https://pypi.org/project/langgraph-store-mongodb>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-55253>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-533j-2v4q-mw5h> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2026-3859> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2026-3860> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-55253> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-55253>
