CVE-2026-129218wpcalc WP Coder – Insert & Manage Code Snippets Cross-site Scripting (XSS)
NVDCVSS scored by security@wordfence.com
Vulnerability Summary
The WP Coder – Insert & Manage Code Snippets plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'alt_text (WP media REST) → _wp_attachment_image_alt post meta' parameter in all versions up to, and including, 5.0 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with author-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. This requires that an admin-authored image-type snippet exists on the site, as the attacker uploads an image via the standard WordPress media REST endpoint, sets its Alt Text to a double-quote-based payload that survives WordPress core's sanitize_text_field(), and then publishes a post embedding the shortcode.
CVSS v3.1 Base Metrics — Score 6.4 (MEDIUM)
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:NAttack VectorNetwork
Attack ComplexityLow
Privileges RequiredLow
User InteractionNone
ScopeChanged
ConfidentialityLow
IntegrityLow
AvailabilityNone
Affected & Patched Versions
- wpcalc WP Coder – Insert & Manage Code Snippets <= 5.0
- wpcalc WP Coder – Insert & Manage Code Snippets 5.0
What to do
Fix it during your normal patch cycle. No exploitation is confirmed yet.
- Check whether you run wpcalc WP Coder – Insert & Manage Code Snippets and which version.
- Update to a patched version listed above, then confirm the new version.
Timeline
- Nov 18, 2026Published
- Nov 18, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new wpcalc WP Coder – Insert & Manage Code Snippets CVEsYou are reading CVE-2026-129218. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
- Referencehttps://plugins.trac.wordpress.org/browser/wp-coder/tags/5.0.1
- Referencehttps://plugins.trac.wordpress.org/browser/wp-coder/tags/5.0/classes/Publisher/Placeholders.php#L48
- Referencehttps://plugins.trac.wordpress.org/browser/wp-coder/tags/5.0/includes/class-wowp-public.php#L186
- Referencehttps://plugins.trac.wordpress.org/browser/wp-coder/tags/5.0/includes/class-wowp-public.php#L235
- Referencehttps://plugins.trac.wordpress.org/browser/wp-coder/tags/5.0/includes/class-wowp-public.php#L280
- Referencehttps://plugins.trac.wordpress.org/browser/wp-coder/tags/5.0/includes/class-wowp-public.php#L477
- Referencehttps://plugins.trac.wordpress.org/browser/wp-coder/tags/5.0/includes/class-wowp-public.php#L71
- Referencehttps://www.wordfence.com/threat-intel/vulnerabilities/id/cc613a97-5f8b-457f-945a-43f440d39491?source=cve
Data last checked: Nov 18, 2026 14:01 UTC