s2Member <= 260913 - Authenticated (Contributor+) Local File Inclusion via 'template' Shortcode Attribute
- ID
- WPSEC-2026-0218
- Plugin
- s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions (s2member)
- Affected
- all versions before 260917
- Remediation
- Update to 260917 or later.
- CVSS 3.1
- CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- Weakness
- CWE-98
- Usage
- Plugin Low · Affected versions Low among sites WPSec scans, 2026-10-22
- Attack surface
- s2Member on WPSec AttackSurface
- Fix released
- Published
Description
The s2Member plugin for WordPress is vulnerable to Local File Inclusion via the 'template' attribute of the s2Member Pro shortcodes (Pro-Forms, s2Member-List and s2Member-List-Search-Box) in all versions up to, and including, 260913. The Pro Shortcode Templates Whitelist was not enforced: templates the administrator had not approved were only reported and were still used. This makes it possible for authenticated attackers, with Contributor-level access and above, to have local files the administrator did not approve, such as other files inside the wp-content directory, loaded and processed as the shortcode's template, which can expose their contents or run PHP code they contain. Only sites with the s2Member Pro add-on installed are affected.
References
- https://wpsec.com/vuln/WPSEC-2026-0218/
- https://plugins.svn.wordpress.org/s2member/tags/260917/
- https://wordpress.org/plugins/s2member/
Published by WPSec. Provided as is, without warranty. Corrections: contact us.
This advisory as JSON or Markdown · All advisories: JSON, RSS