CVE-2025-68999: What Is the Bug?
The "Happy Clone" feature lets users duplicate posts. When cloning, the plugin copies all custom fields, including the field name (meta_key). That name goes straight into the database query without any sanitization.
foreach ( $meta_data as $meta ) {
$wpdb->query(
"INSERT INTO $wpdb->postmeta (post_id, meta_key, meta_value)
VALUES ($new_post_id, '$meta[meta_key]', '$meta[meta_value]')"
);
}
$wpdb->query( $wpdb->prepare(
"INSERT INTO $wpdb->postmeta (post_id, meta_key, meta_value) VALUES (%d, %s, %s)",
$new_post_id, $meta['meta_key'], $meta['meta_value']
));
This is a second-order SQL injection: the payload is stored first, then fires when the clone runs.