Prettify Code Syntax Security & Risk Analysis

wordpress.org/plugins/prettify-code-syntax

Code syntax highlighter using Google Prettify, supporting the HTML5 recommendation, and caching plugins.

80 active installs v1.2.1 PHP + WP 3.0.1+ Updated Mar 21, 2013
codehighlightermarkupprettifysyntax
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is Prettify Code Syntax Safe to Use in 2026?

Generally Safe

Score 85/100

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

No known CVEs Updated 13yr ago
Risk Assessment

The plugin "prettify-code-syntax" v1.2.1 exhibits a mixed security posture. On the positive side, there are no reported vulnerabilities in its history, and the static analysis shows a lack of common risky code patterns such as raw SQL queries, external HTTP requests, and critical taint flows. The absence of AJAX handlers, REST API routes, shortcodes, and cron events significantly limits the attack surface. However, a major concern arises from the complete lack of output escaping for all 12 identified outputs. This means any data displayed by the plugin could potentially be manipulated by an attacker to inject malicious code, such as JavaScript, leading to cross-site scripting (XSS) vulnerabilities. While the plugin has a capability check, the absence of nonce checks on potential entry points (though currently zero) is a weakness if entry points are added in the future without proper security considerations.

Key Concerns

  • 100% of outputs are not properly escaped
  • No nonce checks implemented
Vulnerabilities
None known

Prettify Code Syntax Security Vulnerabilities

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

Prettify Code Syntax Code Analysis

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

Output Escaping

0% escaped12 total outputs
Attack Surface

Prettify Code Syntax Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 8
actionadmin_menuprettify-code-syntax.php:73
actionadmin_initprettify-code-syntax.php:74
actionadmin_enqueue_scriptsprettify-code-syntax.php:75
actionwp_enqueue_scriptsprettify-code-syntax.php:77
actionwp_enqueue_scriptsprettify-code-syntax.php:78
filterthe_contentprettify-code-syntax.php:80
filtercomment_textprettify-code-syntax.php:81
actionplugins_loadedprettify-code-syntax.php:83
Maintenance & Trust

Prettify Code Syntax Maintenance & Trust

Maintenance Signals

WordPress version tested3.5.2
Last updatedMar 21, 2013
PHP min version
Downloads15K

Community Trust

Rating84/100
Number of ratings12
Active installs80
Developer Profile

Prettify Code Syntax Developer Profile

jesucarr

1 plugin · 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 Prettify Code Syntax

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/prettify-code-syntax/stylesheets/default.css/wp-content/plugins/prettify-code-syntax/stylesheets/desert.css/wp-content/plugins/prettify-code-syntax/stylesheets/sunburst.css/wp-content/plugins/prettify-code-syntax/stylesheets/sons-of-obsidian.css/wp-content/plugins/prettify-code-syntax/stylesheets/bootstrap.css/wp-content/plugins/prettify-code-syntax/javascripts/prettify.js/wp-content/plugins/prettify-code-syntax/javascripts/lang-css.js/wp-content/plugins/prettify-code-syntax/javascripts/lang-sql.js+25 more
Script Paths
javascripts/prettify.jsjavascripts/lang-css.jsjavascripts/lang-sql.jsjavascripts/lang-yaml.jsjavascripts/lang-vb.jsjavascripts/lang-clj.js+22 more

HTML / DOM Fingerprints

CSS Classes
prettyprint
FAQ

Frequently Asked Questions about Prettify Code Syntax