CVE-2025-2540 MEDIUM

CVE-2025-2540: Multiple Plugins <= (Various Versions) - Authenticated (Contributor+) Stored DOM-Based Cross-Site Scripting via prettyPhoto JavaScript Library

Vendor Nayon46
Product Awesome Wp Image Gallery
Weakness CWE-79 · XSS
Published July 3, 2025
Last update April 8, 2026

CVSS base score

6.4/10
Attack vector Network
Attack complexity Low
Privileges required Low
User interaction None
Confidentiality Low
Integrity Low

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N

What the vulnerability does

01Description

Multiple plugins for WordPress are vulnerable to Stored Cross-Site Scripting via the plugin's bundled prettyPhoto library (version 3.1.6) in various versions due to insufficient input sanitization and output escaping on user supplied attributes. 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.

Explanation of Vulnerability in Simple Terms

02Summary

Awesome WP Image Gallery versions 1.0 and earlier contain a stored cross-site scripting (XSS) vulnerability. An authenticated user with low privileges can inject malicious scripts that execute in the browsers of other site visitors, potentially compromising their sessions or stealing sensitive data. The vulnerability affects the site's scope, meaning impacts may extend beyond the gallery component itself.

What an attacker can do

03Attacker Capabilities

Inject malicious scripts that run in other users' browsers when they view the gallery.

Potential impact on your site

04Site Impact

Visitors' sessions and data could be compromised if a low-privilege user injects malicious code into the gallery.

Conditions required to exploit

05Prerequisites

Attacker must have a low-privilege authenticated account on the site.

Key dates

06Disclosure timeline

July 3, 2025 CVE published
April 8, 2026 Record updated

Related vulnerabilities

08Related CVE