Skip to content

Consider changing the default from unsafe to safe #239

Description

@Flowdalic

I suggest changing the default modus operandi of cmark from unsafe to safe. I fear otherwise people will run cmake with the defaults to produce HTML which they deliver to their user, allowing an attacker to inject dangerous stuff into that HTML. Given the popularity of CommonMark, I do wonder if we don't have already a certain amount of vulnerable sites because of cmark's default behavior.

Or am I missing something? What is the reasoning behind performing unsafe operations per default, versus having to explicitly enable them?

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      Sponsor
      SponsoredKunjungi sekarang
      Promo