mirror of
https://github.com/usestrix/strix.git
synced 2026-08-16 09:26:39 +02:00
* fix(report): prevent code-fence breakout in vulnerability markdown render_vulnerability_md wrapped LLM-authored poc_script_code and code snippet values in a fixed three-backtick fence, so a triple-backtick inside the value closed the fence early and the rest rendered as live markdown (headings, tracking-beacon images) in the shareable report deliverable. Open each such block with a fence one backtick longer than the longest backtick run in the payload (CommonMark: a block closes only on a fence at least as long as the opener), so the content always renders verbatim. The adjacent ```diff block is already safe (its lines are '- '/'+ ' prefixed and so can never be a bare-backtick closing fence) and is left unchanged. Fixes #815 * fix(report): indent multiline snippets --------- Co-authored-by: thejesh23 <thejesh23@users.noreply.github.com> Co-authored-by: Alex Schapiro <bearsyankees@gmail.com>