CVE-2026-4085: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in maltathemes Easy Social Photos Gallery – MIF
The Easy Social Photos Gallery plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'wrapper_class' shortcode attribute of the 'my-instagram-feed' shortcode in all versions up to, and including, 3.1.2. This is due to insufficient input sanitization and output escaping on user supplied attributes. Specifically, the plugin uses sanitize_text_field() instead of esc_attr() when outputting the 'wrapper_class' attribute inside a double-quoted HTML class attribute. Since sanitize_text_field() does not encode double quotes, an attacker can break out of the class attribute and inject arbitrary HTML event handlers. 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 Analysis
Technical Summary
CVE-2026-4085 is a stored cross-site scripting vulnerability in the maltathemes Easy Social Photos Gallery WordPress plugin (up to version 3.1.2). The issue arises from insufficient input sanitization on the 'wrapper_class' shortcode attribute in the 'my-instagram-feed' shortcode. The plugin uses sanitize_text_field() to process this attribute, which does not encode double quotes, enabling an attacker to break out of the HTML class attribute context and inject arbitrary HTML event handlers. This allows authenticated users with contributor-level permissions or higher to inject malicious scripts that execute in the context of any user viewing the compromised page.
Potential Impact
An attacker with contributor-level or higher privileges can exploit this vulnerability to inject and execute arbitrary JavaScript in the context of users visiting the affected pages. This can lead to session hijacking, defacement, or other malicious actions limited to the scope of the injected script. The vulnerability does not affect availability and requires authenticated access, but it compromises confidentiality and integrity of user interactions with the site.
Mitigation Recommendations
No official patch or remediation is currently available for this vulnerability. Users should monitor the vendor's advisory for updates. As a temporary mitigation, restrict contributor-level access and above to trusted users only. Avoid using the vulnerable shortcode attribute until a fix is released. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.
CVE-2026-4085: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in maltathemes Easy Social Photos Gallery – MIF
Description
The Easy Social Photos Gallery plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'wrapper_class' shortcode attribute of the 'my-instagram-feed' shortcode in all versions up to, and including, 3.1.2. This is due to insufficient input sanitization and output escaping on user supplied attributes. Specifically, the plugin uses sanitize_text_field() instead of esc_attr() when outputting the 'wrapper_class' attribute inside a double-quoted HTML class attribute. Since sanitize_text_field() does not encode double quotes, an attacker can break out of the class attribute and inject arbitrary HTML event handlers. 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
Technical Analysis
CVE-2026-4085 is a stored cross-site scripting vulnerability in the maltathemes Easy Social Photos Gallery WordPress plugin (up to version 3.1.2). The issue arises from insufficient input sanitization on the 'wrapper_class' shortcode attribute in the 'my-instagram-feed' shortcode. The plugin uses sanitize_text_field() to process this attribute, which does not encode double quotes, enabling an attacker to break out of the HTML class attribute context and inject arbitrary HTML event handlers. This allows authenticated users with contributor-level permissions or higher to inject malicious scripts that execute in the context of any user viewing the compromised page.
Potential Impact
An attacker with contributor-level or higher privileges can exploit this vulnerability to inject and execute arbitrary JavaScript in the context of users visiting the affected pages. This can lead to session hijacking, defacement, or other malicious actions limited to the scope of the injected script. The vulnerability does not affect availability and requires authenticated access, but it compromises confidentiality and integrity of user interactions with the site.
Mitigation Recommendations
No official patch or remediation is currently available for this vulnerability. Users should monitor the vendor's advisory for updates. As a temporary mitigation, restrict contributor-level access and above to trusted users only. Avoid using the vulnerable shortcode attribute until a fix is released. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Wordfence
- Date Reserved
- 2026-03-12T20:51:56.076Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69e8876c19fe3cd2cd808ce9
Added to database: 4/22/2026, 8:31:40 AM
Last enriched: 4/22/2026, 9:01:50 AM
Last updated: 4/23/2026, 12:24:38 AM
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.