Stored cross-site scripting in Contest Gallery - Photo Contest Plugin for WordPress - CVE-2025-3862
Published: May 12, 2025
Contest Gallery - Photo Contest Plugin for WordPress
Detailed vulnerability description
The disclosed vulnerability allows a remote attacker to perform cross-site scripting (XSS) attacks.
The vulnerability exists due to insufficient sanitization of user-supplied data in the "id" parameter. A remote user can inject and execute arbitrary HTML and script code in user's browser in context of vulnerable website.
Successful exploitation of this vulnerability may allow a remote attacker to steal potentially sensitive information, change appearance of the web page, perform phishing and drive-by-download attacks.
How to mitigate CVE-2025-3862
Sources
- https://plugins.trac.wordpress.org/browser/contest-gallery/tags/26.0.5/shortcodes/cg_entry_on_off.php#L20
- https://plugins.trac.wordpress.org/browser/contest-gallery/tags/26.0.7/shortcodes/cg_entry_on_off.php#L20
- https://plugins.trac.wordpress.org/changeset/3288915
- https://wordpress.org/plugins/contest-gallery/#developers
- https://www.contest-gallery.com/documentation/
- https://www.wordfence.com/threat-intel/vulnerabilities/id/a1b043a1-7bee-4ef0-86d9-19cf202cfc71?source=cve