CVE-2025-6068: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in bradvin FooGallery – Responsive Photo Gallery, Image Viewer, Justified, Masonry & Carousel
The FooGallery – Responsive Photo Gallery, Image Viewer, Justified, Masonry & Carousel plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the `data-caption-title` & `data-caption-description` HTML attributes in all versions up to, and including, 2.4.31 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
AI Analysis
Technical Summary
CVE-2025-6068 is a stored Cross-Site Scripting (XSS) vulnerability identified in the FooGallery – Responsive Photo Gallery, Image Viewer, Justified, Masonry & Carousel plugin for WordPress, developed by bradvin. This vulnerability affects all versions up to and including 2.4.31. The root cause is insufficient input sanitization and output escaping of user-supplied data in the `data-caption-title` and `data-caption-description` HTML attributes. Specifically, authenticated users with Contributor-level access or higher can inject arbitrary JavaScript code into these attributes, which is then stored and rendered in pages viewed by other users. Because the malicious script is stored persistently, it executes whenever any user accesses the compromised page, potentially leading to session hijacking, defacement, or unauthorized actions performed in the context of the victim’s browser session. The vulnerability does not require user interaction beyond visiting the affected page, and it does not require elevated privileges beyond Contributor access, which is a relatively low privilege level in WordPress. The CVSS v3.1 base score is 6.4, reflecting a medium severity with network attack vector, low attack complexity, privileges required, no user interaction, and a scope change. The impact affects confidentiality and integrity but not availability. No public exploits have been reported yet, but the vulnerability is publicly disclosed and should be considered for immediate remediation. The lack of official patches at the time of disclosure increases the urgency for mitigation. This vulnerability is categorized under CWE-79, which is a common and well-understood class of web application security issues related to improper neutralization of input during web page generation.
Potential Impact
The exploitation of CVE-2025-6068 can have significant impacts on organizations using the FooGallery plugin on WordPress sites, especially those with multiple contributors or editors. Attackers with Contributor-level access can inject malicious scripts that execute in the browsers of site visitors or administrators, potentially leading to session hijacking, theft of authentication tokens, unauthorized actions performed on behalf of users, or defacement of web content. This compromises the confidentiality and integrity of user data and site content. While availability is not directly impacted, the reputational damage and potential data breaches can have severe business consequences. Since WordPress powers a large portion of websites globally, including many corporate, governmental, and e-commerce sites, the scope of affected systems is broad. The medium CVSS score reflects that exploitation is feasible without complex conditions but requires authenticated access, limiting the attacker base to insiders or compromised accounts. However, in environments with many contributors or weak access controls, the risk is elevated. The absence of known exploits in the wild currently reduces immediate risk but does not eliminate it, as attackers may develop exploits rapidly after disclosure. Organizations failing to address this vulnerability may face targeted attacks aiming to leverage stored XSS for persistent compromise or lateral movement within web environments.
Mitigation Recommendations
Organizations should immediately audit their WordPress installations to identify the presence of the FooGallery plugin and verify the version in use. Since no official patch is currently available, administrators should consider temporary mitigations such as restricting Contributor-level access to trusted users only and implementing strict input validation and output encoding on the affected attributes if possible via custom code or security plugins. Web Application Firewalls (WAFs) can be configured to detect and block suspicious payloads targeting the `data-caption-title` and `data-caption-description` parameters. Monitoring logs for unusual contributor activity or unexpected script injections can help detect exploitation attempts. Additionally, site administrators should educate contributors about safe content practices and enforce strong authentication mechanisms to reduce the risk of account compromise. Once an official patch is released, immediate application is critical. Regular backups and incident response plans should be in place to recover from potential exploitation. Finally, consider deploying Content Security Policy (CSP) headers to limit the execution of unauthorized scripts, mitigating the impact of XSS attacks.
Affected Countries
United States, Germany, United Kingdom, Canada, Australia, France, India, Brazil, Japan, Netherlands, Italy, Spain
CVE-2025-6068: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in bradvin FooGallery – Responsive Photo Gallery, Image Viewer, Justified, Masonry & Carousel
Description
The FooGallery – Responsive Photo Gallery, Image Viewer, Justified, Masonry & Carousel plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the `data-caption-title` & `data-caption-description` HTML attributes in all versions up to, and including, 2.4.31 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2025-6068 is a stored Cross-Site Scripting (XSS) vulnerability identified in the FooGallery – Responsive Photo Gallery, Image Viewer, Justified, Masonry & Carousel plugin for WordPress, developed by bradvin. This vulnerability affects all versions up to and including 2.4.31. The root cause is insufficient input sanitization and output escaping of user-supplied data in the `data-caption-title` and `data-caption-description` HTML attributes. Specifically, authenticated users with Contributor-level access or higher can inject arbitrary JavaScript code into these attributes, which is then stored and rendered in pages viewed by other users. Because the malicious script is stored persistently, it executes whenever any user accesses the compromised page, potentially leading to session hijacking, defacement, or unauthorized actions performed in the context of the victim’s browser session. The vulnerability does not require user interaction beyond visiting the affected page, and it does not require elevated privileges beyond Contributor access, which is a relatively low privilege level in WordPress. The CVSS v3.1 base score is 6.4, reflecting a medium severity with network attack vector, low attack complexity, privileges required, no user interaction, and a scope change. The impact affects confidentiality and integrity but not availability. No public exploits have been reported yet, but the vulnerability is publicly disclosed and should be considered for immediate remediation. The lack of official patches at the time of disclosure increases the urgency for mitigation. This vulnerability is categorized under CWE-79, which is a common and well-understood class of web application security issues related to improper neutralization of input during web page generation.
Potential Impact
The exploitation of CVE-2025-6068 can have significant impacts on organizations using the FooGallery plugin on WordPress sites, especially those with multiple contributors or editors. Attackers with Contributor-level access can inject malicious scripts that execute in the browsers of site visitors or administrators, potentially leading to session hijacking, theft of authentication tokens, unauthorized actions performed on behalf of users, or defacement of web content. This compromises the confidentiality and integrity of user data and site content. While availability is not directly impacted, the reputational damage and potential data breaches can have severe business consequences. Since WordPress powers a large portion of websites globally, including many corporate, governmental, and e-commerce sites, the scope of affected systems is broad. The medium CVSS score reflects that exploitation is feasible without complex conditions but requires authenticated access, limiting the attacker base to insiders or compromised accounts. However, in environments with many contributors or weak access controls, the risk is elevated. The absence of known exploits in the wild currently reduces immediate risk but does not eliminate it, as attackers may develop exploits rapidly after disclosure. Organizations failing to address this vulnerability may face targeted attacks aiming to leverage stored XSS for persistent compromise or lateral movement within web environments.
Mitigation Recommendations
Organizations should immediately audit their WordPress installations to identify the presence of the FooGallery plugin and verify the version in use. Since no official patch is currently available, administrators should consider temporary mitigations such as restricting Contributor-level access to trusted users only and implementing strict input validation and output encoding on the affected attributes if possible via custom code or security plugins. Web Application Firewalls (WAFs) can be configured to detect and block suspicious payloads targeting the `data-caption-title` and `data-caption-description` parameters. Monitoring logs for unusual contributor activity or unexpected script injections can help detect exploitation attempts. Additionally, site administrators should educate contributors about safe content practices and enforce strong authentication mechanisms to reduce the risk of account compromise. Once an official patch is released, immediate application is critical. Regular backups and incident response plans should be in place to recover from potential exploitation. Finally, consider deploying Content Security Policy (CSP) headers to limit the execution of unauthorized scripts, mitigating the impact of XSS attacks.
Technical Details
- Data Version
- 5.1
- Assigner Short Name
- Wordfence
- Date Reserved
- 2025-06-13T14:00:13.538Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6870bdbba83201eaacacf6fc
Added to database: 7/11/2025, 7:31:07 AM
Last enriched: 2/27/2026, 4:02:21 PM
Last updated: 3/24/2026, 4:59:45 PM
Views: 131
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.