CVE-2021-35470: Stored XSS in WordPress Inline Related Posts
CVE-2021-35470 is a multiple authenticated stored cross-site scripting vulnerability in the WordPress plugin Inline Related Posts affecting versions up to and including 3.0.4. Multiple plugin parameters can be used by an authenticated administrator to inject malicious JavaScript that is stored by the application. The payload is subsequently executed in the browsers of users who view a post containing the affected inline references.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows an authenticated administrator to persistently inject client-side script into content rendered to other users. When affected posts are viewed, the injected JavaScript executes in the context of the site, enabling actions such as session theft, unauthorized actions on behalf of victims, content manipulation, and other browser-based compromise affecting users who access the malicious post.
Mitigation
If you can’t patch tonight, do this now.
If immediate patching is not possible, restrict administrator access to trusted users only, review and remove untrusted inline reference content and plugin parameter values, and consider temporarily disabling the Inline Related Posts plugin until an updated version can be deployed. Additional defensive measures such as enforcing strong content security policies may reduce impact but do not replace remediation.
Remediation
Patch, then assume compromise.
Upgrade the WordPress plugin Inline Related Posts to version 3.0.5 or a later stable release that addresses the stored cross-site scripting flaws.
Exploits
No public exploits tracked yet. Mallory keeps watching.
References
Frequently asked questions
- Is CVE-2021-35470 exploited in the wild?
- As of Aug 20, 2026, Mallory has no reports of CVE-2021-35470 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2021-35470?
- As of Aug 20, 2026, Mallory has found no public exploit for CVE-2021-35470.
- Is there a patch for CVE-2021-35470?
- Upgrade the WordPress plugin Inline Related Posts to version 3.0.5 or a later stable release that addresses the stored cross-site scripting flaws.
Recent activity
1 sources tracked across advisories and community write-ups. News coverage will land here when it surfaces.
No news coverage yet. Advisories and community discussion only.