CVE-2025-47677 in Photo Gallery Plugininfo

Summary

by MITRE • 05/07/2025

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in gt3themes Photo Gallery - GT3 Image Gallery & Gutenberg Block Gallery allows Stored XSS. This issue affects Photo Gallery - GT3 Image Gallery & Gutenberg Block Gallery: from n/a through 2.7.7.25.

Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Analysis

by VulDB Data Team • 05/07/2025

This vulnerability represents a critical cross-site scripting flaw in the gt3themes Photo Gallery plugin for WordPress, specifically within the GT3 Image Gallery & Gutenberg Block Gallery component. The issue manifests as a stored XSS vulnerability that occurs during web page generation when processing user input, allowing attackers to inject malicious scripts that persist in the application's database and execute against unsuspecting users. The vulnerability affects all versions of the plugin from the initial release through version 2.7.7.25, indicating a prolonged exposure window that could have allowed extensive exploitation.

The technical flaw stems from inadequate input sanitization and output encoding mechanisms within the plugin's web page generation process. When users upload images or configure gallery settings through the WordPress admin interface, the plugin fails to properly neutralize potentially malicious input before storing it in the database. This stored data is then retrieved and rendered in subsequent web pages without adequate protection against script execution, creating an ideal environment for XSS attacks. The vulnerability specifically impacts the plugin's handling of user-provided content within gallery configurations, image captions, or other editable fields that are subsequently displayed on public-facing pages.

The operational impact of this vulnerability is severe as it enables attackers to execute arbitrary JavaScript code in the context of victims' browsers, potentially leading to session hijacking, credential theft, or redirection to malicious sites. Attackers could exploit this weakness by crafting malicious input that includes script tags or other XSS payloads in gallery-related fields, which would then execute whenever legitimate users view the affected gallery pages. The stored nature of this vulnerability means that once exploited, the malicious code persists indefinitely until manually removed from the database, providing attackers with sustained access to victim systems and potentially enabling broader attacks against the compromised WordPress installation.

Mitigation strategies should focus on immediate plugin updates to versions beyond 2.7.7.25 where the vulnerability has been addressed, along with comprehensive input validation and output encoding implementations. Organizations should implement Content Security Policy headers to limit script execution, conduct thorough security audits of all installed plugins, and establish monitoring for suspicious user activity or unauthorized modifications to gallery configurations. The vulnerability aligns with CWE-79 which specifically addresses cross-site scripting flaws, and follows ATT&CK technique T1566.001 for initial access through malicious content. Regular security assessments and maintaining updated security tooling are essential for preventing similar vulnerabilities in the broader WordPress ecosystem.

Responsible

Patchstack

Reservation

05/07/2025

Disclosure

05/07/2025

Moderation

accepted

CPE

ready

EPSS

0.00143

KEV

no

Activities

very low

Sources

Do you want to use VulDB in your project?

Use the official API to access entries easily!