Malicious Code Detected in com.unity.xr.visionos: npm Package Vulnerability
Summary
MAL-2025-190622: Malicious code in com.unity.xr.visionos (npm). Affects com.unity.xr.visionos versions 2.3.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 package 'com.unity.xr.visionos' is part of the npm ecosystem and is utilized for augmented reality and vision-based applications within the Unity framework. It is designed to enhance the capabilities of XR (Extended Reality) applications by providing tools and functionalities for vision processing. However, version 2.3.2 of this package has been flagged for malicious behavior, specifically for communicating with a domain linked to malicious activities.
Vulnerability Detail
The vulnerability in 'com.unity.xr.visionos' arises from its version 2.3.2, which has been identified as malicious by the OpenSSF Package Analysis project. This version is known to communicate with a domain associated with malicious activities, potentially compromising the security of applications that utilize this package. The ramifications of this vulnerability could include unauthorized data access, data exfiltration, or the introduction of further malicious code into the user's environment.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall com.unity.xr.visionos
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
If an immediate update is not feasible, consider removing the package from your project until a secure version is available. You can do this by running the command: npm uninstall com.unity.xr.visionos.
Conclusion
The 'com.unity.xr.visionos' package version 2.3.2 has been identified as malicious due to its communication with a harmful domain. Users are advised to update to a secure version or uninstall the package to protect their applications from potential threats. Utilizing tools like Vulert can help monitor for such vulnerabilities in real-time.
See every vulnerability recorded for com.unity.xr.visionos →
FAQ
The package communicates with a domain linked to malicious activities, which could lead to security breaches.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Visit Vulert Scanner to check your application without needing to sign up.
Consider uninstalling the package until a secure version is available to mitigate risks.
Detailed information can be found in the OpenSSF Package Analysis report linked in the vulnerability details.
Yes, updating to the latest version of 'com.unity.xr.visionos' will address the vulnerability.