CVE-2026-4085
Received Received - Intake
Stored XSS in Easy Social Photos Gallery WordPress Plugin

Publication date: 2026-04-22

Last updated on: 2026-04-22

Assigner: Wordfence

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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-04-22
Last Modified
2026-04-22
Generated
2026-05-07
AI Q&A
2026-04-22
EPSS Evaluated
2026-05-05
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
easy_social_photos_gallery easy_social_photos_gallery to 3.1.2 (inc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-79 The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

The Easy Social Photos Gallery plugin for WordPress has a Stored Cross-Site Scripting (XSS) vulnerability in the 'wrapper_class' shortcode attribute of the 'my-instagram-feed' shortcode in all versions up to and including 3.1.2.

This vulnerability arises because 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.

As a result, authenticated attackers with contributor-level access or higher can inject malicious web scripts into pages, which will execute whenever a user accesses those pages.


How can this vulnerability impact me? :

This vulnerability allows attackers with contributor-level access or above to inject arbitrary scripts into web pages, leading to Stored Cross-Site Scripting attacks.

Such attacks can result in the execution of malicious scripts in the context of users visiting the affected pages, potentially leading to theft of user credentials, session hijacking, defacement, or distribution of malware.

Because the vulnerability requires authenticated access at contributor level or higher, it limits exploitation to users who already have some level of access, but still poses a significant risk to site integrity and user security.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart