# Meta Field Block <= 1.6.2 - Authenticated (Contributor+) Stored Cross-Site Scripting via iframe 'srcdoc' Attribute in Field Values

- **ID:** WPSEC-2026-4280
- **Plugin:** Meta Field Block – Display Custom Fields for ACF, Meta Box and More (`display-a-meta-field-as-block`), https://wordpress.org/plugins/display-a-meta-field-as-block/
- **Affected versions:** all versions before 1.6.3
- **Fixed in:** 1.6.3 (Update to 1.6.3 or later.)
- **Severity:** Medium 6.4 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-12-01)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/display-a-meta-field-as-block
- **Fix released:** 2026-11-30
- **Published:** 2026-12-01
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4280/

## Description

The Meta Field Block plugin for WordPress is vulnerable to Stored Cross-Site Scripting via displayed custom field values in all versions up to, and including, 1.6.2. This is due to the plugin's KSES allowlist permitting the 'srcdoc' attribute on iframe elements. HTML-entity-encoded markup in 'srcdoc' passes the filter and runs as script in the site's origin. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts into a custom field of their own post. When the field is displayed through the block, the scripts run whenever a user accesses the injected page.

## References

- https://wpsec.com/vuln/WPSEC-2026-4280/
- https://plugins.svn.wordpress.org/display-a-meta-field-as-block/tags/1.6.3/
- https://wordpress.org/plugins/display-a-meta-field-as-block/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-4280/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
