| 标题 | ag-ui-protocol ag-ui v1.0 CWE-346 |
|---|
| 描述 | The client's event application layer trusts the server stream for information that originates from the user side:
TEXT_MESSAGE_START carries any role, including user; the message is stored as-is (apply/default.ts:168-186) and returned to the server in the next request's messages (agent/agent.ts:385-399, prepareRunAgentInput).
MESSAGES_SNAPSHOT replaces the entire history with entries in any role, including developer/system (apply/default.ts:626-679).
Any RUN_FINISHED clears pendingInterrupts (apply/default.ts:924-927): a stream emitting RUN_FINISHED(interrupt) → RUN_STARTED → RUN_FINISHED(success) leaves no pending interrupt, so the next runAgent() proceeds without any resume — bypassing the guard at agent.ts:402-417. |
|---|
| 来源 | ⚠️ https://github.com/ag-ui-protocol/ag-ui/issues/2437 |
|---|
| 用户 | meraklbz (UID 87053) |
|---|
| 提交 | 2026-08-18 04時29分 (30 日前) |
|---|
| 管理 | 2026-09-16 07時36分 (29 days later) |
|---|
| 状态 | 已接受 |
|---|
| VulDB条目 | 405446 [ag-ui-protocol ag-ui 1.0 Event Application Layer agent/agent.ts prepareRunAgentInput TEXT_MESSAGE_START 权限提升] |
|---|
| 积分 | 20 |
|---|