CVE-2025-4131: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in garubi GmapsMania
The GmapsMania plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's gmap shortcode in all versions up to, and including, 1.1 due to insufficient input sanitization and output escaping on user supplied attributes. 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-4131 is a Stored Cross-Site Scripting (XSS) vulnerability affecting the GmapsMania plugin for WordPress, developed by garubi. This vulnerability exists in all versions up to and including 1.1 of the plugin. The root cause is insufficient input sanitization and output escaping on user-supplied attributes within the plugin's 'gmap' shortcode. Specifically, authenticated users with contributor-level access or higher can inject arbitrary JavaScript code into pages via crafted shortcode attributes. When other users visit these compromised pages, the injected scripts execute in their browsers within the context of the vulnerable site. This can lead to session hijacking, privilege escalation, defacement, or redirection to malicious sites. The vulnerability does not require user interaction beyond visiting the affected page, and no higher privileges than contributor are needed to exploit it. The CVSS 3.1 base score is 6.4 (medium severity), reflecting network attack vector, low attack complexity, privileges required at the contributor level, no user interaction, and a scope change since the vulnerability affects other users beyond the attacker. The impact affects confidentiality and integrity but not availability. No known exploits have been reported in the wild yet, and no patches have been published at the time of analysis. The vulnerability is classified under CWE-79 (Improper Neutralization of Input During Web Page Generation), a common web application security flaw. Given the widespread use of WordPress and the popularity of mapping plugins, this vulnerability poses a significant risk to websites using GmapsMania, especially those allowing contributor-level user registrations or access.
Potential Impact
For European organizations, this vulnerability can lead to unauthorized script execution on websites that use the GmapsMania plugin, potentially compromising user sessions and data confidentiality. Attackers with contributor access can inject malicious scripts that execute in the browsers of site visitors, including administrators or other privileged users, leading to credential theft, unauthorized actions, or distribution of malware. This can damage organizational reputation, lead to data breaches under GDPR regulations, and cause operational disruptions if administrative accounts are compromised. Organizations relying on WordPress-based public-facing websites, intranets, or portals that incorporate GmapsMania are at risk. The scope of impact extends to any user accessing the infected pages, increasing the potential damage. Since contributor-level access is sufficient for exploitation, organizations with open or lightly controlled user registration policies are particularly vulnerable. The lack of patches and known exploits means organizations must proactively mitigate the risk. The vulnerability does not directly affect availability but can indirectly cause service disruptions if exploited for further attacks or defacements.
Mitigation Recommendations
1. Immediately audit WordPress sites for the presence of the GmapsMania plugin and identify versions in use. 2. Restrict contributor-level access strictly, ensuring only trusted users have such permissions. 3. Implement Web Application Firewall (WAF) rules to detect and block suspicious shortcode attribute inputs that may contain script tags or event handlers. 4. Employ Content Security Policy (CSP) headers to limit the execution of inline scripts and reduce the impact of XSS. 5. Monitor website content for unauthorized script injections or unexpected changes in pages using the gmap shortcode. 6. Educate content contributors about safe input practices and the risks of injecting untrusted content. 7. If possible, temporarily disable or remove the GmapsMania plugin until a security patch is released. 8. Keep WordPress core and all plugins updated regularly and subscribe to vendor security advisories for timely patching. 9. Use security plugins that can scan for XSS vulnerabilities and malicious code injections. 10. Implement multi-factor authentication for administrative accounts to mitigate the risk of credential theft via XSS.
Affected Countries
Germany, France, United Kingdom, Netherlands, Italy, Spain, Poland, Sweden
CVE-2025-4131: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in garubi GmapsMania
Description
The GmapsMania plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's gmap shortcode in all versions up to, and including, 1.1 due to insufficient input sanitization and output escaping on user supplied attributes. 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
Technical Analysis
CVE-2025-4131 is a Stored Cross-Site Scripting (XSS) vulnerability affecting the GmapsMania plugin for WordPress, developed by garubi. This vulnerability exists in all versions up to and including 1.1 of the plugin. The root cause is insufficient input sanitization and output escaping on user-supplied attributes within the plugin's 'gmap' shortcode. Specifically, authenticated users with contributor-level access or higher can inject arbitrary JavaScript code into pages via crafted shortcode attributes. When other users visit these compromised pages, the injected scripts execute in their browsers within the context of the vulnerable site. This can lead to session hijacking, privilege escalation, defacement, or redirection to malicious sites. The vulnerability does not require user interaction beyond visiting the affected page, and no higher privileges than contributor are needed to exploit it. The CVSS 3.1 base score is 6.4 (medium severity), reflecting network attack vector, low attack complexity, privileges required at the contributor level, no user interaction, and a scope change since the vulnerability affects other users beyond the attacker. The impact affects confidentiality and integrity but not availability. No known exploits have been reported in the wild yet, and no patches have been published at the time of analysis. The vulnerability is classified under CWE-79 (Improper Neutralization of Input During Web Page Generation), a common web application security flaw. Given the widespread use of WordPress and the popularity of mapping plugins, this vulnerability poses a significant risk to websites using GmapsMania, especially those allowing contributor-level user registrations or access.
Potential Impact
For European organizations, this vulnerability can lead to unauthorized script execution on websites that use the GmapsMania plugin, potentially compromising user sessions and data confidentiality. Attackers with contributor access can inject malicious scripts that execute in the browsers of site visitors, including administrators or other privileged users, leading to credential theft, unauthorized actions, or distribution of malware. This can damage organizational reputation, lead to data breaches under GDPR regulations, and cause operational disruptions if administrative accounts are compromised. Organizations relying on WordPress-based public-facing websites, intranets, or portals that incorporate GmapsMania are at risk. The scope of impact extends to any user accessing the infected pages, increasing the potential damage. Since contributor-level access is sufficient for exploitation, organizations with open or lightly controlled user registration policies are particularly vulnerable. The lack of patches and known exploits means organizations must proactively mitigate the risk. The vulnerability does not directly affect availability but can indirectly cause service disruptions if exploited for further attacks or defacements.
Mitigation Recommendations
1. Immediately audit WordPress sites for the presence of the GmapsMania plugin and identify versions in use. 2. Restrict contributor-level access strictly, ensuring only trusted users have such permissions. 3. Implement Web Application Firewall (WAF) rules to detect and block suspicious shortcode attribute inputs that may contain script tags or event handlers. 4. Employ Content Security Policy (CSP) headers to limit the execution of inline scripts and reduce the impact of XSS. 5. Monitor website content for unauthorized script injections or unexpected changes in pages using the gmap shortcode. 6. Educate content contributors about safe input practices and the risks of injecting untrusted content. 7. If possible, temporarily disable or remove the GmapsMania plugin until a security patch is released. 8. Keep WordPress core and all plugins updated regularly and subscribe to vendor security advisories for timely patching. 9. Use security plugins that can scan for XSS vulnerabilities and malicious code injections. 10. Implement multi-factor authentication for administrative accounts to mitigate the risk of credential theft via XSS.
Affected Countries
Technical Details
- Data Version
- 5.1
- Assigner Short Name
- Wordfence
- Date Reserved
- 2025-04-30T08:54:32.422Z
- Cisa Enriched
- true
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 682d9838c4522896dcbebec1
Added to database: 5/21/2025, 9:09:12 AM
Last enriched: 6/26/2025, 1:31:29 AM
Last updated: 1/7/2026, 4:22:52 AM
Views: 40
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.
Related Threats
CVE-2026-20893: Origin validation error in Fujitsu Client Computing Limited Fujitsu Security Solution AuthConductor Client Basic V2
HighCVE-2025-14891: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in ivole Customer Reviews for WooCommerce
MediumCVE-2025-14059: CWE-73 External Control of File Name or Path in roxnor EmailKit – Email Customizer for WooCommerce & WP
MediumCVE-2025-12648: CWE-552 Files or Directories Accessible to External Parties in cbutlerjr WP-Members Membership Plugin
MediumCVE-2025-14631: CWE-476 NULL Pointer Dereference in TP-Link Systems Inc. Archer BE400
HighActions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.