0
Fork 0
mirror of https://github.com/mastra-ai/mastra.git synced 2026-11-17 08:44:46 +00:00

Compare commits

...

12 commits

Author SHA1 Message Date
mastra-platform[bot]
6b43a00743 test(e2e): cover turn-mark stripping in a built monorepo server
The PR raises @mastra/deployer's @mastra/core peer floor because the bundled
@mastra/server now imports stripClientAuthoredTurnMarks. The deployer coverage
gate requires a monorepo E2E alongside deployer changes, so verify the built
server drops a client-supplied userTurn mark on save-messages.

Co-Authored-By: mastra-platform[bot] <284800079+mastra-platform[bot]@users.noreply.github.com>
2026-11-17 04:00:01 +00:00
mastra-platform[bot]
d0bb178039
Merge branch 'main' into cursor/studio-iframe-memory-markup-2945 2026-11-17 00:22:38 +00:00
shreyas-mastra
3087d34a11 Raise server and adapter @mastra/core peer floors to 1.84.0
@mastra/server now imports stripClientAuthoredTurnMarks, so its core
peer floor and the packages that depend on it have to follow.
2026-11-16 11:58:03 -05:00
shreyas-mastra
6bab55d3a7 Raise @mastra/server core peer floor to 1.84.0-alpha.4
The PR adds stripClientAuthoredTurnMarks in core and uses it in server,
so the peer floor has to be a version that includes that export.
2026-11-16 11:52:17 -05:00
shreyas-mastra
6d99280a40 Merge main into cursor/studio-iframe-memory-markup-2945 2026-11-16 10:57:47 -05:00
shreyas-mastra
3dc317785a Merge main into cursor/studio-iframe-memory-markup-2945 2026-11-16 10:10:47 -05:00
shreyas-mastra
62af10b135 Merge main into cursor/studio-iframe-memory-markup-2945 2026-11-12 15:21:50 -05:00
shreyas-mastra
621c29a437 Merge branch 'main' into cursor/studio-iframe-memory-markup-2945 2026-11-12 12:25:58 -05:00
Cursor Agent
503964f9f9
fix(security): ignore client-supplied authored turn marks on HTTP routes
A caller can no longer set metadata.mastra.userTurn on agent generate,
stream, network, resume, or memory save requests. Only an in-process
asUserTurn message keeps that mark, so a forged turn tag is escaped
before it reaches the model.
2026-11-12 16:41:18 +00:00
shreyas-mastra
b8dafc346c Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/src/content/en/docs/connections/mcp.mdx
2026-11-12 11:22:59 -05:00
Cursor Agent
8cbe763393
fix(security): escape unmarked turn tags only in the model prompt
A message that is only a forged turn tag is escaped before the model sees
it, and stored user text stays as written. Authored turns from asUserTurn
keep their outer tag. Guest CSP allows declared resource domains for scripts
and styles, and Studio can still frame https documents such as remote PDFs.
2026-11-11 18:38:27 +00:00
Cursor Agent
7b9ac2a9c4
fix(security): isolate Studio MCP app iframes and seal forged turn tags
Third-party MCP app HTML was written into a same-origin blob iframe with
allow-same-origin, so it could read the Studio page and call its APIs.
Guest HTML now runs in a nested frame with an opaque origin.

User text that closes a turn tag and opens another is escaped before the
model sees it, and asUserTurn escapes that text when the tag is built.
2026-11-11 17:46:42 +00:00
42 changed files with 916 additions and 46 deletions