Skip to content

refactor(mcp): extract shared injection-detection patterns to avoid drift between zeph-mcp and zeph-core #1747

@bug-ops

Description

@bug-ops

Context

zeph-mcp/src/sanitize.rs and zeph-core's ContentSanitizer both maintain independent sets of injection-detection regexes. These will drift over time as new patterns are added to one but not the other.

Action Required

Extract the injection-detection regex set into a shared location (e.g. zeph-core::security::patterns or a new minimal crate) and have both zeph-mcp and zeph-core depend on it. This ensures any new pattern is automatically available to both sanitization layers.

Severity

Low — maintenance risk, not an active vulnerability.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions