NextGEN Gallery: Unauthenticated Stored XSS via ajax_pagination_referrer
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-79.
Summary
Photo Gallery, Sliders, Proofing and Themes (NextGEN Gallery plugin for WordPress) through 4.5.5 has a stored cross-site scripting flaw in the ajax_pagination_referrer request parameter on the /ngg_tag/<tag>/ page. The plugin takes the pagination base URL from the request and caches the rendered page keyed only on the request URI, so an unauthenticated attacker can poison the cached page so that its pagination links point to an attacker-controlled host (CWE-79). The poisoned page is served for 1800 seconds.
Written with Claude Haiku 5.5 from the sources below · 2026-11-20
Description from the CNA
The NextGEN Gallery plugin for WordPress is vulnerable to Stored Cross-Site Scripting in versions up to, and including, 4.5.5 via the 'ajax_pagination_referrer' request parameter used on the /ngg_tag/<tag>/ taxonomy page. This is due to the plugin reading the pagination base URL from $_REQUEST, preserving the attacker-supplied host on the tag route (where ngg_wprouting_add_post_permalink is forced to false so the plugin does not re-base the links to the site's own permalink), and caching the fully rendered page in a transient keyed only on the request URI (not the request body) for 1800 seconds via NGG_RENDERING_CACHE / PHOTOCRATI_CACHE. This makes it possible for unauthenticated attackers to poison the cached /ngg_tag/<tag>/ page so that its pagination links point to an attacker-controlled host; the plugin's own ajax_pagination.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
The sources list no fixed version for Photo Gallery, Sliders, Proofing and Themes (NextGEN Gallery).
Written with Claude Haiku 5.5 from the sources below · 2026-11-20
Timeline
- 2026-11-20 Threatist record created from CVE-2026-119611
- 2026-11-20 Alias added: GHSA-9m6m-2qp3-gf48
- 2026-11-20 CISA SSVC decision points changed
- 2026-11-25 EPSS moved to the below the 50th percentile
References
Other 9
- https://www.wordfence.com/threat-intel/vulnerabilities/id/eb17bfea-9648-4395-b69e-b159f3bdfef5?source=cve
- https://plugins.trac.wordpress.org/browser/nextgen-gallery/tags/4.5.5/src/DisplayTypes/Thumbnails.php#L128
- https://plugins.trac.wordpress.org/browser/nextgen-gallery/tags/4.5.5/src/DisplayType/Controller.php#L811
- https://plugins.trac.wordpress.org/browser/nextgen-gallery/tags/4.5.5/src/DisplayedGallery/Renderer.php#L460
- https://plugins.trac.wordpress.org/browser/nextgen-gallery/tags/4.5.5/src/DisplayTypes/Taxonomy.php#L96
- https://plugins.trac.wordpress.org/browser/nextgen-gallery/tags/4.5.5/src/Util/RoutingApp.php#L627
- https://plugins.trac.wordpress.org/browser/nextgen-gallery/tags/4.5.5/static/Thumbnails/ajax_pagination.js#L21
- https://plugins.trac.wordpress.org/changeset?reponame=&new=3793265%40nextgen-gallery&old=3773861%40nextgen-gallery
- https://plugins.trac.wordpress.org/changeset/3793263/nextgen-gallery/trunk/src/DisplayTypes/Thumbnails.php
More smub vulnerabilities
- TI-2025-12465 Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery <= 3.59.12 - Authenticated… CVSS 3.1HIGH 8.8
- TI-2026-83530 Remote code execution in NextGEN Gallery plugin for WordPress CVSS 3.1HIGH 8.8
- TI-2026-78567 PHP object injection in Duplicator and Duplicator Pro plugins CVSS 3.1HIGH 8.8
- TI-2026-07755 WPCode <= 2.3.5 - Authenticated (Author+) Remote Code Execution via CPT Capability Bypass via XML-RPC wp.newPost CVSS 3.1HIGH 8.8
- TI-2026-01649 ExactMetrics 8.6.0 - 9.0.2 - Authenticated (Custom) Insecure Direct Object Reference to Arbitrary Plugin Installation CVSS 3.1HIGH 8.8
- TI-2026-01160 Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery <= 4.0.4 - Authenticated (Author+) Local File Inclusion CVSS 3.1HIGH 8.8
Sources
- CVE-2026-119611 · CVE Program
- CVE-2026-119611 · NVD
- FIRST EPSS
- GHSA-9m6m-2qp3-gf48 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences