Malicious code in microsoft-ux (npm)

microsoft-ux Updated 02 Oct 2025

Summary

12/10/2023
CRITICAL
No i
Critical
Not published

MAL-2023-8331: Malicious code in microsoft-ux (npm). Affects microsoft-ux versions 1.2.1. No fix is published. How to fix ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The 'microsoft-ux' package is an npm package that provides functionality related to Microsoft user experience. It is used to enhance the user interface and user interaction in applications. The package is widely used in various projects and has a version 1.2.1 that is affected by a malicious code vulnerability.

Vulnerability Detail

The 'microsoft-ux' package version 1.2.1 has been identified as malicious by the OpenSSF Package Analysis project. The package contains code that executes one or more commands associated with malicious behavior. This vulnerability can have severe consequences, including unauthorized access, data breaches, and compromise of the affected system.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

npm uninstall microsoft-ux

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

There is no specific workaround provided for this vulnerability. The best course of action is to follow the recommended steps for fixing the vulnerability.

Conclusion

The 'microsoft-ux' package version 1.2.1 has been identified as malicious, and it is crucial to take immediate action to remove it from your project. Replace it with a trusted and secure alternative or an updated version that has been verified to be free from malicious code. Regularly updating and monitoring your project's dependencies is essential to ensure the security and integrity of your application.

See every vulnerability recorded for microsoft-ux →

Share this vulnerability

FAQ

This vulnerability can lead to unauthorized access, data breaches, and compromise of the affected system. It is essential to address it promptly to prevent potential harm.

You can use the Vulert Playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. It analyzes your package-lock.json file and provides real-time alerts for open-source vulnerabilities.

Yes, the recommended fix is to remove the 'microsoft-ux' package version 1.2.1 from your project and replace it with a secure alternative or an updated version that has been verified to be free from malicious code.

While updating other dependencies is generally a good practice, it may not directly mitigate the risk posed by this specific vulnerability. It is crucial to remove the affected package and replace it with a secure alternative or an updated version.

For further support on vulnerability remediation, you can reach out to info@devnack.com. They can provide guidance and assistance in addressing the vulnerability in your project.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

npm uninstall microsoft-ux

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback