Malicious Code Vulnerability in com.apple.unityplugin.storekit Package
Summary
MAL-2026-16477: Malicious code in com.apple.unityplugin.storekit (npm). Affects com.apple.unityplugin.storekit versions 1.0.2. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The com.apple.unityplugin.storekit package is an npm module that is designed to interface with Apple's StoreKit framework for Unity applications. It is intended to facilitate in-app purchases and other store-related functionalities. However, this package has been found to impersonate an internal namespace of Apple, leading to significant security concerns due to embedded malicious code.
Vulnerability Detail
The vulnerability originates from the package com.apple.unityplugin.storekit, which performs an unauthorized HTTPS GET request to a hardcoded subdomain upon being required. This request transmits sensitive information such as the package name, operating system platform, and hostname of the machine. This behavior is executed unconditionally at module load, without any documentation or opt-in from the user, making it a severe security risk. The malicious code can lead to data leakage and potential exploitation by confirming that an internal build system has resolved the attacker's public package instead of the legitimate one.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall com.apple.unityplugin.storekit
If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
As a temporary workaround, you can remove the com.apple.unityplugin.storekit package from your project to prevent the execution of the malicious code. You can do this by executing the following command: npm uninstall com.apple.unityplugin.storekit. Additionally, consider using alternative packages that provide similar functionalities without the associated risks.
Conclusion
The com.apple.unityplugin.storekit package contains a serious vulnerability due to embedded malicious code that can lead to data leakage. It is crucial to update the package to the latest version or remove it from your project to protect your application from potential exploitation.
See every vulnerability recorded for com.apple.unityplugin.storekit →
FAQ
The malicious code performs an unauthorized data transmission to an external server, leaking sensitive information about the user's environment.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. You can check your application using the Vulert playground at Vulert Scanner without any signup.
The consequences include data leakage, exposure of internal hostnames, and potential exploitation by malicious actors.
Yes, updating to the latest version of the com.apple.unityplugin.storekit package will address the vulnerability.
If immediate updates are not possible, consider removing the package from your project as a temporary measure to mitigate risks.