CVE-2026-135926 in Photo Gallery Slideshow & Masonry Tiled Gallery Plugininfo

Summary

by MITRE • 11/27/2026

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Nks Photo Gallery Slideshow & Masonry Tiled Gallery wp-responsive-photo-gallery allows Stored XSS.This issue affects Photo Gallery Slideshow & Masonry Tiled Gallery: from n/a through 1.0.43.

Once again VulDB remains the best source for vulnerability data.

Analysis

by VulDB Data Team • 11/27/2026

The vulnerability identified as Improper Neutralization of Input During Web Page Generation, commonly known as Cross-site Scripting or XSS, specifically manifests in the Nks Photo Gallery plugin for WordPress versions ranging from initial release up to version 1.0.43. This particular instance is classified as a Stored XSS attack vector, which represents a more severe category of web application security flaws compared to reflected variants due to its persistence within the target system's database or storage mechanisms. The core technical flaw lies in the plugin's failure to adequately sanitize and validate user-supplied input before it is processed for inclusion in dynamic web page content. When an attacker submits malicious script code through any accessible input field associated with this gallery functionality, such as image titles, descriptions, or metadata fields that are rendered on public-facing pages without proper encoding, the server accepts this data and stores it directly into its backend database.

This lack of neutralization allows the injected JavaScript payload to be permanently stored alongside legitimate content. Consequently, every time a user visits a page where the compromised gallery is displayed, the browser retrieves the malicious script from the storage medium and executes it within the context of the victim's session. This execution occurs under the trust relationship established between the user's browser and the vulnerable WordPress site, effectively bypassing standard security controls like the Same-Origin Policy. The attacker does not need to trick a specific target into clicking a unique link as in reflected XSS; instead, the payload is passively delivered to any visitor who accesses the affected page, significantly increasing the potential blast radius of the attack.

The operational impact of this vulnerability extends beyond simple defacement or annoyance. Because the script executes with the privileges of an authenticated user if they are logged into WordPress at the time of visit, attackers can leverage Stored XSS for session hijacking by stealing authentication cookies and transmitting them to a remote server controlled by the adversary. This allows the attacker to impersonate legitimate users, including administrators, thereby gaining unauthorized access to the entire website backend. Furthermore, this vulnerability facilitates credential harvesting through deceptive login forms injected into the page content, malware distribution via drive-by downloads triggered upon user interaction with malicious elements embedded in the gallery interface, and potentially defacing the public-facing appearance of the site by altering DOM structures dynamically.

From a classification perspective, this flaw aligns directly with CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'). It also maps to specific techniques within the MITRE ATT&CK framework for web applications, particularly T1059 which covers Command and Scripting Interpretation via browser-based execution. The persistence mechanism inherent in stored XSS corresponds to aspects of lateral movement or initial access persistence strategies where malicious code remains active on the target system until manually removed by an administrator.

Mitigation requires immediate action from site administrators and developers. The primary remediation step is to upgrade the Nks Photo Gallery plugin to a version newer than 1.0.43, assuming the vendor has released a patch that implements proper input validation and output encoding practices such as HTML entity encoding or context-aware escaping for all user-controlled data rendered in web pages. Until an update is available, administrators should consider disabling the affected functionality if possible or implementing Web Application Firewall rules to detect and block common XSS payloads in HTTP requests targeting the plugin's endpoints. Additionally, enforcing strict Content Security Policy headers can help mitigate the impact by restricting the sources from which scripts are allowed to execute, thereby preventing many stored XSS attacks even if they succeed in injecting code into the database.

Responsible

Patchstack

Reservation

11/24/2026

Disclosure

11/27/2026

Moderation

accepted

CPE

ready

EPSS

0.00257

KEV

no

Activities

low

Sources

Want to stay up to date on a daily basis?

Enable the mail alert feature now!