Skip to content

Conversation

@lewispb
Copy link
Member

@lewispb lewispb commented Apr 26, 2024

Specially crafted copy and pasted HTML can trigger an XSS (if there's no protective CSP).

I've added a test case for this, and fixed it by stripping noscript elements from copy and pasted HTML.

@afcapel afcapel merged commit 841ff19 into main Apr 26, 2024
@afcapel afcapel deleted the sanitize-noscript branch April 26, 2024 15:10
@afcapel
Copy link
Contributor

afcapel commented Apr 26, 2024

Thanks @lewispb 🙌

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.

3 participants