CodeMirror for Post Editor Security & Risk Analysis

wordpress.org/plugins/codemirror-for-post-editor

Write beautiful HTML code using the CodeMirror component for your WordPress posts.

10 active installs v0.4.1 PHP + WP 3.5+ Updated Apr 15, 2014
codeeditorhtmlpostwriting
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is CodeMirror for Post Editor Safe to Use in 2026?

Generally Safe

Score 85/100

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

No known CVEs Updated 11yr ago
Risk Assessment

The "codemirror-for-post-editor" plugin v0.4.1 exhibits a mixed security posture. On the positive side, the plugin demonstrates good practices regarding SQL queries, exclusively using prepared statements, and has no recorded vulnerability history, suggesting a generally well-maintained codebase. There are no identified dangerous functions, file operations, external HTTP requests, or bundled libraries that could pose a risk.

However, significant security concerns are present due to a lack of robust authorization and input validation. The plugin has a single AJAX handler which is completely unprotected by authentication checks. Furthermore, the static analysis reveals that 100% of its output is not properly escaped, creating a high risk of Cross-Site Scripting (XSS) vulnerabilities. The absence of nonce checks on the AJAX handler is a direct invitation for CSRF attacks. While taint analysis found no issues, this is likely due to the limited scope of analysis or the lack of complex data flows that would trigger it. The overall lack of capability checks further exacerbates the risk of unauthorized access and data manipulation.

In conclusion, while the plugin avoids some common pitfalls like insecure SQL or known vulnerabilities, the unprotected AJAX endpoint and the widespread lack of output escaping present critical security weaknesses that demand immediate attention. These issues could allow attackers to execute arbitrary code, steal user data, or perform actions on behalf of authenticated users.

Key Concerns

  • Unprotected AJAX handler
  • No capability checks
  • Output not properly escaped
  • No nonce checks
Vulnerabilities
None known

CodeMirror for Post Editor Security Vulnerabilities

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

CodeMirror for Post Editor Code Analysis

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

Output Escaping

0% escaped1 total outputs
Attack Surface
1 unprotected

CodeMirror for Post Editor Attack Surface

Entry Points1
Unprotected1

AJAX Handlers 1

authwp_ajax_get_codemirror_editorcodemirror-editor.php:22
WordPress Hooks 5
actionadmin_enqueue_scriptscodemirror-editor.php:17
actionadmin_headcodemirror-editor.php:18
actionadmin_footercodemirror-editor.php:19
filtermce_buttonscodemirror-editor.php:20
filtermce_external_pluginscodemirror-editor.php:21
Maintenance & Trust

CodeMirror for Post Editor Maintenance & Trust

Maintenance Signals

WordPress version tested3.9.40
Last updatedApr 15, 2014
PHP min version
Downloads3K

Community Trust

Rating100/100
Number of ratings1
Active installs10
Developer Profile

CodeMirror for Post Editor Developer Profile

Felipe Lavín

2 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 CodeMirror for Post Editor

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/codemirror-for-post-editor/js/lib/codemirror.js/wp-content/plugins/codemirror-for-post-editor/js/mode/xml/xml.js/wp-content/plugins/codemirror-for-post-editor/js/mode/htmlmixed/htmlmixed.js/wp-content/plugins/codemirror-for-post-editor/js/addon/edit/closetag.js/wp-content/plugins/codemirror-for-post-editor/js/lib/codemirror.css/wp-content/plugins/codemirror-for-post-editor/js/theme/monokai.css/wp-content/plugins/codemirror-for-post-editor/js/editor_plugin.js
Script Paths
/wp-content/plugins/codemirror-for-post-editor/js/lib/codemirror.js/wp-content/plugins/codemirror-for-post-editor/js/mode/xml/xml.js/wp-content/plugins/codemirror-for-post-editor/js/mode/htmlmixed/htmlmixed.js/wp-content/plugins/codemirror-for-post-editor/js/addon/edit/closetag.js/wp-content/plugins/codemirror-for-post-editor/js/editor_plugin.js
Version Parameters
codemirror-for-post-editor/js/lib/codemirror.js?ver=codemirror-for-post-editor/js/mode/xml/xml.js?ver=codemirror-for-post-editor/js/mode/htmlmixed/htmlmixed.js?ver=codemirror-for-post-editor/js/addon/edit/closetag.js?ver=codemirror-for-post-editor/js/lib/codemirror.css?ver=codemirror-for-post-editor/js/theme/monokai.css?ver=codemirror-for-post-editor/js/editor_plugin.js?ver=

HTML / DOM Fingerprints

JS Globals
CodeMirrorEditor_Settings
REST Endpoints
/wp-json/admin-ajax.php
Shortcode Output
<textarea name="codemirror_editor" id="codemirror-editor" cols="30" rows="100" style="width:100%"></textarea>
FAQ

Frequently Asked Questions about CodeMirror for Post Editor