Reviewed & tested by the community
Project:
Autosave Form
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
14 Mar 2025 at 12:16 UTC
Updated:
1 Oct 2025 at 08:27 UTC
Jump to comment: Most recent
Comments
Comment #3
mr.baileysComment #4
sdhruvi5142 commentedThe proposed solution correctly addresses the XSS vulnerability by sanitizing the notification message with Xss::filterAdmin(). Since this configuration requires admin privileges, using filterAdmin() is appropriate as it maintains necessary HTML formatting while stripping dangerous scripts. I've verified the fix by testing with various payloads (including
<script>tags and HTML attributes) and confirmed it prevents execution while preserving legitimate markup. The implementation follows Drupal's security best practices by sanitizing at output time without breaking existing functionality.Moving this to RTBC but creating a new issues for fixing the phpcs issues and wraning showing up in the pipeline.
#3515975
Comment #5
steinmb commentedIs there anything holding this back from getting merged? Looks RTBC to me.