CVE-2026-107757: Gallery Custom Links <= 2.3.3 - Authenticated (Subscriber+) Stored Cross-Site Scripting via Comment Author Display Name + Comment HTML Comment Body

Published Oct 14, 2026
·
Updated

The Gallery Custom Links plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'displayname (profile.php) + comment (wp-comments-post.php)' parameter in all versions up to, and including, 2.3.3 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with subscriber-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. The exploit requires two coordinated inputs from the same authenticated attacker: an HTML comment payload stored in a comment body (preserved verbatim by WordPress comment kses) and a matching simplehtmldom noise key placed in the attacker's displayname (which survives escattr() intact), with substitution occurring after both filters have run during the plugin's default-on output-buffering pass over the full rendered page.

Affected Software

1 affected component
Gallery Custom Links Gallery Custom Links<=2.3.3

Event History

Oct 14, 2026
CVE Published
via MITRE·07:43 AM
Data Sourced
via MITRE·07:43 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who can exploit this issue?

An attacker needs an authenticated WordPress account with at least Subscriber-level access. They must be able to submit a comment and modify their own display name.

2

What conditions are required for exploitation?

The attacker must coordinate two inputs from the same account: an HTML payload in a comment body and a matching simple_html_dom noise key in their display name. The malicious script runs when someone accesses a page containing the injected content.

3

Is a non-default configuration required?

No. The affected behavior occurs during the plugin's default-on output-buffering pass over the fully rendered page.

4

Which plugin versions are affected?

All Gallery Custom Links versions up to and including 2.3.3 are affected.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203