WP Social Ninja – Embed Social Feeds, User Reviews & Chat Widgets <= 4.5.1 - Authenticated (Administrator+) Path Traversal to Arbitrary Directory Deletion via 'sourceId' and 'platform' Parameters
- ID
- WPSEC-2026-4191
- Plugin
- WP Social Ninja – Embed Social Feeds, User Reviews & Chat Widgets (wp-social-reviews)
- Affected
- from 3.15.0 before 4.5.2
- Remediation
- Update to 4.5.2 or later.
- CVSS 3.1
- CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H
- Weakness
- CWE-22
- Usage
- Plugin Medium · Affected versions Medium among sites WPSec scans, 2026-11-28
- Attack surface
- WP Social Ninja – Embed Social Feeds, User Reviews & Chat Widgets on WPSec AttackSurface
- Fix released
- Published
Description
The WP Social Ninja plugin for WordPress is vulnerable to Path Traversal in all versions up to, and including, 4.5.1 via the 'sourceId' and 'platform' parameters of the review platform configuration delete REST endpoint (DELETE platforms/reviews/configs). The values are passed only through sanitize_text_field(), then joined into an upload directory path that is recursively deleted, without rejecting '../' segments or checking that the path stays inside the plugin's upload folder. This makes it possible for authenticated attackers with administrator-level access, or a role granted the plugin's 'Manage Platforms' permission, to delete arbitrary directories and their contents on the server. This can break the site or cause data loss.
References
- https://wpsec.com/vuln/WPSEC-2026-4191/
- https://plugins.svn.wordpress.org/wp-social-reviews/tags/4.5.2/
- https://wordpress.org/plugins/wp-social-reviews/
Published by WPSec. Provided as is, without warranty. Corrections: contact us.
This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS