Monitor vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
6.4

PrivateContent Free plugin for WordPress allows attackers to inject malicious scripts

CVE-2026-4025
Summary

An attacker with Contributor-level access and above can inject malicious scripts into the PrivateContent Free plugin for WordPress, which can execute when a user accesses the affected page. This is due to a security flaw in the plugin's handling of the 'align' attribute in the [pc-login-form] shortcode. To fix this, update the plugin to version 1.2.1 or higher.

Original title
The PrivateContent Free plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'align' shortcode attribute in the [pc-login-form] shortcode in all versions up to, and including, ...
Original description
The PrivateContent Free plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'align' shortcode attribute in the [pc-login-form] shortcode in all versions up to, and including, 1.2.0. This is due to insufficient input sanitization and output escaping on the 'align' attribute. Specifically, the attribute value flows from the shortcode through pc_login_form() to pc_static::form_align(), where it is directly concatenated into an HTML class attribute without esc_attr() or any escaping. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
nvd CVSS3.1 6.4
Vulnerability type
CWE-79 Cross-site Scripting (XSS)
Published: 8 Apr 2026 · Updated: 9 Apr 2026 · First seen: 8 Apr 2026