What is wrong
A pinned markdown library has a known XSS advisory.
Impact: Script injection through shared notes.
Evidence (fixture)
package.json:31 · commit a3f9c21
"marked-demo": "2.0.1" // fixture advisory DEMO-2024-001
Expected
Patched version ≥ 4.0.Observed
2.0.1 in lockfile.Recommended fix
Upgrade and sanitize rendered HTML.
Repair prompt for your AI builder
Upgrade the markdown parser to the latest patched version and sanitize rendered HTML with DOMPurify.
Paste it into Lovable, Claude Code, Cursor or Codex.