Skip to content

[Security] CORS wildcard and auth patterns in MCP server examples #1683

@hhhashexe

Description

@hhhashexe

Found via SkillFence scan (npmjs.com/package/skillfence, 76 rules).

Key findings across 291 files:

  • CORS wildcard (*) in server examples — allows cross-origin attacks
  • Auth disabled in example configs — should default to secure
  • MCP sampling patterns without approval gates

Scan: npx skillfence scan . (Verdict: BLOCK, 113 findings, 17 critical, 28 high)

Recommendation: Default examples should use restrictive CORS and require auth. Add security notes to docs.

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