Document Gallery (WordPress plugin): is it safe?

Short answer: Version 5.1.2 or later has a fix for every vulnerability listed here. Older versions may be affected: check the table against the exact version you run.

WordPress document-gallery has 7 known advisories in the phpwarden feed. Feed 2026.11.29.4, updated 2026-11-29.

7advisories
0critical
0on CISA KEV
0no fix recorded
CVETitleSeverityCVSSAffectedFixed in
CVE-2026-74921Document Gallery 4.0 - 5.1.1 - Authenticated (Contributor+) Stored Cross-Site Scriptingmedium6.4>=4.0 and <=5.1.15.1.2
CVE-2026-74923Document Gallery <= 5.1.1 - Unauthenticated Information Exposuremedium5.3<=5.1.15.1.2
CVE-2026-12982Document Gallery <= 5.1.0 - Reflected Cross-Site Scriptingmedium6.1<=5.1.05.1.1
CVE-2026-39781Document Gallery <= 5.1.1 - Unauthenticated Stored Cross-Site Scriptinghigh7.2<=5.1.15.1.2
CVE-2026-57695Document Gallery <= 5.1.0 - Unauthenticated Stored Cross-Site Scriptinghigh7.2<=5.1.05.1.1
CVE-2026-74920Document Gallery <= 5.1.1 - Reflected Cross-Site Scriptingmedium6.1<=5.1.15.1.2
CVE-2026-74922Document Gallery 4.1 - 5.1.1 - Unauthenticated Document Thumbnail Replacementmedium5.3>=4.1 and <=5.1.15.1.2

Quick answers

Is Document Gallery safe to use?

Version 5.1.2 or later has a fix for every vulnerability listed here. Older versions may be affected: check the table against the exact version you run.

Is Document Gallery being actively exploited?

None of its 7 known vulnerabilities are on CISA's Known Exploited Vulnerabilities list today.

How do I check my own site?

Run `phpwarden wordpress /path/to/wordpress`. phpwarden compares the exact version you have installed with these advisories and lists only the ones that apply, exploited ones first.

Am I affected?

Find out in one command. phpwarden checks your WordPress install against this advisory and 21,000+ others, ranked by real-world exploitation (CISA KEV + EPSS). Free, offline, open data.

# PHP projects (recommended)
composer require --dev phpwarden/phpwarden
# then
vendor/bin/phpwarden wordpress /path/to/wordpress

# or, without Composer
pipx install phpwarden   &&   phpwarden wordpress /path/to/wordpress

Or keep it checked automatically with the GitHub Action or a nightly cron; see WordPress docs.

Install docs   How findings are ranked
A version is vulnerable when it falls inside an affected range and below the fixed version. phpwarden applies these ranges to the exact versions in your lockfile or install, so you only see what applies to you.

Add this status to your README

phpwarden status badge

Maintainer of this package? The badge updates itself whenever the feed is rebuilt (twice a day). Add ?v=1.2.3 to the image address to show the status of one exact version.

[![phpwarden](https://phpwarden.io/badge/wordpress-plugin/document-gallery.svg)](https://phpwarden.io/packages/wordpress-plugin/document-gallery)