Skip to content

html/template: iframe srcdoc attribute not properly escaped #80154

Description

@rolandshoemaker

If an action is placed in an iframe srcdoc attribute, its content is not properly treated as HTML and escaped.

I believe this just needs adding the right case in tTag.

This can cause unexpected content to be rendered. Due to a lack of usage of this attribute in templates that we could find, and since it would require the template author to explicitly place attacker controlled input into an action in srcdoc, which seems quite unlikely, we are treating this as a security hardening issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsFixThe path to resolution is known, but the work has not been done.Security

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions