Skip to content

Conversation

ashutoshkumarsingh-dev
Copy link

This PR sanitizes RichText HTML and blocks script execution.\n\n- Sanitize value via DOMPurify before rendering\n- Use sanitized value for dangerouslySetInnerHTML and iframe srcDoc\n- Add dompurify dependency in general-editor/package.json\n\nPoC (previously exploitable, now neutralized): <img src=x onerror=alert('XSS')> / <svg onload=alert('XSS')>\n\nCloses #229

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant