Content Mask changelog
By Alex, on WordPress.org since 2018. 1,000+ active installs.
93 tagged releases, newest first. Dates are when each release was tagged in SVN. Notes come from the plugin's readme, which may not list every release.
-
- Security: fixed a Stored Cross-Site Scripting vulnerability in the per-post “Header Scripts & Styles” and “Footer Scripts” fields. A user who could edit posts, including Contributors, could store an event-handler payload that ran when an administrator previewed the pending post and, once published, for every visitor. Input from users without the unfiltered_html capability is now filtered with wp_kses while the markup is still live, and every affected render path filters the fully decoded value as its final step, which also neutralizes any payload already stored. Reported by Andrea Fiocchi via WPScan.
- Fixed: the per-role restriction in can_mask_content() was inverted and never took effect, so an administrator could not disable Content Mask for a role. The role check now applies, and its hook registration moved to the init hook so the current user is available when it runs.
-
- Security: require the target post type’s publish capability before creating a Content Mask over AJAX. This fixes a privilege escalation where a Contributor could publish a live mask (including a redirect) without the publish_posts capability.
- Hardening: replaced the deprecated user_can_edit_post() permission checks with current_user_can( ‘edit_post’ ) on the edit, delete, toggle, and permission AJAX actions.
- Hardening: every request value is now unslashed and sanitized through a single helper, the metabox and admin inputs included, resolving all Plugin Check sanitization and nonce notices.
- Fixed: the Refresh Transient action referenced undefined variables and could fail on PHP 8; it now rebuilds and stores the cache correctly.
- Maintenance: replaced an obfuscated internal URL with its plain value, switched to wp_parse_url() and wp_strip_all_tags(), normalized line endings, corrected nonce-failure responses, removed a pass-by-reference notice, added the plugin text domain and license headers, and tested up to WordPress 7.0.
-
- Security: require edit-post capability before returning a post’s role/condition permissions over AJAX, fixing an Insecure Direct Object Reference (IDOR). Reported by Nabil Irawan (CVE-2025-58012).
- Hardening: the “Content Mask enabled” admin notice now reads the current post from the trusted global rather than the raw request parameter.
-
- Revive abandoned notice, address SSRF
-
- Fix titles on iframe pages with some themes
-
- Fix null-coalescing operator for PHP 7.3 in admin panel
-
- Minor CSS Fixes for Columns
- Allow custom “Go Back
-
- fix for non-slashed relative urls in Download method
-
- adjust kses for SVGs and output
-
- Fix count in unique views
-
- allow more in kses
-
No notes for this release in the current readme.
-
- Allow ‘id’ attribute in style and script tags for kses
- More pragmatic approach to wp_kses for scripts, styles, and HTML elements in single script areas and universal script areas
- Fixed Universal CSS in iframe and download
-
No notes for this release in the current readme.
-
- Adjust wp_kses to allow script src
-
- Fixed individual footer scripts not being parsed and displayed
-
- Fixed missed/broken escapes and entity decoding for some header/footer sections
-
- Fixed missed SE/EL/AV mantra
- Added kses to some outputs
-
- Additional early sanitization
- additional late escaping in iframe output
-
- Additional Sanitization and Escaping
- Fixed accidental var_dump
- Adjusted script field display
-
- Added much more escaping and sanitization where required. Attributes, URLs, and bare HTML are escaped.
- Added individual function nonces for additional security, no longer reliant on a single nonce.
- Changed most concatenation to formatted strings for clarity and ease of escaping.
-
- Added WP Nonce Validation to all AJAX requests
- Checked user permissions/caps where necessary
- Patched security vulnerability where authenticated users could modify non-content mask options
-
- Add “Footer Scripts” section for Download and Iframe method
- Fix minor script access issue
-
No notes for this release in the current readme.
-
- Fix PHP notice from smoke test for post_type_XYZ_checked dynamic variable
- Adjust single post type metabox to better illustrate Mask state
- Additional CSS to handle screen sizes better
-
- Prevent Content Mask save_meta function from running on post types that aren’t considered “public”, also hid meta box
-
No notes for this release in the current readme.
-
- Fixed an issue with headers being sent and an error showing in the customizer
-
- Fixed an issue where Content Mask admin styles were being applied to other elements on the edit.php admin base screen.
-
No notes for this release in the current readme.
-
- Modified IFL check
- Added Post Types to “Hide Content Mask From” list. Removes meta box and all active page processing for specificed post type(s).
-
- In some instances, roles aren’t set when checked. Forced to array or skip in all cases.
-
- Replace deprecated functions
-
No notes for this release in the current readme.
-
- Added “Content Mask Role” permissions. All roles enabled by default. Users with “manage_options” capability can disable Content Masking admin page/metabox for each role.
- Require “manage_options” capability to modify content mask options or scripts/styles settings
-
- Minor updates to IFL Request check, fix two further undefined index warnings on iframe specific requests
-
- Check infractions list, fix PHP string/array comparison warning in metabox.
-
- Fix in_array errors in metabox
-
- Fixed two inconsequential PHP notices
-
- Updated jQuery.load call to jQuery.on(‘load’)
-
- Added an option “Return Link” to allow users to go back to their previous page.
-
- Accidentally left in diagnostic code in “condition permissions”, this has been removed.
-
- Fixed scripts and styles saving in the admin
- Added condition permissions
-
- Allow use of standard wp_head() in iframes
-
- Minor fixes from 1.8.1
-
- Patched some minor security vulnerabilities exposed by PHP Grinder
- Allow Role-Based Content Mask Permission Locking.
- Added Support-based Iframe Query-Parameter Overrides
-
- Allow variants of ‘localhost’ in the Content Mask URL
-
- Allow passing of URL parameters to iframe
- update baked in version
-
- Updated Chrome User Agent String for HTTP Headers option
-
- Fixed displaying visitor tracking columns in admin panel
-
- Compatibility for WordPress 5.4 confirmed
- Fixed an issue where the Refresh Transient option wasn’t working properly
- Made find/replace functions in the download method more reliable.
- Added content generator meta tag in the tag on the download method.
-
- Fixed an issue where Error Reporting was turned on for the entire site after updating
-
- Introduced a method to easily create new content masks from the Content Mask admin panel.
- Content Mask has partnered with WhirLocal to embed Landing Pages and other content. A link to sign up for a FREE account has been added to the admin panel.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.