LangGraph JS storage query injection, fixed in 1.5.1
Start here
LangChain's @langchain/langgraph-checkpoint-mongodb has a query expression injection vulnerability in versions 1.3.0 and later but before 1.5.1: MongoDBStore does not validate values passed by the caller before splicing them into MongoDB queries and aggregations, so crafted values are executed by the database as query expressions rather than literals, allowing attackers to read data outside the intended namespace boundary; when server-side JavaScript is enabled, JavaScript can also be executed on the database server. The advisory says applications that pass user-controllable input into shared or multi-tenant storage are affected, the issue is fixed in 1.5.1, and upgrading to 1.5.1 or higher is recommended; if immediate upgrade is not possible, reject user values that are not plain strings or numbers before passing them to storage operations.
Generated by AI from reports · Updated 13 days ago
Progress timeline
- langchain-ai/langgraphjsLangGraph advisory: MongoDBStore query expression injection, possible out-of-bounds data reads in shared multi-tenant scenarios
LangChain's @langchain/langgraph-checkpoint-mongodb has a query expression injection vulnerability in versions 1.3.0 and later but before 1.5.1: MongoDBStore does not validate values passed by the caller before splicing them into MongoDB queries and aggregations, so crafted values are executed by the database as query expressions rather than literals, allowing attackers to read data outside the intended namespace boundary; when server-side JavaScript is enabled, JavaScript can also be executed on the database server. The advisory says applications that pass user-controllable input into shared or multi-tenant storage are affected, the issue is fixed in 1.5.1, and upgrading to 1.5.1 or higher is recommended; if immediate upgrade is not possible, reject user values that are not plain strings or numbers before passing them to storage operations.
Related discussion
Attention trend
New sources per day
- Nov 17: 1 new sources (1 outlets, 0 accounts)
- Nov 18: 0 new sources (0 outlets, 0 accounts)
- Nov 19: 0 new sources (0 outlets, 0 accounts)
- Nov 20: 0 new sources (0 outlets, 0 accounts)
- Nov 21: 0 new sources (0 outlets, 0 accounts)
- Nov 22: 0 new sources (0 outlets, 0 accounts)
- Nov 23: 0 new sources (0 outlets, 0 accounts)
- Nov 24: 0 new sources (0 outlets, 0 accounts)
- Nov 25: 0 new sources (0 outlets, 0 accounts)
- Nov 26: 0 new sources (0 outlets, 0 accounts)
- Nov 27: 0 new sources (0 outlets, 0 accounts)
- Nov 28: 0 new sources (0 outlets, 0 accounts)
- Nov 29: 0 new sources (0 outlets, 0 accounts)