Free Gifts for WooCommerce <= 4.5 - Unauthenticated Arbitrary Shortcode Execution via Gift Popup AJAX Handler

High 7.3 CWE-94Fixed in 4.6
ID
WPSEC-2026-2045
Plugin
GIFTiT – Free Gifts for WooCommerce (ithemeland-free-gifts-for-woo)
Affected
all versions before 4.6
Remediation
Update to 4.6 or later.
CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
Weakness
CWE-94
Usage
Plugin Low · Affected versions Low among sites WPSec scans, 2026-10-30
Attack surface
Free Gifts for WooCommerce on WPSec AttackSurface
Fix released
Published

Description

The Free Gifts for WooCommerce plugin for WordPress is vulnerable to arbitrary shortcode execution via the gift popup AJAX handler in all versions up to, and including, 4.5. This is due to the plugin inserting the user-supplied 'type' POST parameter, sanitized only with sanitize_text_field, into a shortcode string that is then passed to do_shortcode. This allows the attribute to be closed and further shortcodes to be appended. This makes it possible for unauthenticated attackers to execute arbitrary shortcodes registered on the site.

References

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

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

License: CC BY 4.0