Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-3617: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in swergroup Paypal Shortcodes

0
Medium
VulnerabilityCVE-2026-3617cvecve-2026-3617cwe-79
Published: Sat Mar 21 2026 (03/21/2026, 03:26:58 UTC)
Source: CVE Database V5
Vendor/Project: swergroup
Product: Paypal Shortcodes

Description

The Paypal Shortcode plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'amount' and 'name' shortcode attributes in all versions up to, and including, 0.3. This is due to insufficient input sanitization and output escaping on user-supplied shortcode attributes. The swer_paypal_shortcode() function extracts shortcode attributes using extract() and shortcode_atts() at line 89, then directly concatenates the $name and $amount values into HTML input element value attributes at lines 105-106 without applying esc_attr() or any other escaping function. 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.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 03/21/2026, 04:31:55 UTC

Technical Analysis

CVE-2026-3617 identifies a stored Cross-Site Scripting (XSS) vulnerability in the swergroup Paypal Shortcodes plugin for WordPress, present in all versions up to and including 0.3. The vulnerability stems from the swer_paypal_shortcode() function, which processes shortcode attributes 'amount' and 'name' by extracting them via extract() and shortcode_atts() functions. These attribute values are then directly concatenated into HTML input element value attributes without any escaping functions such as esc_attr(), leading to improper neutralization of input during web page generation (CWE-79). This allows an authenticated attacker with Contributor-level or higher privileges to inject arbitrary JavaScript code into pages or posts containing the shortcode. When other users visit these pages, the malicious script executes in their browsers, potentially leading to session hijacking, defacement, or other client-side attacks. The vulnerability is exploitable remotely over the network without user interaction but requires authentication with low privileges. The CVSS 3.1 base score is 6.4, indicating medium severity, with impact on confidentiality and integrity but no impact on availability. No patches or known exploits have been reported at the time of publication. The vulnerability highlights the importance of proper input sanitization and output escaping in WordPress plugin development, especially when handling user-supplied shortcode attributes that are rendered in HTML contexts.

Potential Impact

The primary impact of CVE-2026-3617 is the potential for stored XSS attacks on WordPress sites using the vulnerable Paypal Shortcodes plugin. Attackers with Contributor-level access can inject malicious scripts that execute in the browsers of site visitors, including administrators and other users. This can lead to theft of authentication cookies, session hijacking, unauthorized actions performed on behalf of users, defacement of site content, or distribution of malware. The compromise of user confidentiality and integrity can damage organizational reputation and trust. Although availability is not directly affected, the indirect consequences of such attacks can include site downtime due to remediation efforts or blacklisting by security services. Organizations relying on this plugin for payment integration or donation processing may face increased risk of fraud or data leakage. The vulnerability's requirement for authenticated access limits exposure but does not eliminate risk, especially on sites with multiple contributors or less restrictive user role assignments. Given WordPress's widespread use globally, many organizations could be impacted if they use this plugin without mitigation.

Mitigation Recommendations

To mitigate CVE-2026-3617, organizations should first check for and apply any official patches or updates released by swergroup for the Paypal Shortcodes plugin. If no patch is available, immediate manual mitigation involves modifying the plugin code to properly escape user-supplied shortcode attributes before output. Specifically, the $name and $amount values should be passed through WordPress's esc_attr() function or equivalent escaping functions before being inserted into HTML attributes. Additionally, review and restrict user roles and permissions to limit Contributor-level access only to trusted users. Implement Web Application Firewall (WAF) rules to detect and block suspicious shortcode attribute inputs containing script tags or event handlers. Regularly audit WordPress plugins for security best practices and consider replacing vulnerable plugins with more secure alternatives. Enable Content Security Policy (CSP) headers to reduce the impact of any injected scripts. Finally, educate site administrators and contributors about the risks of injecting untrusted content and monitor logs for unusual activity related to shortcode usage.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
Wordfence
Date Reserved
2026-03-05T19:00:50.086Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 69be1810f4197a8e3b78438f

Added to database: 3/21/2026, 4:01:20 AM

Last enriched: 3/21/2026, 4:31:55 AM

Last updated: 3/22/2026, 5:03:41 AM

Views: 11

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses