Register for the AI for Security Summit: Join Figma, Perplexity & Wiz

CVE-2026-1298
WordPress vulnerability analysis and mitigation

Overview

CVE-2026-1298 is a Missing Authorization vulnerability in the Easy Replace Image plugin for WordPress, affecting all versions up to and including 3.5.2. The flaw allows authenticated attackers with Contributor-level access or above to replace arbitrary image attachments on a site with images sourced from external URLs, potentially enabling site defacement, phishing, or content manipulation. It was published on January 28, 2026, and was discovered and reported by Wordfence. The vulnerability carries a CVSS v3.1 base score of 4.3 (Medium) (Wordfence, Red Hat CVE).

Technical details

The root cause is a missing capability check (CWE-862: Missing Authorization) on the image_replacement_from_url function, which is registered as a handler for the eri_from_url WordPress AJAX action. Because no privilege verification is performed before executing the image replacement logic, any authenticated user — including those with only Contributor-level access — can invoke this AJAX endpoint and supply an external URL to overwrite any existing image attachment on the site. The vulnerable code is visible in the plugin source at line 961 of easy-replace-image.php (Wordfence, WordPress Trac).

Impact

Successful exploitation allows an authenticated attacker to silently replace any image attachment on the WordPress site with an image hosted at an attacker-controlled external URL. This can result in site defacement, embedding of phishing imagery, or manipulation of content displayed to end users. Confidentiality and availability are not directly impacted, but integrity of site content is compromised, and the attack could be leveraged to conduct social engineering or phishing campaigns against site visitors (Wordfence).

Exploitability

No public proof-of-concept exploit code or evidence of active in-the-wild exploitation has been reported as of the time of writing. The EPSS score is approximately 0.028% (0.000280), indicating a very low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires at minimum a Contributor-level WordPress account, which limits the attack surface compared to unauthenticated vulnerabilities (Wordfence, Red Hat CVE).

Exploitation steps

  1. Obtain Contributor Access: Register or compromise a WordPress account with at least Contributor-level privileges on the target site running Easy Replace Image ≤ 3.5.2.
  2. Identify the AJAX Endpoint: Locate the WordPress AJAX handler by targeting the standard WordPress AJAX URL, typically https://target-site.com/wp-admin/admin-ajax.php.
  3. Craft the Malicious Request: Send an authenticated POST request to the AJAX endpoint with the action parameter set to eri_from_url, specifying the target image attachment ID and the external URL of the replacement image (e.g., action=eri_from_url&attachment_id=<ID>&url=https://attacker.com/malicious.jpg).
  4. Trigger Image Replacement: The server processes the request without capability verification, fetching the attacker-supplied image and overwriting the specified attachment on the site.
  5. Achieve Objective: The replaced image is now served to all site visitors, enabling defacement, phishing content delivery, or further social engineering (Wordfence, WordPress Trac).

Indicators of compromise

  • Network: Outbound HTTP/HTTPS requests from the WordPress server to unexpected external domains fetching image files; POST requests to /wp-admin/admin-ajax.php with action=eri_from_url from low-privileged user accounts.
  • Logs: WordPress access logs showing repeated POST requests to admin-ajax.php with the eri_from_url action parameter, especially from Contributor-level accounts; server-side HTTP requests to external image URLs logged in web server or PHP error logs.
  • File System: Unexpected changes to image files in the WordPress uploads directory (/wp-content/uploads/) with modification timestamps inconsistent with normal editorial activity; image files replaced with content from external domains.
  • Database: WordPress wp_posts or wp_postmeta records for image attachments showing recently modified guid or metadata fields pointing to external URLs.

Mitigation and workarounds

Users should update the Easy Replace Image plugin to a version beyond 3.5.2 that includes the capability check fix, as reflected in the plugin changeset (WordPress Trac Changeset). If an immediate update is not possible, site administrators should consider deactivating the plugin until a patched version is applied. Additionally, restricting Contributor-level user registrations and auditing existing low-privileged accounts can reduce the attack surface (Wordfence).

Community reactions

Wordfence included CVE-2026-1298 in their weekly WordPress vulnerability report for the period of January 26 – February 1, 2026, as part of routine disclosure coverage (Wordfence Blog). The vulnerability received standard aggregation coverage from security databases including INCIBE-CERT and CCN-CERT, indicating routine industry awareness without significant elevated concern. No notable researcher commentary or viral social media discussion has been identified beyond automated CVE tracking posts.

Additional resources


SourceThis report was generated using AI

Related WordPress vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-88788MEDIUM6.8
  • text-styler
NoNoSep 19, 2026
CVE-2026-9858MEDIUM4.3
  • wc-partial-shipment
NoYesSep 19, 2026
CVE-2026-9766MEDIUM4.3
  • empik-for-woocommerce
NoYesSep 19, 2026
CVE-2026-9613MEDIUM4.3
  • datalogics
NoYesSep 19, 2026
CVE-2026-87848LOW3.7
  • mpcx-lightbox
NoNoSep 19, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management