This issue has been created
There is 1 update.
 
 
LLM AI Integration / cid:jira-generated-image-avatar-3d493b0a-abee-47dc-a21f-d96490cdb833 LLMAI-211 Open

MCP warning lines echo the agent-supplied reference unfiltered into the log

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-79168e9e-0f98-4ca0-a726-1329842d1f7e Paul Pantiru created this issue on 15/Oct/26 11:40
 
Summary: MCP warning lines echo the agent-supplied reference unfiltered into the log
Issue Type: cid:jira-generated-image-avatar-3d493b0a-abee-47dc-a21f-d96490cdb833 Bug
Affects Versions: 0.10
Assignee: Unassigned
Created: 15/Oct/26 11:40
Priority: cid:jira-generated-image-static-minor-473de42b-d62a-4d31-9d16-956d2e093a5d Minor
Reporter: Paul Pantiru
Description:

Thirteen WARN sites log the reference string the agent passed when a load, existence check or render fails: MCPGetDocumentTool (about lines 649, 713, 834), MCPGetHistoryTool (824, 846), MCPGetAttachmentTool (671, 694), MCPGetSchemaTool (464), MCPQueryObjectsTool (746), MCPLinksSupport (185, 467), MCPTranslationSupport (244, 266). A reference containing a line break forges a log line, which a log reader or a log-processing tool then takes for a real entry. The same class of issue was closed in the index module by LLMAI-206 (CR/LF stripped from request-controlled names) and the MCP module already owns the helper for it: MCPTextGuards.fragment.

Expected / proposal: Route every logged agent-supplied string through MCPTextGuards.fragment (or a dedicated log-safe variant that strips CR/LF and caps the length), and add a test that a reference with a line break produces one log line. Sweep the remaining WARN sites of the module for other agent-controlled values (attachment names, class names, query strings).

 
 

1 update

 
cid:jira-generated-image-avatar-79168e9e-0f98-4ca0-a726-1329842d1f7e Changes by Paul Pantiru on 15/Oct/26 11:40
 
Assignee: Paul Pantiru