Skip to content

Markdown Widget not sanitize content #2581

@ghost

Description

Has your issue been reported?

  • I have searched the existing issues and confirm it has not been reported.
  • I give permission for members of the FlutterFlow team to access and test my project for the sole purpose of investigating this issue.

Current Behavior

Markdown Widget is introduced that in FF document.

You could use this widget in various applications like note-taking apps, forums, and blogging platforms.

For these type of user-content oriented usage, the widgets have to have functionality of sanitize before displaying.
But the widget causes crash with text data image.
Common note-taking apps will sanitized that (and nothing happen).

Expected Behavior

Sanitize and don't crash.

Steps to Reproduce

  1. Create text widget
  2. Create Page State of String
  3. Update the State with inputted text in the widget
  4. Create Markdown Widget valued from No.3
  5. Input image into No.1

Reproducible from Blank

  • The steps to reproduce above start from a blank project.

Bug Report Code (Required)

IT4wheflxItIpbxZ+KXTbcAwpCYWMjs2R+cO0u5tdCs8Guv2PbMyZM+lYldUOczjYWNYOE20gmMX/MrViPD1Nvk3FzqCf4BlwsxyaTuXIVqmVqaMEb63b3dTO+lMFVSl55iZuhFSNthhV1Fm3TuEI9isYADZHu/PPjE3MOaoXdeK2SrDX1iXc2URm05KZDPz

Context

The Markdown widget can't used for user-content oriented purpose as like FF document says.
If a malicious person posted this text, it would cause a crash in the apps of other users who viewed that content.

Visual documentation

Just before crash
image

After crash
image

Additional Info

If the lack of sanitization is a specification of the widget, then the documentation should be revised to avoid misunderstandings.

Environment

- FlutterFlow version: 4.1.34
- Platform: Web
- Browser name and version: Chrome 122.0.6261.129 (Official Build) (arm64)
- Operating system and version affected: macOS Sonoma 14.2.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions