Skip to content
EventPast event

LangGraph JS storage query injection, fixed in 1.5.1

1 reports1 reporting sourcesLatest report

Start here

AI overview

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

Nov 16
  1. langchain-ai/langgraphjs
    LangGraph 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

No discussion links have been collected for this event yet.

Attention trend

New sources per day

1 in 13 days·most 1 (Nov 17)·today 0

  • 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)

Hourly attention

Current attention 38·Peak in the comparable period 38 (Nov 22 21:00)·Change over the comparable past 24 hours –

010203040Nov 2221:00Nov 2300:00Nov 2304:00Nov 2307:00