Ajax Comment Preview Security & Risk Analysis

wordpress.org/plugins/ajax-comment-preview

Visitors to your site can preview their comments with a click of a button.

60 active installs v2.4 PHP + WP 3.1+ Updated Mar 6, 2012
ajaxcommentcommentspreview
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is Ajax Comment Preview Safe to Use in 2026?

Generally Safe

Score 85/100

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

No known CVEs Updated 14yr ago
Risk Assessment

The "ajax-comment-preview" plugin v2.4 exhibits a mixed security posture. On the positive side, it demonstrates good practices regarding SQL queries, exclusively using prepared statements, and has no recorded vulnerability history, indicating a generally stable codebase. It also performs output escaping on a high percentage of its outputs and has a single nonce check, suggesting some attention to security fundamentals.

However, significant concerns arise from the attack surface analysis. With two AJAX handlers, both lacking authentication checks, this presents a direct pathway for unauthenticated attackers to potentially exploit the plugin. The absence of capability checks further exacerbates this risk, as any user, regardless of their role or permissions, could interact with these handlers. The taint analysis shows no critical or high severity flows, which is a positive sign, but this is overshadowed by the unprotected entry points.

In conclusion, while the plugin avoids common pitfalls like raw SQL queries or bundled vulnerable libraries, the two unprotected AJAX endpoints represent a substantial and immediate security risk. This is the primary area of concern and requires immediate attention to mitigate potential exploits. The lack of any recorded vulnerabilities in its history is a strength, but it doesn't negate the inherent risks posed by the current unprotected endpoints.

Key Concerns

  • AJAX handlers without auth checks
  • AJAX handlers without capability checks
  • Unescaped output found
Vulnerabilities
None known

Ajax Comment Preview Security Vulnerabilities

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

Ajax Comment Preview Code Analysis

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

Output Escaping

82% escaped11 total outputs
Data Flows
All sanitized

Data Flow Analysis

2 flows
admin_page_load (ajax-comment-preview.php:172)
Source (user input) Sink (dangerous op) Sanitizer Transform Unsanitized Sanitized
Attack Surface
2 unprotected

Ajax Comment Preview Attack Surface

Entry Points2
Unprotected2

AJAX Handlers 2

authwp_ajax_ajax_comment_previewajax-comment-preview.php:271
noprivwp_ajax_ajax_comment_previewajax-comment-preview.php:272
WordPress Hooks 6
actionadmin_headajax-comment-preview.php:173
actioninitajax-comment-preview.php:266
actionadmin_menuajax-comment-preview.php:267
actionwp_print_scriptsajax-comment-preview.php:268
actioncomment_formajax-comment-preview.php:269
actioncomment_id_fieldsajax-comment-preview.php:270
Maintenance & Trust

Ajax Comment Preview Maintenance & Trust

Maintenance Signals

WordPress version tested3.3.2
Last updatedMar 6, 2012
PHP min version
Downloads42K

Community Trust

Rating86/100
Number of ratings3
Active installs60
Developer Profile

Ajax Comment Preview Developer Profile

Michael Adams (mdawaffe)

7 plugins · 12K total installs

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

How We Detect Ajax Comment Preview

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/ajax-comment-preview/ajax-comment-preview.js
Script Paths
ajax-comment-preview.js
Version Parameters
ajax-comment-preview/ajax-comment-preview.js?ver=

HTML / DOM Fingerprints

CSS Classes
commentlistcommenteventhread-evendepth-1comment-authorvcardfn+5 more
HTML Comments
<!-- TODO: New themes use wp_list_comments. Try to tap into those callbacks. --><!-- TODO - should probabl inject with JS -->
Data Attributes
id="comment-preview"id="div-comment-preview"name="acp-preview"id="acp-preview"id="ajax-comment-preview"name="acp[template]" class="acp-focusable widefat"
JS Globals
AJAXCommentPreview
REST Endpoints
/wp-json/ajax-comment-preview/
FAQ

Frequently Asked Questions about Ajax Comment Preview