CVE-2026-57695 WordPress Document Gallery plugin <= 5.1.0 - Cross Site Scripting (XSS) vulnerability

High 7.1 Published Updated

Attackers can execute arbitrary scripts in victim browsers via reflected XSS in the Document Gallery plugin, requiring a plugin update.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2026-57695?

CVE-2026-57695 is a high-severity cross-site scripting vulnerability in Dan Rossiter Document Gallery, published on 13 Jul 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Dan Rossiter Document Gallery document-gallery allows Reflected XSS.This issue affects Document Gallery: from n/a through <= 5.1.0.

Weakness: CWE-79

Which versions are affected by CVE-2026-57695?

How do I fix CVE-2026-57695?

No fix has been published for CVE-2026-57695 yet. Limit exposure of the affected software until one is available.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2026-57695 being exploited?

There is no known exploitation of CVE-2026-57695 in the wild and no public exploit code.

Sources

Also known as GHSA-2pf4-mx79-hg4j.

Is CVE-2026-57695 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free