CVE-2024-12119: 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 default_gallery_title_size parameter in all versions up to, and including, 2.4.29 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with granted gallery and album creator roles, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
AI Analysis
Technical Summary
CVE-2024-12119 is a stored Cross-Site Scripting (XSS) vulnerability identified in the FooGallery WordPress plugin, which is used for creating responsive photo galleries with features such as image viewing, justified layouts, masonry, and carousel displays. The vulnerability arises from improper neutralization of input during web page generation, specifically through the default_gallery_title_size parameter. This parameter lacks sufficient input sanitization and output escaping, allowing an authenticated attacker with gallery and album creator roles to inject arbitrary malicious scripts into pages. These scripts execute whenever any user accesses the compromised page, potentially leading to session hijacking, defacement, or redirection to malicious sites. The vulnerability affects all versions up to and including 2.4.29 of the plugin. The CVSS v3.1 base score is 6.4 (medium severity), reflecting that exploitation requires network access, low attack complexity, privileges with gallery/album creator roles, no user interaction, and impacts confidentiality and integrity with a scope change. No known exploits are currently reported in the wild. The vulnerability is significant because WordPress is widely used across many organizations, and plugins like FooGallery are popular for media-rich websites, making this a vector for persistent client-side attacks within trusted domains.
Potential Impact
For European organizations, this vulnerability poses a moderate risk primarily to websites using the FooGallery plugin for WordPress. Exploitation could lead to unauthorized script execution in the context of the affected website, allowing attackers to steal session cookies, perform actions on behalf of users, or deliver malware. This can compromise user data confidentiality and website integrity, potentially damaging brand reputation and user trust. Organizations in sectors with high web presence such as e-commerce, media, education, and government could face targeted attacks exploiting this vulnerability. The requirement for authenticated gallery or album creator roles limits the attack surface but insider threats or compromised accounts increase risk. Additionally, the scope change in CVSS indicates that the vulnerability can affect resources beyond the initially vulnerable component, potentially impacting other parts of the web application. Given the widespread use of WordPress in Europe and the popularity of photo gallery plugins, the vulnerability could be leveraged in targeted phishing or social engineering campaigns to escalate attacks.
Mitigation Recommendations
1. Immediate patching: Although no patch links are provided in the data, organizations should monitor the vendor’s official channels for updates or patches addressing CVE-2024-12119 and apply them promptly. 2. Role auditing: Restrict and audit user roles with gallery and album creator permissions to minimize the number of accounts capable of exploiting this vulnerability. 3. Input validation and output encoding: Implement additional server-side input validation and output encoding for the default_gallery_title_size parameter if custom development or temporary fixes are possible. 4. Web Application Firewall (WAF): Deploy or update WAF rules to detect and block malicious payloads targeting this parameter to reduce exploitation risk. 5. Monitoring and logging: Enhance monitoring of user activities related to gallery and album creation, and review logs for suspicious behavior indicative of exploitation attempts. 6. User awareness: Educate administrators and content creators about the risks of XSS and the importance of secure content handling. 7. Backup and recovery: Maintain regular backups of website data to enable quick restoration in case of compromise. These steps go beyond generic advice by focusing on role management, proactive monitoring, and layered defenses tailored to the plugin’s functionality and attack vector.
Affected Countries
Germany, France, United Kingdom, Netherlands, Italy, Spain, Poland, Sweden
CVE-2024-12119: 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 default_gallery_title_size parameter in all versions up to, and including, 2.4.29 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with granted gallery and album creator roles, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
AI-Powered Analysis
Technical Analysis
CVE-2024-12119 is a stored Cross-Site Scripting (XSS) vulnerability identified in the FooGallery WordPress plugin, which is used for creating responsive photo galleries with features such as image viewing, justified layouts, masonry, and carousel displays. The vulnerability arises from improper neutralization of input during web page generation, specifically through the default_gallery_title_size parameter. This parameter lacks sufficient input sanitization and output escaping, allowing an authenticated attacker with gallery and album creator roles to inject arbitrary malicious scripts into pages. These scripts execute whenever any user accesses the compromised page, potentially leading to session hijacking, defacement, or redirection to malicious sites. The vulnerability affects all versions up to and including 2.4.29 of the plugin. The CVSS v3.1 base score is 6.4 (medium severity), reflecting that exploitation requires network access, low attack complexity, privileges with gallery/album creator roles, no user interaction, and impacts confidentiality and integrity with a scope change. No known exploits are currently reported in the wild. The vulnerability is significant because WordPress is widely used across many organizations, and plugins like FooGallery are popular for media-rich websites, making this a vector for persistent client-side attacks within trusted domains.
Potential Impact
For European organizations, this vulnerability poses a moderate risk primarily to websites using the FooGallery plugin for WordPress. Exploitation could lead to unauthorized script execution in the context of the affected website, allowing attackers to steal session cookies, perform actions on behalf of users, or deliver malware. This can compromise user data confidentiality and website integrity, potentially damaging brand reputation and user trust. Organizations in sectors with high web presence such as e-commerce, media, education, and government could face targeted attacks exploiting this vulnerability. The requirement for authenticated gallery or album creator roles limits the attack surface but insider threats or compromised accounts increase risk. Additionally, the scope change in CVSS indicates that the vulnerability can affect resources beyond the initially vulnerable component, potentially impacting other parts of the web application. Given the widespread use of WordPress in Europe and the popularity of photo gallery plugins, the vulnerability could be leveraged in targeted phishing or social engineering campaigns to escalate attacks.
Mitigation Recommendations
1. Immediate patching: Although no patch links are provided in the data, organizations should monitor the vendor’s official channels for updates or patches addressing CVE-2024-12119 and apply them promptly. 2. Role auditing: Restrict and audit user roles with gallery and album creator permissions to minimize the number of accounts capable of exploiting this vulnerability. 3. Input validation and output encoding: Implement additional server-side input validation and output encoding for the default_gallery_title_size parameter if custom development or temporary fixes are possible. 4. Web Application Firewall (WAF): Deploy or update WAF rules to detect and block malicious payloads targeting this parameter to reduce exploitation risk. 5. Monitoring and logging: Enhance monitoring of user activities related to gallery and album creation, and review logs for suspicious behavior indicative of exploitation attempts. 6. User awareness: Educate administrators and content creators about the risks of XSS and the importance of secure content handling. 7. Backup and recovery: Maintain regular backups of website data to enable quick restoration in case of compromise. These steps go beyond generic advice by focusing on role management, proactive monitoring, and layered defenses tailored to the plugin’s functionality and attack vector.
Affected Countries
For access to advanced analysis and higher rate limits, contact root@offseq.com
Technical Details
- Data Version
- 5.1
- Assigner Short Name
- Wordfence
- Date Reserved
- 2024-12-03T21:29:32.033Z
- Cisa Enriched
- true
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 682d9816c4522896dcbd6c67
Added to database: 5/21/2025, 9:08:38 AM
Last enriched: 7/4/2025, 9:55:19 PM
Last updated: 7/26/2025, 11:23:00 PM
Views: 14
Related Threats
CVE-2025-55167: CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in LabRedesCefetRJ WeGIA
CriticalCVE-2025-55166: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in darylldoyle svg-sanitizer
MediumCVE-2025-55164: CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') in helmetjs content-security-policy-parser
HighCVE-2025-3089: CWE-639 Authorization Bypass Through User-Controlled Key in ServiceNow ServiceNow AI Platform
MediumCVE-2025-54864: CWE-306: Missing Authentication for Critical Function in NixOS hydra
MediumActions
Updates to AI analysis are available only with a Pro account. Contact root@offseq.com for access.
Need enhanced features?
Contact root@offseq.com for Pro access with improved analysis and higher rate limits.