Skip to content

Sanitize event time and error messages to prevent XSS#2661

Merged
mtashjianjr-godaddy merged 1 commit intomasterfrom
WPEX-4128
Mar 3, 2026
Merged

Sanitize event time and error messages to prevent XSS#2661
mtashjianjr-godaddy merged 1 commit intomasterfrom
WPEX-4128

Conversation

@mtashjianjr-godaddy
Copy link
Member

Sanitize event time and error messages to enhance security and prevent XSS vulnerabilities.

Support Request:
https://wordpress.org/support/topic/cross-site-scripting-xss-vulnerability-detected/

@mtashjianjr-godaddy mtashjianjr-godaddy self-assigned this Mar 3, 2026
Copy link
Contributor

@aledesma-godaddy aledesma-godaddy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good. Adds proper XSS sanitization to the events block using esc_html(), esc_attr__(), and esc_html__(). Test failures appear to be pre-existing/unrelated (gist block unit tests + CI infrastructure issues).

@mtashjianjr-godaddy mtashjianjr-godaddy merged commit 76d0b51 into master Mar 3, 2026
38 of 65 checks passed
@mtashjianjr-godaddy mtashjianjr-godaddy deleted the WPEX-4128 branch March 3, 2026 19:57
@mtashjianjr-godaddy mtashjianjr-godaddy added this to the 3.1.17 milestone Mar 5, 2026
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