Skip to content

Clarification Request: Standardized Guidance for Detecting Malicious Patterns in Widget HTML #664

@jimchou-dev

Description

@jimchou-dev

The current guidance mentions Host behaviour should:

- Review HTML content for obvious malicious patterns

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions