Syntax Highlighting Security & Risk Analysis

wordpress.org/plugins/syntax-highlighting

HighLight Code allows you to add syntax highlighting to the snippets contained in your articles. NOTE (beta): This plugin is very felt, it is still in …

0 active installs v0.1 PHP + WP 4.0+ Updated Apr 26, 2017
highlighthighlight-jshighlightingsyntaxsyntax-highlighting
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is Syntax Highlighting Safe to Use in 2026?

Generally Safe

Score 85/100

Syntax Highlighting has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs Updated 9yr ago
Risk Assessment

The "syntax-highlighting" plugin v0.1 exhibits a mixed security posture. On the positive side, it demonstrates no known vulnerabilities in its history, has a zero attack surface in terms of entry points like AJAX handlers, REST API routes, shortcodes, or cron events, and all its SQL queries utilize prepared statements, which is excellent practice. It also avoids file operations and external HTTP requests.

However, there are significant concerns within the code analysis. The presence of the `create_function` is a critical security risk as it is deprecated and can lead to arbitrary code execution if user-supplied data is passed to it. Furthermore, only 15% of output escaping is properly handled, leaving a high likelihood of Cross-Site Scripting (XSS) vulnerabilities. The complete lack of nonce checks and capability checks on any potential (though currently unexposed) entry points also represents a weakness, as it doesn't implement fundamental security controls that would be expected in a production plugin.

While the plugin's vulnerability history is clean, this is likely due to its very limited version and potentially small user base. The current code signals, particularly `create_function` and the low output escaping rate, indicate a high risk of exploitation if any user-controlled data were to reach these vulnerable points. The lack of any taint flow analysis results is also a weakness, suggesting the static analysis tool may not have been able to fully assess potential risks or that the plugin's current structure doesn't expose complex data flow paths.

Key Concerns

  • Use of deprecated create_function
  • Low output escaping rate (15%)
  • No nonce checks
  • No capability checks
Vulnerabilities
None known

Syntax Highlighting Security Vulnerabilities

No known vulnerabilities — this is a good sign.
Version History

Syntax Highlighting Release Timeline

v0.1Current
Code Analysis
Analyzed Mar 17, 2026

Syntax Highlighting Code Analysis

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

Dangerous Functions Found

create_functionadd_action('widgets_init', create_function('', 'return register_widget( "code_hightLight_widget" );'plugin\widget.php:179

Output Escaping

15% escaped55 total outputs
Attack Surface

Syntax Highlighting Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 15
actionadmin_enqueue_scriptsplugin\admin\assets.php:11
actionadmin_enqueue_scriptsplugin\admin\assets.php:12
actionadd_meta_boxesplugin\admin\metabox.php:26
actionsave_postplugin\admin\metabox.php:27
actionadmin_menuplugin\admin\page.php:23
actionadmin_initplugin\admin\page.php:24
actionadmin_menuplugin\admin\panel.php:25
actionadmin_initplugin\admin\panel.php:26
actionwp_enqueue_scriptsplugin\front\assets.php:12
actionwp_enqueue_scriptsplugin\front\assets.php:13
actionwp_enqueue_scriptsplugin\front\assets.php:14
actionwp_enqueue_scriptsplugin\init.php:22
actionwidgets_initplugin\widget.php:179
actionplugins_loadedsyntax-highlighting.php:48
actionadmin_initsyntax-highlighting.php:55
Maintenance & Trust

Syntax Highlighting Maintenance & Trust

Maintenance Signals

WordPress version tested4.7.33
Last updatedApr 26, 2017
PHP min version
Downloads1K

Community Trust

Rating100/100
Number of ratings1
Active installs0
Developer Profile

Syntax Highlighting Developer Profile

webstartup

4 plugins · 20 total installs

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

How We Detect Syntax Highlighting

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/syntax-highlighting/plugin/libs/QS.lib.js/wp-content/plugins/syntax-highlighting/plugin/admin/assets/admin.css/wp-content/plugins/syntax-highlighting/plugin/admin/assets/admin.js/wp-content/plugins/syntax-highlighting/plugin/front/assets/front.css/wp-content/plugins/syntax-highlighting/plugin/front/assets/front.js
Script Paths
/wp-content/plugins/syntax-highlighting/plugin/libs/QS.lib.js/wp-content/plugins/syntax-highlighting/plugin/admin/assets/admin.js/wp-content/plugins/syntax-highlighting/plugin/front/assets/front.js

HTML / DOM Fingerprints

Data Attributes
slwsu_syntax_highlighting
FAQ

Frequently Asked Questions about Syntax Highlighting