
HTML Regex Replace Security & Risk Analysis
wordpress.org/plugins/html-regex-replaceReplace any html you write in editor (Visual or HTML) with pre-defined string. Use Regexp to define patterns for replacement.
Is HTML Regex Replace Safe to Use in 2026?
Generally Safe
Score 85/100HTML Regex Replace has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.
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
HTML Regex Replace Security Vulnerabilities
HTML Regex Replace Code Analysis
Dangerous Functions Found
Output Escaping
HTML Regex Replace Attack Surface
WordPress Hooks 4
Maintenance & Trust
HTML Regex Replace Maintenance & Trust
Maintenance Signals
Community Trust
HTML Regex Replace Alternatives
Search Regex
search-regex
Search Regex adds a powerful set of search and replace functions to WordPress posts, pages, custom post types, and other data.
Cleanup HTML
clean-html
Adds a button to your classic editor visual toolbar that when clicked strips all div, 'table', span tags from your post HTML code -- those a …
HTML Tag and Class Replace
html-tag-and-class-replace
Allows you to Replace any HTML Tag and Class of your WordPress WebSite.
Replace Contents
replace-contents
Replaces text and HTML tags in the content.
Remove layout destroying HTML-Tags
remove-layout-destroying-html-tags
Copy&Paste Cleaner. Cleanup the code in post and page editor after using copy&paste content from different sources and automatic saving.
HTML Regex Replace Developer Profile
1 plugin · 10 total installs
How We Detect HTML Regex Replace
Patterns used to identify this plugin on WordPress sites during automated security audits and web crawling.
Asset Fingerprints
/wp-content/plugins/html-regex-replace/mce_plugin_regex.js/wp-content/plugins/html-regex-replace/mce_plugin_regex.jshtml-regex-replace/mce_plugin_regex.js?rr=HTML / DOM Fingerprints
name="opt_([0-9]+)_ptrn"name="opt_([0-9]+)_repl"id="rec-"name="opt_([0-9]+)_ptrn"name="opt_([0-9]+)_repl"tinymce.plugins.TMRegextinymce.PluginManager.add('tm_regex', tinymce.plugins.TMRegex)Nadd_fielddel_field