Skip to content

Prompt content previews need sandboxing for markdown, links, and embedded media #244

Description

@prissca

Problem

Creator-provided preview content can introduce XSS, unsafe links, tracking pixels, or layout-breaking payloads.

Scope

  • Sanitize preview markdown and rich text
  • Restrict unsafe links and embeds
  • Add security regression tests

Acceptance criteria

  • Scripts and unsafe URLs are neutralized
  • Allowed markdown renders correctly
  • Tests cover XSS, iframes, images, and long content

Relevant areas

  • src/pages/prompts
  • src/pages/sell
  • server/tests

Complexity

High - 200 points

Contributor guidance

Start with a short design note in the issue discussion, then implement with focused tests and documentation for the affected workflow.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardThird CampaignCampaign: Third Campaignhelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions