CVE-2026-4085
Stored XSS in Easy Social Photos Gallery WordPress Plugin
Publication date: 2026-04-22
Last updated on: 2026-04-22
Assigner: Wordfence
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| easy_social_photos_gallery | easy_social_photos_gallery | to 3.1.2 (inc) |
Helpful Resources
Exploitability
| 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.