CVE-2026-129218

WP Coder <= 5.0 - Authenticated (Author+) Stored Cross-Site Scripting via '_wp_attachment_image_alt' Attachment Meta via Image-type Shortcode Attribute

Published Nov 18, 2026 CVSS 3.1 · 6.4 Medium EPSS n/a KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The WP Coder – Insert & Manage Code Snippets plugin allows an authenticated user with author-level privileges to upload an image via WordPress’ media REST endpoint, set a crafted Alt Text, and then publish a post that embeds the image shortcode. Because the plugin does not properly escape or sanitize the _wp_attachment_image_alt metadata, the payload survives core sanitization and is inserted into the page’s HTML. The result is a stored cross‑site scripting flaw that can execute arbitrary JavaScript in the browsers of any visitor who loads the impacted post.

Affected Systems

WordPress installations that run any version of the WP Coder plugin up to and including 5.0 are affected. The flaw requires that the site hosts an image‑type snippet uploaded through the standard media interface and that the snippet is included in a post via the image‑type shortcode.

Risk and Exploitability

The vulnerability carries a CVSS score of 6.4, indicating a moderate impact. No EPSS score is available, so the current exploitation likelihood cannot be quantified; however, the flaw is not listed in the CISA KEV catalog. The required authenticated attack vector limits exploitation to users with author-level or higher access, but once a malicious Alt Text is stored, the injected script runs in the browsers of any audience who visits the affected page. Potential consequences include defacement, session hijacking, or delivery of further malware to site visitors.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the WP Coder plugin to version 5.0.1 or newer, where the Alt Text field is properly sanitized and escaped.
  • If an upgrade cannot be performed immediately, remove or sanitize the Alt Text of images used in author+ snippets and consider disabling the image‑type shortcode from outputting the alt attribute.
  • Restrict image uploads to trusted users or disable the media REST endpoint for non‑admin users to eliminate the ability to inject malicious Alt Text.

Generated by OpenCVE AI on November 18, 2026 at 18:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Wordpress-extensions
Wordpress-extensions wp Coder
Wpcalc
Wpcalc wp Coder – Insert & Manage Code Snippets
Vendors & Products Wordpress-extensions
Wordpress-extensions wp Coder
Wpcalc
Wpcalc wp Coder – Insert & Manage Code Snippets
Type Values Removed Values Added
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.
Title WP Coder <= 5.0 - Authenticated (Author+) Stored Cross-Site Scripting via '_wp_attachment_image_alt' Attachment Meta via Image-type Shortcode Attribute
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 6.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
Wordfence
Published
Updated
Nov 18, 2026, 6:24 PM
Reserved
Nov 13, 2026, 7:09 PM
Status
Deferred
Published
Nov 18, 2026, 12:17 PM
Modified
Nov 18, 2026, 7:17 PM