mirror of
https://github.com/KeygraphHQ/shannon.git
synced 2026-04-25 01:25:52 +03:00
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shannon-KeygraphHQ#115
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/KeygraphHQ/shannon/pull/94
Author: @JosephDoUrden
Created: 2/8/2026
Status: 🔄 Open
Base:
main← Head:fix/security-audit-88-critical📝 Commits (1)
05ba8a5fix: address 5 critical findings from Argus security audit (#88)📊 Changes
18 files changed (+3623 additions, -268 deletions)
View changed files
📝
mcp-server/package-lock.json(+1588 -133)📝
mcp-server/package.json(+5 -2)📝
mcp-server/src/tools/generate-totp.ts(+3 -2)➕
mcp-server/src/utils/file-operations.test.ts(+59 -0)📝
mcp-server/src/utils/file-operations.ts(+16 -3)➕
mcp-server/src/validation/totp-validator.test.ts(+35 -0)📝
mcp-server/src/validation/totp-validator.ts(+18 -2)➕
mcp-server/vitest.config.ts(+7 -0)📝
package-lock.json(+1538 -119)📝
package.json(+4 -1)📝
src/ai/message-handlers.ts(+12 -2)➕
src/config-parser.test.ts(+86 -0)📝
src/config-parser.ts(+29 -1)➕
src/error-handling.test.ts(+82 -0)📝
src/error-handling.ts(+31 -1)➕
src/utils/output-formatter.test.ts(+66 -0)📝
src/utils/output-formatter.ts(+37 -2)➕
vitest.config.ts(+7 -0)📄 Description
Summary
This PR addresses the 5 Critical findings from the Argus Security Audit report:
isValidToolCall) and defensive validation inhandleToolUseMessage, plussanitizeForDisplayto prevent control-character/log injection.saveDeliverableFilewith filename validation and a resolved-path prefix check to ensure writes stay within the deliverables directory.redactSensitive()and applied it toerror.contextlogging to prevent leaking tokens/passwords/keys.__proto__,constructor,prototype) and enabled safer YAML parsing options before any downstream use.Files changed
Test plan
npm testpasses in both root andmcp-server/Closes #88
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.