Skip to content
DayZeroHub
High Not yet writtenCVSS 7.2CVE-2026-119611

CVE-2026-119611: Photo Gallery, Sliders, Proofing and Themes <= 4.5.5 - Unauthenticated Stored Cross-Site Scripting via 'ajax_pagination_referrer' Parameter on /ngg_tag/<tag>/

smub Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery

Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.

Summary

CVE-2026-119611: high-severity vulnerability (CVSS 7.2) in smub Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery.

What happened

Original description from the source: 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

High severity, CVSS 7.2.

Affected products and versions

smub Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery <= 4.5.5

ProductVersionsFixed in
smub Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery<= 4.5.5—

Action recommended by the source

See the official references for the fix or mitigation.

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Weaknesses (CWE): CWE-79

Relevant change history

  1. Published

    Preliminary advisory published.