Phying News
Curated security research, vulnerabilities, advisories and tools for practitioners.

Secure Markdown Rendering in React: Balancing Flexibility and Safety

Summary

Rendering user-generated Markdown risks XSS when output becomes HTML. react-markdown escapes HTML by default; pair it with DOMPurify sanitization before dangerouslySetInnerHTML if HTML is required.
Published
Collected

original ↗

Related coverage

back