CVE-2026-129218
Description
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.
Weakness
- CWE-79: Improper Neutralization of Input During Web Page Generation
Timeline
- 2026-11-18Published by the CNA11:30 UTC
- 2026-11-18Published in NVD12:17 UTC · 46 minutes after the CNA
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| wpcalc wp_coder_–_insert_&_manage_code_snippets | from 0 through 5.0no fix listed | not listed |
References
- https://plugins.trac.wordpress.org/browser/wp-coder/tags/5.0.1
- https://plugins.trac.wordpress.org/browser/wp-coder/tags/5.0/classes/Publisher/Placeholders.php#L48
- https://plugins.trac.wordpress.org/browser/wp-coder/tags/5.0/includes/class-wowp-public.php#L186
- https://plugins.trac.wordpress.org/browser/wp-coder/tags/5.0/includes/class-wowp-public.php#L235
- https://plugins.trac.wordpress.org/browser/wp-coder/tags/5.0/includes/class-wowp-public.php#L280
- https://plugins.trac.wordpress.org/browser/wp-coder/tags/5.0/includes/class-wowp-public.php#L477
- https://plugins.trac.wordpress.org/browser/wp-coder/tags/5.0/includes/class-wowp-public.php#L71
- https://www.wordfence.com/threat-intel/vulnerabilities/id/cc613a97-5f8b-457f-945a-43f440d39491?source=cve
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-129218'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-129218'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-129218'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-129218'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).