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

Medium 6.5 CWE-22Fixed in 4.5.2
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

Published by WPSec. Provided as is, without warranty. Corrections: contact us.

This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS

License: CC BY 4.0