# 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`), https://wordpress.org/plugins/wp-social-reviews/
- **Affected versions:** from 3.15.0 before 4.5.2
- **Fixed in:** 4.5.2 (Update to 4.5.2 or later.)
- **Severity:** Medium 6.5 (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H)
- **Weakness:** CWE-22
- **Usage among sites WPSec scans:** plugin Medium, affected versions Medium (as of 2026-11-28)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/wp-social-reviews
- **Fix released:** 2026-11-27
- **Published:** 2026-11-28
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4191/

## 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/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-4191/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
