Skip to content

Security: add DOMpurify to any document write methods #670

@helms-charity

Description

@helms-charity

Aikido.dev says:

Using document write methods can lead to XSS attacks (high) in cards-testimonial.js, cc-hero-slider.js and 10 others
When innerHTML is set from variables (newContent, panelHTML, goBackContent) sourced from DOM/dataset/contentMap with no shown sanitization; this is a real DOM XSS risk.

We already have DOMpurify for editor-support.js, we should be able to extend this to all our block functions without breaking anything.

Sub-issues

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions