modelcontextprotocol / modelcontextprotocol/ext-apps
Clarification Request: Standardized Guidance for Detecting Malicious Patterns in Widget HTML
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.9k
- Forks
- 387
- Avg merge
- 3h 21m
- Merged PRs (30d)
- 6
Description
The current guidance mentions Host behaviour should:
Could we clarify whether there is a standardized guideline or recommended policy for what should be considered a “malicious pattern” in the context of hosted/embedded widgets?
Specifically:
-
Is there an existing standard list or definition of patterns that hosts are expected to scan for?
-
Are there recommended categories of suspicious content (for example, script injection, inline event handlers, javascript: URLs, unexpected iframe usage, etc.)?
-
Is the expectation that hosts implement:
- strict blocking,
- best-effort heuristic scanning,
- or logging/telemetry only?
Context
For third-party widgets/apps, full HTML sanitization is often not practical because it can break legitimate functionality. It would be helpful to understand whether there is a common baseline guideline that hosts should follow for detecting clearly malicious content without overly restricting valid widget behavior.
Goal
Align host implementations on a consistent security expectation while preserving compatibility for legitimate third-party widgets.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with specification/2026-01-26/apps.mdx around the Host behaviour guidance linked in the issue. Review the existing wording and document a consistent baseline for malicious-pattern detection, including the expected host response; done means the security expectation is explicit while preserving legitimate widget compatibility.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html
- Domain
- documentation, security
- Issue type
- Documentation
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100