Code Embed <= 2.6.4 - Authenticated (Contributor+) Stored Cross-Site Scripting via Embed Tokens and Custom Fields
- ID
- WPSEC-2026-3790
- Plugin
- Code Embed (simple-embed-code)
- Affected
- all versions before 2.6.5
- Remediation
- Update to 2.6.5 or later.
- CVSS 3.1
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
- Weakness
- CWE-79
- Usage
- Plugin Medium · Affected versions Medium among sites WPSec scans, 2026-11-24
- Attack surface
- Code Embed on WPSec AttackSurface
- Fix released
- Published
Description
The Code Embed plugin for WordPress is vulnerable to Stored Cross-Site Scripting via embed tokens and embed custom fields in all versions up to, and including, 2.6.4. This is due to the plugin replacing embed tokens with custom-field values wherever the tokens appear in post content, including inside HTML tag attributes, and accepting embed custom-field names that contain arbitrary characters. The values are only filtered with wp_kses_post(), which keeps quote characters in plain text. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
References
- https://wpsec.com/vuln/WPSEC-2026-3790/
- https://plugins.svn.wordpress.org/simple-embed-code/tags/2.6.5/
- https://wordpress.org/plugins/simple-embed-code/
Published by WPSec. Provided as is, without warranty. Corrections: contact us.
This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS