Skip to content

Question Editor Accepts Empty/Invalid Rich Text Payloads Causing Broken Question States [BUG} #8

@krrish612

Description

@krrish612

Ask Question workflow seems to be vulnerable to malformed or effectively empty rich-text submissions. The editor supports formatted content, allowing users to submit payloads that are simply empty HTML tags, invisible characters, or invalid serialized editor states, thereby bypassing meaningful content validation.

This can make question entries unreadable or broken in the feed.

Areas affected:

ask question edit
rendering pipeline question
question validation process

How to reproduce:

Open Ask Question page
To submit content, including:


or invisible unicode/zero width characters
3. Post the question
4. Watch question rendering and validation behavior

Expected behavior:

editor content must be semantically valid
refuse empty rich text payloads
validation should fail on invisible/whitespace-only submissions
malformed editor states should not linger

Actual conduct:
The present validation flow may persist and display question content that is structurally non-empty but semantically empty.

Possible effects:

spam/invalid questions
feed was bad quality
inconsistencies in rendering
moderation bypass channels

Proposed fix:

normalize editor payloads prior to validation
strip invisible Unicode characters
validate semantic text length not raw html length
add schema validation to server side editor

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions