CVE-2026-8867
Received Received - Intake
Stored XSS in Post Category Gallery WordPress Plugin

Publication date: 2026-05-27

Last updated on: 2026-05-27

Assigner: Wordfence

Description
The Post Category Gallery plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's 'postcategorygallery' shortcode in versions up to, and including, 1.0.0. This is due to insufficient input sanitization and output escaping on user-supplied shortcode attributes (such as total_width, color_scheme, and caption_font_size) inside the sc_horcatbar() function, which are concatenated directly into HTML attribute values. 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-05-27
Last Modified
2026-05-27
Generated
2026-05-27
AI Q&A
2026-05-27
EPSS Evaluated
N/A
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
post_category_gallery post_category_gallery to 1.0.0 (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 Post Category Gallery plugin for WordPress has a Stored Cross-Site Scripting (XSS) vulnerability in versions up to and including 1.0.0. This occurs because the plugin does not properly sanitize or escape user-supplied shortcode attributes such as total_width, color_scheme, and caption_font_size. These attributes are directly concatenated into HTML attribute values within the sc_horcatbar() function. As a result, authenticated users with contributor-level access or higher can inject malicious scripts that execute whenever someone views the affected page.


How can this vulnerability impact me? :

This vulnerability allows attackers with contributor-level access or above to inject arbitrary web scripts into pages. These scripts execute in the browsers of users who visit the infected pages, potentially leading to theft of user credentials, session hijacking, defacement, or distribution of malware. Because the vulnerability is stored, the malicious code persists on the site and affects all visitors to the compromised pages.


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