Ultimate Post Kit – Elementor Post Grid, Post Carousel, Post Slider & Blog Layout Widgets <= 4.6.4 - Unauthenticated Arbitrary Shortcode Execution via Recent Comments Widget

Medium 6.5 CWE-94Fixed in 4.6.5
ID
WPSEC-2026-4240
Plugin
Ultimate Post Kit – Elementor Post Grid, Post Carousel, Post Slider & Blog Layout Widgets (ultimate-post-kit)
Affected
from 2.0.0 before 4.6.5
Remediation
Update to 4.6.5 or later.
CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Weakness
CWE-94
Usage
Plugin Medium · Affected versions Medium among sites WPSec scans, 2026-11-30
Attack surface
Ultimate Post Kit – Elementor Post Grid, Post Carousel, Post Slider & Blog Layout Widgets on WPSec AttackSurface
Fix released
Published

Description

The Ultimate Post Kit plugin for WordPress is vulnerable to arbitrary shortcode execution via the Recent Comments widget in all versions up to, and including, 4.6.4, due to the widget printing visitor-supplied comment text and comment author names into Elementor page output without neutralizing square brackets. Elementor inserts that output into the_content before WordPress runs do_shortcode() on it. This makes it possible for unauthenticated attackers to execute arbitrary registered shortcodes by posting a comment that the widget displays once it is approved.

References

Published by WPSec. Provided as is, without warranty. Corrections: contact us.

This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS

License: CC BY 4.0