Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2025-5122: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in goiblas Map Block Leaflet

0
Medium
VulnerabilityCVE-2025-5122cvecve-2025-5122cwe-79
Published: Thu May 29 2025 (05/29/2025, 08:22:02 UTC)
Source: CVE Database V5
Vendor/Project: goiblas
Product: Map Block Leaflet

Description

The Map Block Leaflet plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the ‘url’ parameter in all versions up to, and including, 3.2.1 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

AILast updated: 02/27/2026, 15:05:26 UTC

Technical Analysis

CVE-2025-5122 is a stored Cross-Site Scripting (XSS) vulnerability identified in the Map Block Leaflet plugin for WordPress, affecting all versions up to and including 3.2.1. The root cause is insufficient input sanitization and output escaping of the ‘url’ parameter within the plugin’s code, which allows authenticated users with Contributor-level access or higher to inject arbitrary JavaScript code into pages. This malicious code is stored persistently and executed in the context of any user who visits the infected page, enabling attacks such as session hijacking, privilege escalation, defacement, or redirection to malicious sites. The vulnerability is classified under CWE-79, indicating improper neutralization of input during web page generation. The CVSS v3.1 base score is 6.4, reflecting a medium severity with network attack vector, low attack complexity, requiring privileges but no user interaction, and impacting confidentiality and integrity with a scope change. There are no known exploits in the wild at the time of publication, and no official patches have been released yet. The vulnerability was reserved and published in May 2025 by Wordfence. The plugin is widely used in WordPress environments to embed interactive maps, making this vulnerability relevant to many websites that rely on this functionality. Attackers with Contributor or higher roles can leverage this flaw to compromise site visitors or administrators by injecting persistent malicious scripts.

Potential Impact

The impact of CVE-2025-5122 is significant for organizations using the Map Block Leaflet plugin on WordPress sites. Successful exploitation can lead to the execution of arbitrary JavaScript in the context of the victim’s browser, potentially resulting in session hijacking, theft of sensitive information, unauthorized actions performed on behalf of users, or defacement of web content. Since the vulnerability requires authenticated access at the Contributor level or above, organizations with multiple user roles and contributors are at higher risk. The scope change in the CVSS vector indicates that the vulnerability can affect resources beyond the initially vulnerable component, potentially compromising site-wide confidentiality and integrity. This can undermine user trust, lead to data breaches, and cause reputational damage. Although no known exploits are reported yet, the medium severity and ease of exploitation by authenticated users make it a credible threat, especially in environments with less stringent user access controls. The vulnerability does not affect availability directly but can disrupt normal operations through malicious script execution and potential follow-on attacks.

Mitigation Recommendations

To mitigate CVE-2025-5122, organizations should implement the following specific measures: 1) Immediately review and restrict user roles and permissions, limiting Contributor-level or higher access to trusted users only. 2) Apply strict input validation and output encoding on all user-supplied data, especially the ‘url’ parameter in the Map Block Leaflet plugin, if custom modifications are possible. 3) Monitor WordPress sites for unusual script injections or unexpected changes in pages containing map blocks. 4) Employ Web Application Firewalls (WAFs) with rules designed to detect and block XSS payloads targeting the ‘url’ parameter. 5) Educate site administrators and contributors about the risks of XSS and safe content practices. 6) Regularly back up website data to enable recovery if compromise occurs. 7) Stay alert for official patches or updates from the plugin vendor and apply them promptly once available. 8) Consider temporarily disabling or replacing the Map Block Leaflet plugin with alternative mapping solutions until a fix is released. These steps go beyond generic advice by focusing on access control, monitoring, and proactive defense tailored to this specific vulnerability.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.1
Assigner Short Name
Wordfence
Date Reserved
2025-05-23T17:18:43.336Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 68381aae182aa0cae273c2cb

Added to database: 5/29/2025, 8:28:30 AM

Last enriched: 2/27/2026, 3:05:26 PM

Last updated: 3/26/2026, 6:59:47 AM

Views: 54

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses