Skip to content

MEDIUM: Sanitize error messages returned to clients #37

Description

@Brad-Edwards

Severity: Medium (Appsec M5)

MCP server tool error handlers return `err.message` directly to clients, potentially exposing database connection strings, internal paths, or stack traces.

Recommendation: Return generic error messages to clients and log full error details server-side only.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions