
Highlighting Code Block Security & Risk Analysis
wordpress.org/plugins/highlighting-code-blockAdd code block with syntax highlighting using prism.js. (Available for Gutenberg and Classic Editor)
Is Highlighting Code Block Safe to Use in 2026?
Generally Safe
Score 99/100Highlighting Code Block has a strong security track record. Known vulnerabilities have been patched promptly. It's a solid choice for most WordPress installations.
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
Highlighting Code Block Security Vulnerabilities
CVEs by Year
Severity Breakdown
1 total CVE
Highlighting Code Block <= 2.2.0 - Authenticated (Administrator+) Stored Cross-Site Scripting via 'font_family' Setting
Highlighting Code Block Release Timeline
Highlighting Code Block Code Analysis
Output Escaping
Highlighting Code Block Attack Surface
WordPress Hooks 13
Maintenance & Trust
Highlighting Code Block Maintenance & Trust
Maintenance Signals
Community Trust
Highlighting Code Block Alternatives
Syntax Highlight Nano
syntax-highlight-nano
Adds modern syntax highlighting to WordPress's standard code block using the robust highlight.js library.
Simple Code Block
simple-code-block
A simple block to insert code into Gutenberg.
Xhtheme Code Block
xhtheme-code-block
A plugin to add code blocks with syntax highlighting to your WordPress site, and adapt to the theme's light and dark mode switching.
4WP Advanced Code
4wp-advanced-code
Enhanced Code block for Gutenberg with syntax highlighting, copy and share controls, and optional SoftwareSourceCode JSON-LD.
Coywolf Code Block Enhancer
coywolf-code-block-enhancer
Syntax highlighting and a copy-to-clipboard button for the native WordPress Code block, plus a language picker in the editor sidebar.
Highlighting Code Block Developer Profile
7 plugins · 135K total installs
How We Detect Highlighting Code Block
Patterns used to identify this plugin on WordPress sites during automated security audits and web crawling.
Asset Fingerprints
/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/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.jshighlighting-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
wp-block-loos-hcb-code-blockdata-show-copy-btnhcbLangshcbVars