CVE-2026-8867
Deferred Deferred - Pending Action
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-06-16
AI Q&A
2026-05-28
EPSS Evaluated
2026-06-15
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 Quick Actions
Instant insights powered by AI
Mitigation Strategies

The vulnerability exists in versions up to and including 1.0.0 of the Post Category Gallery plugin for WordPress. To mitigate this vulnerability, you should update the plugin to a version that has fixed the insufficient input sanitization and output escaping issues in the 'postcategorygallery' shortcode.

Additionally, restrict contributor-level access and above to trusted users only, as the vulnerability requires authenticated users with at least contributor privileges to exploit.

Executive Summary

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.

Impact Analysis

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.

Compliance Impact

The vulnerability allows authenticated attackers with contributor-level access to inject arbitrary web scripts via stored cross-site scripting (XSS). This can lead to unauthorized access to user data or session hijacking when users access the injected pages.

Such unauthorized access or data exposure could potentially impact compliance with data protection regulations like GDPR or HIPAA, which require safeguarding personal and sensitive information against unauthorized access or disclosure.

However, the provided information does not explicitly detail the direct impact on compliance with these standards.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-8867. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart