Skip to content

Allow data & mxc URLs in img tags in HTML #2900

Closed
@ara4n

Description

@ara4n

PR matrix-org/matrix-react-sdk#333 whitelisted data URIs for img tags in the HTML sanitizer. Unfortunately this introduced a vuln where you could do <img src=//evil.com/tracker.gif/> given null URL schemes are apparently implicitly in the allowedSchemes list, and got backed out in matrix-org/matrix-react-sdk@8ae210c. Would be good to get it back again, especially so we can embed mxc URLs nicely in messages for stickers, custom emoji, captioned images, etc.

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