CVE-2024-3974 BuddyPress <= 12.4.0 - Authenticated (Subscriber+) Stored Cross-Site Scripting
Authenticated attackers can inject arbitrary scripts via the user_name parameter, leading to script execution in victim browsers.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2024-3974?
CVE-2024-3974 is a medium-severity cross-site scripting vulnerability in BuddyPress, published on 9 May 2024. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
The BuddyPress plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the ‘user_name’ parameter in versions up to, and including, 12.4.0 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with subscriber-level permissions and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
Weakness: CWE-79
Which versions are affected by CVE-2024-3974?
It affects 1 product.
Products include Buddypress Buddypress.
How do I fix CVE-2024-3974?
No fix has been published for CVE-2024-3974 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2024-3974 being exploited?
There is no known exploitation of CVE-2024-3974 in the wild and no public exploit code.
Other vulnerabilities in BuddyPress
- CVE-2024-10011 BuddyPress <= 14.1.0 - Authenticated (Subscriber+) Directory Traversal
- CVE-2021-21389 BuddyPress privilege escalation via REST API
- CVE-2020-5244 Private data exposure via REST API in BuddyPress
- CVE-2012-2109 SQL injection in n/a
- CVE-2025-23798 WordPress Mass Messaging in BuddyPress Plugin <= 2.2.1 - Reflected Cross Site Scripting (XSS) vulnerability
Sources
Also known as GHSA-6xcx-78g4-qrhj.