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
- Update Social Warfare (and Social Warfare Pro) to version 3.5.3 or later immediately.
- If running an affected version, check site content and database for injected redirect scripts or unfamiliar JavaScript.
- Review WordPress admin accounts and file integrity for signs of follow-on compromise.
- Use a WordPress security plugin or web application firewall to catch known exploitation patterns for this and similar plugin vulnerabilities.
- Regularly audit installed plugins for updates and remove any that are no longer maintained.
Key Details
| Property | Value |
|---|---|
| CVE ID | CVE-2019-9978 |
| Vendor / Product | WordPress — Social Warfare Plugin |
| NVD Published | 2019-03-24 |
| NVD Last Modified | 2025-11-07 |
| CVSS 3.1 Score | 6.1 |
| CVSS 3.1 Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| Severity | MEDIUM |
| CWE | CWE-79 find similar ↗ |
| CISA KEV Added | 2021-11-03 |
| CISA KEV Deadline | 2022-05-03 |
| Known Ransomware Use | No |
CVSS 3.1 Breakdown
Required Action
Timeline
| Date | Event |
|---|---|
| 2019-03-21 | Fixed in Social Warfare 3.5.3 after in-the-wild exploitation was observed |
| 2021-11-03 | Added to CISA Known Exploited Vulnerabilities catalog |
| 2022-05-03 | CISA BOD 22-01 remediation deadline |
References
| Resource | Type |
|---|---|
| NVD — CVE-2019-9978 | Vulnerability Database |
| CISA KEV Catalog Entry | US Government |
| Wordfence — Zero-Day Vulnerability in Social Warfare Plugin Exploited in the Wild | Security Research |