diff --git a/SECURITY.md b/SECURITY.md index 0a0c920..fa64ba6 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -2,8 +2,28 @@ mojo-markdown is a pure-Mojo CommonMark parser and HTML renderer with no network access, no authentication, and no secrets handling — it reads -markdown text and returns rendered HTML or an AST. The main risk -surface is malformed or adversarial input causing a crash or hang. +markdown text and returns rendered HTML or an AST. + +## Output is NOT sanitized + +Per the [CommonMark spec](https://spec.commonmark.org/), raw inline and +block HTML, as well as `javascript:`, `data:`, and other arbitrary URL +schemes in links and images, pass through to the output **verbatim**. +mojo-markdown does **not** sanitize its output. Rendering untrusted +markdown and inserting the result into a live page is a stored-XSS risk: +an author can embed `