Application Security

Security Flaw in WP-Members Plugin Leads to Script Injection

A cross-site scripting vulnerability in the WP-Members Membership plugin could allow attackers to inject scripts into user profile pages.

A cross-site scripting vulnerability in the WP-Members Membership plugin could allow attackers to inject scripts into user profile pages.

Attackers could exploit a high-severity cross-site Scripting (XSS) vulnerability in the WP-Members Membership WordPress plugin to inject arbitrary scripts into web pages, according to an advisory from security firm Defiant.

The bug, tracked as CVE-2024-1852, is the result of insufficient input sanitization and output escaping, allowing an attacker to create accounts that have a malicious script stored as the value of the user’s IP address.

An attacker could use WP-Members Membership’s user registration functionality to fill and submit a registration form, then intercept the registration request using a proxy, and modify it to contain an X-Forwarded-For header with a malicious payload enclosed in script tags, Defiant’s Wordfence research team said.

The issue is that, if an X-Forwarded-For header is present in the request, the plugin uses its value to store the IP address of any user relying on the registration form.

“Due to the fact that HTTP headers can be manipulated, and the input was not sanitized, a user could supply any value including a malicious web script that will be stored as the user’s IP,” according to the alert.

The malicious script is stored in the user’s profile and, if an administrator edits or views the user account, the payload will be included in the generated source code when the page loads.

Advertisement. Scroll to continue reading.

“It is important to understand that this malicious code will be executed in the context of an administrator’s browser session and can be used to create malicious user accounts, redirect site visitors to other malicious sites and perform other malicious actions,” Wordfence added.

WP-Members Membership version 3.4.9.3 patches the vulnerability, after a partial fix was included in version 3.4.9.2. Users are advised to update their installations as soon as possible.

With more than 60,000 active installations, WP-Members is a user membership plugin that allows site owners to easily set up and manage user registration, logins, and profiles, set restrictions, and more.

Related: 39,000 Websites Infected in ‘Sign1’ Malware Campaign

Related: Discontinued Plugins Expose WordPress Sites to Takeover

Related: Ultimate Member Plugin Flaw Exposes 100,000 WordPress Sites

Related Content

Malware & Threats

Over 22.6 million exposed instances are potentially affected by the critical PHP flaws that have been targeted for over a week.

Vulnerabilities

Threat actors are attempting to exploit a high-severity unauthenticated race condition leading to remote code execution.

Supply Chain Security

Hackers injected malware into Rank Math PRO version 3.0.123 packages distributed between October 15 and October 16.

Vulnerabilities

The vulnerability tracked as CVE-2026-85097 can allow threat actors to take control of the targeted WordPress websites.

Vulnerabilities

Tracked as CVE-2026-87902, the path traversal flaw allows remote, unauthenticated attackers to execute arbitrary code.

Vulnerabilities

The bug lets attackers automatically install and preview themes and could lead to remote code execution.

Malware & Threats

Hackers used a compromised API key to deploy a Cloudflare worker that injected malicious scripts.

Vulnerabilities

Vulnerabilities in The Events Calendar can provide attackers with remote code execution capabilities.

Copyright © 2026 SecurityWeek ®, a Wired Business Media Publication. All Rights Reserved.

Exit mobile version