Vulnerability Description
The Gallery Custom Links plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'display_name (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 simple_html_dom noise key placed in the attacker's display_name (which survives esc_attr() intact), with substitution occurring after both filters have run during the plugin's default-on output-buffering pass over the full rendered page.
CVSS Score
MEDIUM
Related Weaknesses (CWE)
References
- https://plugins.trac.wordpress.org/browser/gallery-custom-links/tags/2.3.3/class
- https://plugins.trac.wordpress.org/browser/gallery-custom-links/tags/2.3.3/class
- https://plugins.trac.wordpress.org/browser/gallery-custom-links/tags/2.3.3/vendo
- https://plugins.trac.wordpress.org/browser/gallery-custom-links/tags/2.3.3/vendo
- https://plugins.trac.wordpress.org/browser/gallery-custom-links/tags/2.3.3/vendo
- https://plugins.trac.wordpress.org/changeset/3737485/gallery-custom-links
- https://plugins.trac.wordpress.org/changeset/3737485/gallery-custom-links/trunk/
- https://www.wordfence.com/threat-intel/vulnerabilities/id/f37a0db8-b13c-4d9f-bc6
FAQ
What is CVE-2026-107757?
CVE-2026-107757 is a vulnerability with a CVSS score of 4.9 (MEDIUM). The Gallery Custom Links plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'display_name (profile.php) + comment (wp-comments-post.php)' parameter in all versions up to, and in...
How severe is CVE-2026-107757?
CVE-2026-107757 has been rated MEDIUM with a CVSS base score of 4.9/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-107757?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.