CVE-2019-9978 — WordPress Social Warfare Plugin Cross-Site Scripting (XSS) Vulnerability

CVE-2019-9978

WordPress Social Warfare Plugin — Stored XSS via swp_url Parameter, Mass-Exploited Within a Day of Disclosure

What is Social Warfare?

Social Warfare is a WordPress plugin that adds social-media sharing buttons and share-count displays to posts and pages, used on a large number of WordPress sites for content marketing and engagement.

Overview

CVE-2019-9978 is a cross-site scripting (XSS) vulnerability (CWE-79) in the Social Warfare and Social Warfare Pro plugins, affecting versions up to 3.5.2. It became notorious in security circles because it was mass-exploited in the wild within roughly a day of being publicly disclosed in March 2019 — one of the fastest real-world exploitation turnarounds of a WordPress plugin flaw at that time.

Technical Details

The vulnerability stems from insufficient sanitization of the swp_url parameter used by the plugin's social-sharing functionality. By submitting a specially crafted swp_url value, an attacker could inject malicious JavaScript that executes in the context of visitors' or administrators' browsers; in the real-world attacks, this was leveraged to redirect site visitors to attacker-controlled domains and inject further malicious scripts into compromised pages.

Discovery

Wordfence's Threat Intelligence team publicly documented this vulnerability and its mass exploitation in March 2019, after observing large numbers of compromised WordPress sites serving malicious pop-up redirects shortly after the plugin flaw became public.

Exploitation Context

Within about a day of disclosure, attackers were mass-scanning for and exploiting vulnerable Social Warfare installations, injecting scripts that redirected site visitors to scam and malware-delivery pages across thousands of WordPress sites. CISA added this CVE to the KEV catalog in November 2021, reflecting this well-documented history of rapid, widespread exploitation.

Remediation

  1. Update Social Warfare (and Social Warfare Pro) to version 3.5.3 or later immediately.
  2. If running an affected version, check site content and database for injected redirect scripts or unfamiliar JavaScript.
  3. Review WordPress admin accounts and file integrity for signs of follow-on compromise.
  4. Use a WordPress security plugin or web application firewall to catch known exploitation patterns for this and similar plugin vulnerabilities.
  5. Regularly audit installed plugins for updates and remove any that are no longer maintained.

Key Details

PropertyValue
CVE ID CVE-2019-9978
Vendor / Product WordPress — Social Warfare Plugin
NVD Published2019-03-24
NVD Last Modified2025-11-07
CVSS 3.1 Score6.1
CVSS 3.1 VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
SeverityMEDIUM
CWE CWE-79 find similar ↗
CISA KEV Added2021-11-03
CISA KEV Deadline2022-05-03
Known Ransomware Use No

CVSS 3.1 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

Required Action

CISA BOD 22-01 Deadline: 2022-05-03. Apply updates per vendor instructions.

Timeline

DateEvent
2019-03-21Fixed in Social Warfare 3.5.3 after in-the-wild exploitation was observed
2021-11-03Added to CISA Known Exploited Vulnerabilities catalog
2022-05-03CISA BOD 22-01 remediation deadline