Less PHP Compiler Security & Risk Analysis

wordpress.org/plugins/lessphp

Includes the less.php preprocessor so that it may be used by other plugins or themes.

3K active installs v2.0.1 PHP + WP 3.7+ Updated Nov 28, 2017
compilerlesspreprocessor
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is Less PHP Compiler Safe to Use in 2026?

Generally Safe

Score 85/100

Less PHP Compiler has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs Updated 8yr ago
Risk Assessment

The lessphp plugin version 2.0.1 presents a mixed security posture. On the positive side, there are no known historical vulnerabilities (CVEs) and the plugin demonstrates good practices regarding SQL queries, exclusively using prepared statements. The absence of external HTTP requests and a lack of reported common vulnerability types also contribute to a perceived stability.

However, the static analysis reveals several areas of concern. The presence of the `unserialize` function is a significant risk, especially when not paired with robust input validation or nonce checks. The taint analysis highlights two flows with unsanitized paths, which, while not classified as critical or high severity in this analysis, indicate potential pathways for malicious input to be processed without proper sanitization. Furthermore, the low percentage of properly escaped output (20%) suggests a risk of cross-site scripting (XSS) vulnerabilities. The lack of any capability checks or nonce checks on any potential entry points (even though the attack surface is reported as zero) means that if any new entry points were to be introduced or discovered, they might be inherently vulnerable.

In conclusion, while the plugin has a clean vulnerability history and employs some secure coding practices, the identified risks related to `unserialize`, unsanitized taint flows, and insufficient output escaping warrant attention. The absence of explicit security checks on potential entry points, despite the current zero-attack surface, is a weakness that could be exploited if the plugin's functionality were to expand or if an overlooked entry point existed. It is recommended to address the identified code signals and taint flow issues to improve the overall security of the plugin.

Key Concerns

  • Dangerous function: unserialize present
  • Taint flows with unsanitized paths
  • Low output escaping percentage (20%)
  • No nonce checks on any entry points
  • No capability checks on any entry points
Vulnerabilities
None known

Less PHP Compiler Security Vulnerabilities

No known vulnerabilities — this is a good sign.
Code Analysis
Analyzed Mar 16, 2026

Less PHP Compiler Code Analysis

Dangerous Functions
3
Raw SQL Queries
0
0 prepared
Unescaped Output
16
4 escaped
Nonce Checks
0
Capability Checks
0
File Operations
41
External Requests
0
Bundled Libraries
0

Dangerous Functions Found

unserialize$cache = unserialize(file_get_contents($cache_file));includes\Less.php:449
unserialize$cache = unserialize(file_get_contents($cache_file));less-php\less.php:739
unserialize$imports = unserialize(file_get_contents($icache));sass-php\scss.inc.php:4430

Output Escaping

20% escaped20 total outputs
Data Flows
2 unsanitized

Data Flow Analysis

2 flows2 with unsanitized paths
serve (sass-php\scss.inc.php:4486)
Source (user input) Sink (dangerous op) Sanitizer Transform Unsanitized Sanitized
Attack Surface

Less PHP Compiler Attack Surface

Entry Points0
Unprotected0
Maintenance & Trust

Less PHP Compiler Maintenance & Trust

Maintenance Signals

WordPress version tested4.1.42
Last updatedNov 28, 2017
PHP min version
Downloads51K

Community Trust

Rating90/100
Number of ratings4
Active installs3K
Developer Profile

Less PHP Compiler Developer Profile

Ari Stathopoulos

6 plugins · 6K total installs

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

How We Detect Less PHP Compiler

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/lessphp/less-php/less.php

HTML / DOM Fingerprints

FAQ

Frequently Asked Questions about Less PHP Compiler