CVE-2026-131687: ShopMagic <= 4.9.5 - Unauthenticated Improper Verification of Cryptographic Signature to Guest Impersonation and Arbitrary Guest Profile Modification via 'shopmagic_visitor_<COOKIEHASH>' Cookie

Published Nov 26, 2026
·
Updated

The ShopMagic – email automation for WordPress plugin for WordPress is vulnerable to Improper Verification of Cryptographic Signature in all versions up to, and including, 4.9.5 Although CurrentCustomer::encodetrackingdata() appends an md5 hash to the shopmagicvisitor<COOKIEHASH> cookie to make it tamper-resistant, CookiePersistence::gettrackingdata() returns the raw jsondecode()'d cookie value directly without computing or verifying that hash, leaving the cookie's userid, email, and meta fields fully under attacker control. This makes it possible for unauthenticated attackers to forge the visitor cookie — which is predictable because its name is derived as md5(siteurl) from the public site URL — and submit it to the unprotected wpajaxnoprivcaptureemailurl endpoint (which is registered without a nonce check or capability check) to impersonate any WordPress user including administrators in ShopMagic's customer-identity context, and to overwrite the stored profile metadata — including name, phone number, and billing address — of any existing guest record in wpshopmagicguest and wpshopmagicguestmeta via GuestManager::save().

Affected Software

1 affected component
ShopMagic ShopMagic<=4.9.5

Event History

Nov 26, 2026
CVE Published
via MITRE·09:33 AM
Data Sourced
via MITRE·09:33 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who can exploit this issue?

Any unauthenticated remote attacker can exploit it. They can forge the visitor cookie because its name is derived from the publicly available site URL, then send it to an endpoint that has no nonce or capability check.

2

What can an attacker change or impersonate?

An attacker controls the cookie's user_id, email, and meta fields in ShopMagic's customer-identity context, allowing impersonation of WordPress users, including administrators. They can also overwrite stored metadata for existing guest records, including names, phone numbers, and billing addresses.

3

Are default protections sufficient to prevent exploitation?

No. The affected unauthenticated AJAX endpoint is registered without nonce or capability validation, and the cookie-processing code does not verify the appended MD5 hash before trusting decoded cookie data.

4

How can I determine whether my site is affected?

Sites using ShopMagic versions up to and including 4.9.5 are affected. Review whether the site exposes the unauthenticated capture_email_url AJAX action and uses the shopmagic_visitor_<COOKIEHASH> visitor cookie.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203