Skip to content

Sanitize scripts with TinyMCE #8836 #8837

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

mwentz
Copy link

@mwentz mwentz commented Jun 20, 2025

This change to the TinyMCE module will set TinyMCE to remove scripts that are added in any TinyMCE blocks.

This is a breaking change since users were previously able to add <script> tags to content using TinyMCE.

This fixes https://nvd.nist.gov/vuln/detail/CVE-2022-37720

@mwentz
Copy link
Author

mwentz commented Jun 20, 2025

@dotnet-policy-service agree

@sebastienros
Copy link
Member

Sorry, I commented on the issue but this should be here:

Do you think you could provide a PR that would make the setting configurable from the admin?

@mwentz
Copy link
Author

mwentz commented Jul 14, 2025

Great idea. Might be a while until I can carve out time but I'll give it a shot when I can.

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.

2 participants