Skip to main content
Vulnerability Database/CVE-2025-28907

CVE-2025-28907: WP Last Modified Stored XSS Vulnerability

CVE-2025-28907 is a stored cross-site scripting vulnerability in the WP Last Modified WordPress plugin that enables attackers to inject malicious scripts. This article covers the technical details, affected versions, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2025-28907 Overview

CVE-2025-28907 is a stored Cross-Site Scripting (XSS) vulnerability in the Rahul Arora WP Last Modified WordPress plugin. The flaw affects all versions up to and including 0.1. The plugin fails to properly neutralize user-supplied input during web page generation, allowing an authenticated attacker with high privileges to inject persistent JavaScript payloads. The injected script executes in the browser context of any user viewing the affected page, after user interaction. The issue is tracked under CWE-79 and was published to the National Vulnerability Database on March 11, 2025.

Critical Impact

Stored JavaScript payloads execute in the context of site visitors and administrators, enabling session theft, administrative action forgery, and content manipulation across the WordPress site.

Affected Products

  • Rahul Arora WP Last Modified plugin for WordPress
  • All versions from n/a through 0.1
  • WordPress sites with the vulnerable plugin activated

Discovery Timeline

  • 2025-03-11 - CVE CVE-2025-28907 published to NVD
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2025-28907

Vulnerability Analysis

The WP Last Modified plugin accepts input that is later rendered into generated web pages without adequate output encoding or input sanitization. Because the injected payload is stored server-side, it persists across sessions and triggers every time a user loads the affected page. Exploitation requires a high-privileged authenticated user to submit the payload, and a victim must then interact with the rendered content. The scope changes between the vulnerable component and the victim browser, meaning the injected script can affect data and users outside the plugin's own trust boundary.

Root Cause

The root cause is improper neutralization of input during web page generation, classified as CWE-79. The plugin does not apply WordPress sanitization functions such as sanitize_text_field() on input or esc_html() / esc_attr() on output. As a result, HTML and script tags submitted through plugin fields are stored verbatim and rendered inline in the generated DOM.

Attack Vector

An attacker with administrative or editor-level access submits a crafted payload containing JavaScript into a plugin-controlled field. The malicious content is persisted in the WordPress database. When another authenticated user or site visitor loads the affected page, the browser parses and executes the stored script. Typical outcomes include session cookie exfiltration, forced administrative actions through authenticated requests, and defacement of rendered pages. See the Patchstack advisory for additional context.

No verified public exploit code is available for this issue, so a prose description is provided in place of a code example.

Detection Methods for CVE-2025-28907

Indicators of Compromise

  • Unexpected <script>, <iframe>, or event-handler attributes stored in WordPress wp_options or wp_postmeta entries associated with the WP Last Modified plugin.
  • Outbound HTTP requests from administrator browsers to unknown domains shortly after loading pages that render plugin output.
  • New or modified administrator accounts that correlate with sessions where plugin-rendered pages were loaded.

Detection Strategies

  • Query the WordPress database for plugin-related rows containing HTML markup, script tags, or encoded JavaScript such as javascript: and onerror=.
  • Enable WordPress audit logging to capture setting and metadata changes made by privileged users.
  • Review web server access logs for POST requests to plugin admin endpoints followed by GET traffic that triggers the stored payload.

Monitoring Recommendations

  • Deploy a Content Security Policy (CSP) with reporting to surface inline script execution violations on WordPress pages.
  • Alert on anomalous JavaScript activity originating from administrator sessions, including unexpected XMLHttpRequest or fetch() calls.
  • Track plugin inventory and version drift across WordPress deployments to identify hosts still running WP Last Modified 0.1 or earlier.

How to Mitigate CVE-2025-28907

Immediate Actions Required

  • Deactivate and remove the WP Last Modified plugin from any WordPress site where it is installed, since no fixed version is listed.
  • Audit plugin-stored configuration fields and post metadata for injected scripts and purge any malicious content.
  • Rotate credentials and invalidate active sessions for all administrator and editor accounts that accessed affected pages.

Patch Information

No vendor patch has been published in the referenced advisories. The vulnerability affects versions through 0.1, and the Patchstack advisory does not list a corrected release. Site owners should treat removal of the plugin as the primary remediation until the maintainer issues a sanitized build.

Workarounds

  • Restrict administrative and editor privileges to a minimum set of trusted accounts to reduce the pool of users who can inject payloads.
  • Deploy a Web Application Firewall (WAF) rule set that blocks script tags and common XSS vectors in requests to the WordPress admin interface.
  • Enforce a strict Content Security Policy that disallows inline scripts and limits script sources to known-good origins.
bash
# Configuration example: remove the vulnerable plugin via WP-CLI
wp plugin deactivate wp-last-modified
wp plugin delete wp-last-modified
wp user session destroy --all

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.