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

CVE-2025-13308: WordPress Application Passwords XSS Flaw

CVE-2025-13308 is a reflected cross-site scripting vulnerability in the WordPress Application Passwords plugin affecting versions up to 0.1.3. Attackers can inject malicious scripts via the reject_url parameter. This article covers technical details, affected versions, impact assessment, and mitigation strategies.

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-13308 Overview

The Application Passwords plugin for WordPress contains a Reflected Cross-Site Scripting (XSS) vulnerability in the reject_url parameter. The flaw affects all versions up to and including 0.1.3. Insufficient input sanitization and output escaping allow javascript: URI schemes to pass through unchecked. An attacker can craft a malicious link that, when visited by a victim who then clicks the "No, I do not approve of this connection" button, triggers arbitrary script execution in the victim's browser session. The issue is tracked as CWE-79 and was reported in the Wordfence Vulnerability Report.

Critical Impact

Successful exploitation enables unauthenticated attackers to execute arbitrary JavaScript in a victim's browser, potentially leading to session hijacking, credential theft, or unauthorized administrative actions.

Affected Products

  • WordPress Application Passwords plugin versions 0.1.3 and earlier
  • WordPress sites using the plugin for application-level authentication
  • Any site exposing the plugin's authorization UI to untrusted users

Discovery Timeline

  • 2025-12-06 - CVE-2025-13308 published to the National Vulnerability Database (NVD)
  • 2026-10-15 - Last updated in NVD database

Technical Details for CVE-2025-13308

Vulnerability Analysis

The Application Passwords plugin implements an authorization flow that prompts a WordPress user to approve or reject an application's request for credentials. The rejection flow accepts a reject_url query parameter and uses it as the destination when the user declines. Because the plugin fails to validate the URI scheme or escape the value when rendering it into client-side code, an attacker can supply a javascript: URI that executes when the user clicks the rejection button.

The vulnerable logic lives in the plugin source referenced by auth-app.js (line 61) and class.application-passwords.php (lines 418 and 432). These locations handle the reject_url value without applying esc_url() with an allowed-protocols list, nor do they strip JavaScript pseudo-protocols before use.

Exploitation requires user interaction. The attacker must trick an authenticated WordPress user into following a crafted authorization link and clicking the rejection control. This limits automated mass exploitation but remains viable through targeted phishing.

Root Cause

The root cause is missing scheme validation and output escaping on the reject_url parameter. WordPress provides esc_url() and wp_allowed_protocols() to filter dangerous schemes such as javascript:, data:, and vbscript:. The plugin bypasses these controls, allowing the attacker-supplied value to reach the DOM as an executable URI.

Attack Vector

An attacker crafts an authorization URL for the Application Passwords flow with a reject_url value set to a javascript: payload. The attacker delivers the link to a logged-in WordPress user through phishing, social media, or an attacker-controlled site. When the victim loads the page and clicks the rejection button, the browser evaluates the attacker's JavaScript in the context of the WordPress origin, inheriting the victim's session cookies and privileges.

The vulnerability manifests in the rejection URL handling path. See the Wordfence Vulnerability Report and the linked plugin source files for technical details.

Detection Methods for CVE-2025-13308

Indicators of Compromise

  • Web server access logs containing requests to the Application Passwords authorization endpoint with a reject_url parameter that includes javascript:, data:, or URL-encoded variants such as javascript%3A.
  • Referrer headers pointing to untrusted external domains preceding authorization requests.
  • Unexpected creation of application passwords or administrative actions shortly after a user visits a crafted authorization link.

Detection Strategies

  • Inspect HTTP request logs for authorization URLs where reject_url fails to begin with http:// or https://.
  • Deploy a Web Application Firewall (WAF) rule that blocks or flags reject_url values containing non-HTTP schemes.
  • Review browser console telemetry and Content Security Policy (CSP) violation reports for inline script execution on the Application Passwords flow.

Monitoring Recommendations

  • Alert on anomalous application password creation events in the WordPress audit log.
  • Monitor outbound requests from WordPress admin sessions to attacker-controlled domains following authorization flows.
  • Track plugin version inventory across managed WordPress sites to identify instances still running 0.1.3 or earlier.

How to Mitigate CVE-2025-13308

Immediate Actions Required

  • Disable the Application Passwords plugin on any site running version 0.1.3 or earlier until a patched release is applied.
  • Rotate existing application passwords and audit recently created credentials for signs of abuse.
  • Educate administrators and editors to avoid clicking authorization links received from untrusted sources.

Patch Information

At the time of publication, no fixed version is listed in the NVD entry for CVE-2025-13308. Monitor the plugin repository on WordPress.org and the Wordfence advisory for an updated release that validates the reject_url scheme and escapes the value before rendering.

Workarounds

  • Deploy a WAF rule that rejects authorization requests whose reject_url parameter does not begin with http:// or https://.
  • Enforce a strict Content Security Policy that disallows javascript: URIs and inline script execution on WordPress admin pages.
  • Restrict access to the WordPress admin interface by IP allowlist or VPN to reduce the phishing attack surface.
bash
# Example ModSecurity rule to block javascript: in reject_url
SecRule ARGS:reject_url "@rx (?i)(javascript|data|vbscript):" \
    "id:1013308,phase:2,deny,status:403,\
    msg:'CVE-2025-13308: Blocked javascript: URI in reject_url'"

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.