This issue has been created
There are 2 updates.
 
 
XWiki Commons / cid:jira-generated-image-avatar-a71fb691-6402-4af9-9107-35c76c0df0a3 XCOMMONS-3871 Open

Allow more safe elements and attributes in the HTML sanitizer

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-1c3bc2ff-0950-45df-8bb3-3abb184662ae Michael Hamann created this issue on 02/Nov/26 10:41
 
Summary: Allow more safe elements and attributes in the HTML sanitizer
Issue Type: cid:jira-generated-image-avatar-a71fb691-6402-4af9-9107-35c76c0df0a3 Improvement
Affects Versions: 14.6-rc-1
Assignee: Unassigned
Components: XML
Created: 02/Nov/26 10:41
Priority: cid:jira-generated-image-static-major-9c0ff67a-1342-4751-9d1f-c7b5140f62ec Major
Reporter: Michael Hamann
Description:

The lists of safe elements and attributes of the secure HTML element sanitizer are based on DOMPurify 2.3.8. Later DOMPurify versions (up to 3.4.17) allow the following additional safe elements and attributes, which the sanitizer should allow too:

  • HTML elements: search, slot
  • HTML attributes: inert, popover, part, exportparts, wrap
  • SVG filter element: feDropShadow
  • SVG attributes: amplitude, dominant-baseline, exponent, intercept, mask-type, pointer-events, slope, tablevalues, text-orientation, vector-effect
  • MathML element: mprescripts
  • MathML attribute: columnspacing
  • URL schemes sms: and matrix: in the default list of allowed URLs (only relevant when unknown protocols are disallowed)

The attributes command, commandfor, popovertarget and popovertargetaction, which DOMPurify also allows, are left out: they only have an effect on buttons and inputs, which the sanitizer doesn't allow, and they reference elements of the page by id.

 
 

2 updates

 
cid:jira-generated-image-avatar-1c3bc2ff-0950-45df-8bb3-3abb184662ae Changes by Michael Hamann on 02/Nov/26 10:41
 
Fix Version: 18.10.0-rc-1
Assignee: Michael Hamann