Highlighting Code Block Security & Risk Analysis

wordpress.org/plugins/highlighting-code-block

Add code block with syntax highlighting using prism.js. (Available for Gutenberg and Classic Editor)

10K active installs v2.0.1 PHP 5.6+ WP 5.6+ Updated Nov 12, 2023
blockcodeeditorguternbergsyntax
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is Highlighting Code Block Safe to Use in 2026?

Generally Safe

Score 85/100

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

No known CVEs Updated 2yr ago
Risk Assessment

The "highlighting-code-block" v2.0.1 plugin exhibits a generally strong security posture based on the provided static analysis. The complete absence of known CVEs and a clean vulnerability history are highly positive indicators. The code does not utilize dangerous functions, all SQL queries are prepared, and there are no file operations or external HTTP requests, which significantly reduces the attack surface. The lack of any taint analysis findings further suggests that user-supplied data is not being improperly handled within the analyzed code paths.

However, the analysis does raise some concerns. The extremely low percentage of properly escaped output (14%) is a significant red flag. This suggests that data displayed to users might be vulnerable to cross-site scripting (XSS) attacks, as untrusted input could be rendered directly in the browser without proper sanitization. Furthermore, the complete absence of capability checks and nonce checks, combined with zero unprotected entry points identified in the attack surface, is peculiar. While it suggests the plugin might not have direct user-facing interfaces that require such checks in its current form, it also means there's no explicit security layer present for any potential future additions or if its intended usage involves interactions not captured by the static analysis. The plugin's strengths lie in its clean history and absence of critical code-level vulnerabilities, but the output escaping deficiency is a notable weakness that needs immediate attention.

Key Concerns

  • Low output escaping percentage
  • Missing capability checks
  • Missing nonce checks
Vulnerabilities
None known

Highlighting Code Block Security Vulnerabilities

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

Highlighting Code Block Code Analysis

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

Output Escaping

14% escaped7 total outputs
Attack Surface

Highlighting Code Block Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 13
filterthe_contentclass\loos_hcb.php:78
actionmce_cssclass\loos_hcb_mce.php:10
actionmce_external_pluginsclass\loos_hcb_mce.php:11
actiontiny_mce_before_initclass\loos_hcb_mce.php:12
actionmce_buttons_2class\loos_hcb_mce.php:13
actionadmin_menuclass\loos_hcb_menu.php:7
actionadmin_initclass\loos_hcb_menu.php:21
actioninitclass\loos_hcb_scripts.php:10
actionwp_enqueue_scriptsclass\loos_hcb_scripts.php:11
actionadmin_enqueue_scriptsclass\loos_hcb_scripts.php:12
actionenqueue_block_editor_assetsclass\loos_hcb_scripts.php:13
actionadmin_headclass\loos_hcb_scripts.php:14
actionplugins_loadedhighlighting-code-block.php:47
Maintenance & Trust

Highlighting Code Block Maintenance & Trust

Maintenance Signals

WordPress version tested6.4.8
Last updatedNov 12, 2023
PHP min version5.6
Downloads160K

Community Trust

Rating90/100
Number of ratings19
Active installs10K
Developer Profile

Highlighting Code Block Developer Profile

Ryo

6 plugins · 135K total installs

91
trust score
Avg Security Score
87/100
Avg Patch Time
7 days
View full developer profile
Detection Fingerprints

How We Detect Highlighting Code Block

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/highlighting-code-block/build/js/code-block/index.js/wp-content/plugins/highlighting-code-block/build/css/hcb.css/wp-content/plugins/highlighting-code-block/assets/js/prism.js/wp-content/plugins/highlighting-code-block/build/js/hcb_script.js/wp-content/plugins/highlighting-code-block/build/css/hcb-admin.css/wp-content/plugins/highlighting-code-block/build/css/editor-style.css/wp-content/plugins/highlighting-code-block/assets/js/hcb.js
Script Paths
/wp-content/plugins/highlighting-code-block/build/js/code-block/index.js/wp-content/plugins/highlighting-code-block/assets/js/prism.js/wp-content/plugins/highlighting-code-block/build/js/hcb_script.js/wp-content/plugins/highlighting-code-block/assets/js/hcb.js
Version Parameters
highlighting-code-block/build/js/code-block/index.js?ver=highlighting-code-block/build/css/hcb.css?ver=highlighting-code-block/assets/js/prism.js?ver=highlighting-code-block/build/js/hcb_script.js?ver=highlighting-code-block/build/css/hcb-admin.css?ver=highlighting-code-block/build/css/editor-style.css?ver=highlighting-code-block/assets/js/hcb.js?ver=

HTML / DOM Fingerprints

CSS Classes
wp-block-loos-hcb-code-block
Data Attributes
data-show-copy-btn
JS Globals
hcbLangshcbVars
FAQ

Frequently Asked Questions about Highlighting Code Block