Malicious Code Vulnerability in no-unsanitized Package

no-unsanitized Updated 24 Dec 2025

Summary

23/12/2025
CRITICAL
No i
Critical
Not published

MAL-2025-192824: Malicious code in no-unsanitized (npm). Affects no-unsanitized versions 9.9.1 – 9.9.2. 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 Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The no-unsanitized package is a utility in the npm ecosystem that is designed to facilitate the handling of unsanitized HTML content in web applications. It is commonly used in projects that require direct manipulation of HTML without automatic sanitization, allowing developers to maintain control over the content. However, this functionality can also expose applications to security risks if not handled properly, making it crucial for developers to stay informed about vulnerabilities associated with this package.

Vulnerability Detail

The vulnerability identified as MAL-2025-192824 involves the presence of malicious code within specific versions of the no-unsanitized package (versions 9.9.1 and 9.9.2). This malicious code can potentially lead to unauthorized access, data breaches, or the execution of harmful scripts within applications that utilize this package. The origin of this vulnerability is linked to the package being compromised, which raises significant concerns about the integrity of the code being used in production environments.

How To Fix

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

npm uninstall no-unsanitized

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 immediate updating is not feasible, consider implementing input sanitization on your application level to mitigate the risks associated with using unsanitized HTML content. This can be done by using libraries such as DOMPurify to sanitize user inputs before rendering them in the application.

Conclusion

The no-unsanitized package has been identified to contain malicious code in specific versions, posing serious security risks to applications that utilize it. Developers are urged to update to a secure version and consider implementing additional sanitization measures to protect their applications.

See every vulnerability recorded for no-unsanitized →

Share this vulnerability

FAQ

The no-unsanitized package is an npm utility that allows developers to handle unsanitized HTML content directly in their applications.

Versions 9.9.1 and 9.9.2 of the no-unsanitized package are affected by the malicious code vulnerability.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit the Vulert playground at Vulert Scanner to check if your application is affected without needing to sign up.

Using the compromised version can lead to unauthorized access, data breaches, and the execution of harmful scripts, posing significant security risks to your application.

If immediate updating is not possible, implement input sanitization on your application level to reduce the risks associated with unsanitized HTML content.

How To Fix

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

npm uninstall no-unsanitized

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