Collapsing Categories Security & Risk Analysis

wordpress.org/plugins/collapsing-categories

Adds a widget which uses Javascript to dynamically expand or collapse the set of posts for each category.

4K active installs v3.0.12 PHP + WP 5.0+ Updated Feb 12, 2026
categoriesnavigationsidebarwidget
98
A · Safe
CVEs total1
Unpatched0
Last CVEDec 17, 2024
Safety Verdict

Is Collapsing Categories Safe to Use in 2026?

Generally Safe

Score 98/100

Collapsing Categories has a strong security track record. Known vulnerabilities have been patched promptly.

1 known CVELast CVE: Dec 17, 2024Updated 1mo ago
Risk Assessment

The "collapsing-categories" plugin version 3.0.12 exhibits a generally good security posture due to a lack of identified direct attack vectors in the static analysis. There are no exposed AJAX handlers, REST API routes, shortcodes, or cron events that are unprotected, significantly limiting the plugin's attack surface. The code also utilizes prepared statements for its single SQL query and has a high percentage of properly escaped output, which are positive indicators of secure coding practices. Furthermore, there are no identified taint flows with unsanitized paths, suggesting that data handling is likely robust against common injection vulnerabilities.

However, the plugin's security history presents a significant concern. It has a recorded high-severity vulnerability in its past, specifically an SQL injection issue, which was last patched relatively recently. While there are no currently unpatched CVEs, the presence of a historical high-severity SQL injection highlights a potential for such vulnerabilities to emerge if input validation or sanitization practices are not consistently applied. The lack of explicit nonce and capability checks, while not immediately exploitable due to the absence of other entry points, is a practice that can become a security risk if new entry points are added in future updates without proper authentication and authorization.

In conclusion, while the current version of "collapsing-categories" appears to be well-hardened against direct exploitation through common WordPress vulnerabilities and demonstrates good coding practices regarding SQL and output handling, the historical high-severity SQL injection vulnerability warrants a cautious approach. The absence of nonce and capability checks on the limited code base is a weakness that, while not presently critical, represents a potential area for future security concerns. Continued vigilance and thorough security reviews for any future updates are recommended.

Key Concerns

  • Historical high severity SQL injection vulnerability
  • Lack of nonce checks
  • Lack of capability checks
Vulnerabilities
1

Collapsing Categories Security Vulnerabilities

CVEs by Year

1 CVE in 2024
2024
Patched Has unpatched

Severity Breakdown

High
1

1 total CVE

CVE-2024-12025high · 7.5Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Collapsing Categories <= 3.0.8 - Unauthenticated SQL Injection

Dec 17, 2024 Patched in 3.0.9 (1d)
Code Analysis
Analyzed Mar 16, 2026

Collapsing Categories Code Analysis

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

SQL Query Safety

100% prepared1 total queries

Output Escaping

87% escaped15 total outputs
Attack Surface

Collapsing Categories Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 6
actioninitcollapscat.php:34
actioninitcollapscat.php:224
actioninitcollapscat.php:229
filterdescriptioncollapscatlist.php:516
filterget_termscollapscatlist.php:517
filterget_terms_orderbycollapscatlist.php:518
Maintenance & Trust

Collapsing Categories Maintenance & Trust

Maintenance Signals

WordPress version tested6.9.4
Last updatedFeb 12, 2026
PHP min version
Downloads292K

Community Trust

Rating82/100
Number of ratings57
Active installs4K
Developer Profile

Collapsing Categories Developer Profile

robfelty

7 plugins · 7K total installs

92
trust score
Avg Security Score
89/100
Avg Patch Time
6 days
View full developer profile
Detection Fingerprints

How We Detect Collapsing Categories

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/collapsing-categories/collapsFunctions.js/wp-content/plugins/collapsing-categories/symbols.php

HTML / DOM Fingerprints

CSS Classes
widget-collapscat-topwidget-collapscat-
HTML Comments
These variables are part of the Collapsing Categories Plugin Version: 3.0.12 $Id: collapscat.php 3459501 2026-02-12 03:57:29Z robfelty $ Copyright 2007-2024 Robert Felty (robfelty.com)
Data Attributes
collapsCatRootaddExpandCollapseCat
JS Globals
expandSymcollapseSymcollapsItemscollapsCatRoot
Shortcode Output
<h2 class='widget-title'>Categories</h2><ul id='widget-collapscat-collapsCatRoot = document.querySelector( '#widget-collapscat-addExpandCollapseCat(collapsCatRoot, '
FAQ

Frequently Asked Questions about Collapsing Categories