Description
The Ad Short plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'ad' shortcode's 'client' attribute in all versions up to and including 2.0.1. This is due to insufficient input sanitization and output escaping on the 'client' shortcode attribute. The ad_func() shortcode handler at line 71 accepts a 'client' attribute via shortcode_atts() and directly concatenates it into a double-quoted HTML attribute (data-ad-client) at line 130 without applying esc_attr() or any other sanitization. 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.
Published: 2026-03-21
Score: 6.4 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Stored Cross‑Site Scripting
Action: Patch
AI Analysis

Impact

The Ad Short WordPress plugin suffers from a stored cross‑site scripting flaw in the 'client' attribute of its ad shortcode. Shortcode attributes are captured through shortcode_atts() and directly inserted into the 'data-ad-client' HTML attribute without sanitization. Consequently, any contributor or higher level user who can edit posts or pages can inject arbitrary JavaScript that will be served to all visitors of the page. This flaw enables malicious code execution in the context of the site, potentially compromising user accounts, defacing content, or stealing credentials.

Affected Systems

The vulnerability affects the Ad Short plugin, version 2.0.1 and earlier, for the WordPress content‑management system. Any WordPress installation that has this plugin installed and where users with Contributor privileges are allowed to edit content is potentially impacted.

Risk and Exploitability

The flaw carries a CVSS v3.1 base score of 6.4, indicating moderate risk. There is no EPSS score available, and the issue is not listed in the CISA Known Exploit Vulnerabilities catalog. Exploitation requires authenticated access with Contributor or higher permissions to insert malicious content via a post or page. Because the payload is stored, all subsequent visitors to that content will run the injected script, creating a wide‑reach attack surface once the content is published.

Generated by OpenCVE AI on March 21, 2026 at 07:20 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the Ad Short plugin to a version newer than 2.0.1 or uninstall it if no upgrade is available.
  • If an update is unavailable, disable the plugin or remove Contributor‑level edit permissions.
  • As a temporary workaround, configure a function to strip or escape the 'client' attribute before it is stored, or use a security plugin to sanitize content.
  • Review existing content for injected scripts and remove any malicious payloads.
  • Monitor site activity for signs of unauthorized script execution.

Generated by OpenCVE AI on March 21, 2026 at 07:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 24 Mar 2026 14:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 23 Mar 2026 10:00:00 +0000

Type Values Removed Values Added
First Time appeared Nocaredev
Nocaredev ad Short
Wordpress
Wordpress wordpress
Vendors & Products Nocaredev
Nocaredev ad Short
Wordpress
Wordpress wordpress

Sat, 21 Mar 2026 05:30:00 +0000

Type Values Removed Values Added
Description The Ad Short plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'ad' shortcode's 'client' attribute in all versions up to and including 2.0.1. This is due to insufficient input sanitization and output escaping on the 'client' shortcode attribute. The ad_func() shortcode handler at line 71 accepts a 'client' attribute via shortcode_atts() and directly concatenates it into a double-quoted HTML attribute (data-ad-client) at line 130 without applying esc_attr() or any other sanitization. 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.
Title Ad Short <= 2.0.1 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'client' 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'}


Subscriptions

Nocaredev Ad Short
Wordpress Wordpress
cve-icon MITRE

Status: PUBLISHED

Assigner: Wordfence

Published:

Updated: 2026-04-08T16:45:03.764Z

Reserved: 2026-03-12T19:36:12.454Z

Link: CVE-2026-4067

cve-icon Vulnrichment

Updated: 2026-03-24T13:46:43.670Z

cve-icon NVD

Status : Deferred

Published: 2026-03-21T04:17:40.037

Modified: 2026-04-24T16:27:44.277

Link: CVE-2026-4067

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-03-25T14:42:26Z

Weaknesses