---
id: CVE-2025-12021
title: >-
  The WP-OAuth plugin for WordPress is vulnerable to Reflected Cross-Site
  Scripting via the 'error_description' parameter in all versions up to, and
  including, 0.4.1 due to insufficient input sanitization and output escaping
summary: >-
  The WP-OAuth plugin for WordPress is vulnerable to Reflected Cross-Site
  Scripting via the 'error_description' parameter in all versions up to, and
  including, 0.4.1 due to insufficient input sanitization and output escaping.
  This makes it…
severity: medium
cvss: 6.1
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'
cwe:
  - CWE-79
published: '2025-11-11'
updated: '2026-10-07'
sourceUpdated: '2026-10-07T21:10:00.200'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-12021'
references:
  - url: >-
      https://plugins.trac.wordpress.org/browser/wp-oauth/tags/0.4.1/login-google.php#L42
    label: security@wordfence.com
  - url: >-
      https://plugins.trac.wordpress.org/browser/wp-oauth/tags/0.4.1/wp-oauth.php#L430
    label: security@wordfence.com
  - url: >-
      https://plugins.trac.wordpress.org/browser/wp-oauth/tags/0.4.1/wp-oauth.php#L545
    label: security@wordfence.com
  - url: >-
      https://www.wordfence.com/threat-intel/vulnerabilities/id/72702870-8a1a-446b-8f9f-bd435e9257f2?source=cve
    label: security@wordfence.com
tags:
  - nvd
epss: 0.00323
epssPercentile: 0.23325
ingestedAt: '2026-10-07T21:54:15.011Z'
---

## Overview

The WP-OAuth plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via the 'error_description' parameter in all versions up to, and including, 0.4.1 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that execute if they can successfully trick a user into performing an action such as clicking on a link.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
