Purge Varnish Cache Security & Risk Analysis

wordpress.org/plugins/purge-varnish

Clean clear VARNISH cache automatically when content on your site is created or modified, also allow you to purge VARNISH cache manually.

2K active installs v2.6 PHP + WP 4.0+ Updated Feb 4, 2024
cachecachingflushpurgevarnish
63
C · Use Caution
CVEs total1
Unpatched1
Last CVESep 5, 2025
Download
Safety Verdict

Is Purge Varnish Cache Safe to Use in 2026?

Use With Caution

Score 63/100

Purge Varnish Cache has 1 unpatched vulnerability. Evaluate alternatives or apply available mitigations.

1 known CVE 1 unpatched Last CVE: Sep 5, 2025Updated 2yr ago
Risk Assessment

The "purge-varnish" plugin v2.6 exhibits a mixed security posture. On the positive side, it demonstrates good practices by having zero unprotected entry points, utilizing prepared statements for all SQL queries, and including a nonce check and capability checks. However, the presence of 11 dangerous function calls, specifically `unserialize`, is a significant concern as it can lead to Remote Code Execution (RCE) if untrusted data is passed to it without proper sanitization. Furthermore, the 44% rate of properly escaped output indicates a moderate risk of Cross-Site Scripting (XSS) vulnerabilities.

The vulnerability history reveals one known medium-severity CVE, which is currently unpatched. The fact that the last vulnerability was in 2025 and is still unpatched is alarming and suggests a lack of active maintenance or a delay in addressing security flaws. The common vulnerability type being CSRF also points to potential issues with how user actions are handled and verified.

In conclusion, while the plugin has a seemingly small attack surface and good SQL handling, the high number of dangerous function calls, particularly `unserialize`, coupled with a lack of proper output escaping and an unpatched CVE, creates a notable security risk. Users should exercise caution, and ideally, seek an updated and patched version of this plugin.

Key Concerns

  • Unpatched CVE (medium severity)
  • Dangerous function calls (unserialize)
  • Low percentage of properly escaped output
  • File operations detected
Vulnerabilities
1

Purge Varnish Cache Security Vulnerabilities

CVEs by Year

1 CVE in 2025 · unpatched
2025
Patched Has unpatched

Severity Breakdown

Medium
1

1 total CVE

CVE-2025-58807medium · 4.3Cross-Site Request Forgery (CSRF)

Purge Varnish Cache <= 2.6 - Cross-Site Request Forgery

Sep 5, 2025Unpatched
Code Analysis
Analyzed Mar 16, 2026

Purge Varnish Cache Code Analysis

Dangerous Functions
11
Raw SQL Queries
0
0 prepared
Unescaped Output
33
26 escaped
Nonce Checks
1
Capability Checks
2
File Operations
2
External Requests
0
Bundled Libraries
0

Dangerous Functions Found

unserialize$expire = unserialize($purge_varnish_expire);class_purge_varnish.php:479
unserialize$expire = unserialize($purge_varnish_expire);class_purge_varnish.php:500
unserialize$expire = unserialize($purge_varnish_expire);class_purge_varnish.php:518
unserialize$expire = unserialize($purge_varnish_expire);class_purge_varnish.php:536
unserialize$expire = unserialize($purge_varnish_expire);class_purge_varnish.php:560
unserialize$expire = unserialize($purge_varnish_expire);class_purge_varnish.php:682
unserialize$expire = unserialize($purge_varnish_expire);class_purge_varnish.php:753
unserialize$expire = unserialize($purge_varnish_expire);class_purge_varnish.php:913
unserialize$actions = unserialize($purge_varnish_action);class_purge_varnish.php:968
unserialize$action = unserialize($purge_varnish_action);includes\expire.php:36
unserialize$expire = unserialize($purge_varnish_expire);includes\expire.php:62

Output Escaping

44% escaped59 total outputs
Data Flows
4 unsanitized

Data Flow Analysis

4 flows4 with unsanitized paths
<expire> (includes\expire.php:0)
Source (user input) Sink (dangerous op) Sanitizer Transform Unsanitized Sanitized
Attack Surface

Purge Varnish Cache Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 2
actionadmin_menuclass_purge_varnish.php:32
actionadmin_headclass_purge_varnish.php:963
Maintenance & Trust

Purge Varnish Cache Maintenance & Trust

Maintenance Signals

WordPress version tested6.3.8
Last updatedFeb 4, 2024
PHP min version
Downloads56K

Community Trust

Rating100/100
Number of ratings10
Active installs2K
Developer Profile

Purge Varnish Cache Developer Profile

Dsingh

1 plugin · 2K total installs

68
trust score
Avg Security Score
63/100
Avg Patch Time
30 days
View full developer profile
Detection Fingerprints

How We Detect Purge Varnish Cache

Patterns used to identify this plugin on WordPress sites during automated security audits and web crawling.

Asset Fingerprints

Asset Paths
/wp-content/plugins/purge-varnish/images/purge16x16.png
Script Paths
/wp-content/plugins/purge-varnish/js/purge_varnish.js
Version Parameters
purge-varnish.css?ver=purge-varnish.js?ver=

HTML / DOM Fingerprints

FAQ

Frequently Asked Questions about Purge Varnish Cache