SyntaxHighlighter2 Security & Risk Analysis

wordpress.org/plugins/syntaxhighlighter2

Easily post source code such as PHP or HTML and display it in a styled box.

20 active installs v2.1.2 PHP + WP 2.0+ Updated May 30, 2010
codehtmlphpsourcecodexhtml
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is SyntaxHighlighter2 Safe to Use in 2026?

Generally Safe

Score 85/100

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

No known CVEs Updated 15yr ago
Risk Assessment

The security posture of syntaxhighlighter2 v2.1.2 appears to be relatively strong, with no known vulnerabilities or CVEs recorded. The static analysis shows a clean slate regarding dangerous functions, SQL injection risks, file operations, and external HTTP requests. The absence of any taint analysis findings further reinforces this. However, there are significant concerns regarding output escaping, as 100% of the identified outputs are not properly escaped. While the plugin has capability checks, the complete lack of nonce checks on AJAX handlers (though there are no AJAX handlers to begin with), REST API routes, and shortcodes means that if any of these entry points were introduced in the future without proper authentication and authorization, there could be vulnerabilities. The zero attack surface is a positive, but the lack of output escaping is a critical oversight that could lead to cross-site scripting (XSS) vulnerabilities if any user-supplied data is ever processed and displayed.

Key Concerns

  • All outputs are unescaped
  • No nonce checks on potential entry points
Vulnerabilities
None known

SyntaxHighlighter2 Security Vulnerabilities

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

SyntaxHighlighter2 Release Timeline

v2.0.5
v2.0.0
Code Analysis
Analyzed Mar 16, 2026

SyntaxHighlighter2 Code Analysis

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

Output Escaping

0% escaped10 total outputs
Attack Surface

SyntaxHighlighter2 Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 18
actioninitsyntaxhighlighter2.php:61
actionwp_headsyntaxhighlighter2.php:62
actionadmin_headsyntaxhighlighter2.php:63
actionwp_footersyntaxhighlighter2.php:64
actionadmin_footersyntaxhighlighter2.php:65
filterthe_contentsyntaxhighlighter2.php:68
filterwidget_textsyntaxhighlighter2.php:69
filtercontent_save_presyntaxhighlighter2.php:72
filtercontent_save_presyntaxhighlighter2.php:73
actionadmin_headsyntaxhighlighter2.php:74
actionupdate_option_widget_textsyntaxhighlighter2.php:75
filterformat_to_editsyntaxhighlighter2.php:76
filtercontent_save_presyntaxhighlighter2.php:79
filterthe_editor_contentsyntaxhighlighter2.php:80
filtercomment_textsyntaxhighlighter2.php:84
filterpre_comment_contentsyntaxhighlighter2.php:85
filterpre_comment_contentsyntaxhighlighter2.php:86
filteradmin_menusyntaxhighlighter2.php:89
Maintenance & Trust

SyntaxHighlighter2 Maintenance & Trust

Maintenance Signals

WordPress version tested3.0.0
Last updatedMay 30, 2010
PHP min version
Downloads8K

Community Trust

Rating0/100
Number of ratings0
Active installs20
Developer Profile

SyntaxHighlighter2 Developer Profile

mohanjith

4 plugins · 80 total installs

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

How We Detect SyntaxHighlighter2

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/syntaxhighlighter2/files/shCore.js/wp-content/plugins/syntaxhighlighter2/files/shAutoloader.js
Script Paths
/wp-content/plugins/syntaxhighlighter2/files/shCore.js/wp-content/plugins/syntaxhighlighter2/files/shAutoloader.js
Version Parameters
syntaxhighlighter2/files/shCore.js?ver=syntaxhighlighter2/files/shAutoloader.js?ver=

HTML / DOM Fingerprints

CSS Classes
syntaxhighlighter
Data Attributes
class="brush: ; gutter: ; first-line: ; collapse: ; toolbar: ; light: ;
JS Globals
SyntaxHighlighter
Shortcode Output
[code language=""[/code]
FAQ

Frequently Asked Questions about SyntaxHighlighter2