Intel

AIKIDO-2025-10944

shopify_api is vulnerable to Unsafe Deserialization

Unsafe Deserialization Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Dec 15, 2025

66

Medium Risk

This Affects:

RUBYshopify_api
10.0.0 - 15.0.0
Fixed in 16.0.0
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to unsafe deserialization because the Session.deserialize method uses Oj.load without safe mode, allowing instantiation of arbitrary Ruby objects from untrusted serialized data. This may allow an attacker who can influence the serialized session payload to trigger unintended object creation during deserialization. The issue is mitigated by removing the Session.serialize and Session.deserialize methods, which are no longer necessary since session storage is the responsibility of the application and sessions should be reconstructed explicitly using Session.new() with individually stored attributes.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you are using the Session.deserialize function.

Background info

shopify_api is vulnerable to Unsafe Deserialization in versions 10.0.0 - 15.0.0.

How to fix this

Upgrade the shopify_api library to the patch version.