Extended HTML Filter
The module does not properly clean up certain text attributes. An ordinary account on the site could use this to run unwanted scripts. This might allow them to view private details or modify existing content.
- Who could do thisOnly someone with a login on your site.
- Does it apply to youSites are affected if an attacker is able to insert text with specific attributes.
- Has it been used in attacksNo sign of it.
- How urgentDrupal rates this moderately critical. Include it in your next routine update, within the month.
Tell your developerUpdate Extended HTML Filter to 1.0.4.
For developers: what the fix changed
The fix adds checks to skip attributes starting with 'data-hx' or 'hx' in the ExtendedHTMLFilterXss class to prevent XSS via HTMX attributes.
Also in this release The release also updates strpos checks to str_starts_with for better readability and performance.
src/Utility/ExtendedHTMLFilterXss.php+4 −2 fix