HTML Regex Replace Security & Risk Analysis

wordpress.org/plugins/html-regex-replace

Replace any html you write in editor (Visual or HTML) with pre-defined string. Use Regexp to define patterns for replacement.

10 active installs v1.1 PHP + WP 3.0+ Updated Jan 19, 2012
htmlregexregexpreplacewysiwyg
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is HTML Regex Replace Safe to Use in 2026?

Generally Safe

Score 85/100

HTML Regex Replace 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 'html-regex-replace' plugin v1.1 presents a mixed security posture. On the positive side, the plugin has no known historical vulnerabilities and demonstrates a commitment to secure database interactions with 100% prepared statements. Furthermore, the static analysis reveals no obvious direct entry points like AJAX handlers, REST API routes, or shortcodes exposed without authentication, which significantly limits the potential attack surface.

However, several critical concerns emerge from the code signals. The presence of the `create_function` is a major red flag, as it can be a source of severe code injection vulnerabilities if user-supplied data is incorporated into its arguments without proper sanitization. Additionally, the complete lack of output escaping for all identified output points is highly problematic, creating a high risk of Cross-Site Scripting (XSS) vulnerabilities. The absence of nonce checks on any potential entry points (though none were explicitly identified, this absence is noted) and only one capability check also suggest a potential for privilege escalation or unauthorized actions if any hidden entry points exist.

While the lack of vulnerability history is a positive indicator of past security, it does not negate the present risks identified in the code analysis. The plugin has strengths in its database handling and limited exposed entry points, but the use of `create_function` and the complete failure to escape output are serious weaknesses that require immediate attention to mitigate significant security risks.

Key Concerns

  • Usage of create_function
  • All outputs unescaped
  • No nonce checks
  • Only one capability check
Vulnerabilities
None known

HTML Regex Replace Security Vulnerabilities

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

HTML Regex Replace Code Analysis

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

Dangerous Functions Found

create_functionarray_walk_recursive($_POST, create_function('&$val', '$val = stripslashes($val);'));html-regrep.php:100

Output Escaping

0% escaped4 total outputs
Attack Surface

HTML Regex Replace Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 4
filtermce_external_pluginshtml-regrep.php:24
actionadmin_inithtml-regrep.php:80
actionadmin_menuhtml-regrep.php:90
filtermce_external_pluginshtml-regrep.php:114
Maintenance & Trust

HTML Regex Replace Maintenance & Trust

Maintenance Signals

WordPress version tested3.3.2
Last updatedJan 19, 2012
PHP min version
Downloads5K

Community Trust

Rating0/100
Number of ratings0
Active installs10
Developer Profile

HTML Regex Replace Developer Profile

Nick Lugovskoy

1 plugin · 10 total installs

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

How We Detect HTML Regex Replace

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/html-regex-replace/mce_plugin_regex.js
Script Paths
/wp-content/plugins/html-regex-replace/mce_plugin_regex.js
Version Parameters
html-regex-replace/mce_plugin_regex.js?rr=

HTML / DOM Fingerprints

Data Attributes
name="opt_([0-9]+)_ptrn"name="opt_([0-9]+)_repl"id="rec-"name="opt_([0-9]+)_ptrn"name="opt_([0-9]+)_repl"
JS Globals
tinymce.plugins.TMRegextinymce.PluginManager.add('tm_regex', tinymce.plugins.TMRegex)Nadd_fielddel_field
FAQ

Frequently Asked Questions about HTML Regex Replace