Malicious Code Vulnerability in baidu-oscp Package - Version 19.9.31

baidu-oscp Updated 10 Dec 2025

Summary

09/12/2025
CRITICAL
No i
Critical
Not published

MAL-2025-192424: Malicious code in baidu-oscp (npm). Affects baidu-oscp versions 19.9.30 – 19.9.31. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The baidu-oscp package is a Node.js library available via npm, designed for various functionalities related to the Baidu Open Cloud Platform. It is widely used in applications that require integration with Baidu services. However, the package has been identified as malicious due to its execution of harmful commands, posing a significant risk to users and their applications.

Vulnerability Detail

The vulnerability originates from the malicious behavior embedded in the baidu-oscp package versions 19.9.30 and 19.9.31. This behavior includes executing commands that can compromise the security of the host system, leading to potential data breaches or unauthorized access. The OpenSSF Package Analysis project flagged this package as malicious, indicating that users should exercise caution when using it.

How To Fix

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

npm uninstall baidu-oscp

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, users can remove the baidu-oscp package from their project until a secure version is confirmed. This can be done using the command: npm uninstall baidu-oscp.

Conclusion

The baidu-oscp package has been identified as malicious, with specific versions executing harmful commands. Users are advised to update or remove the package to mitigate risks. Utilizing tools like Vulert can help monitor for such vulnerabilities in real-time.

See every vulnerability recorded for baidu-oscp →

Share this vulnerability

FAQ

The baidu-oscp package is a Node.js library that facilitates integration with the Baidu Open Cloud Platform, providing various functionalities for developers.

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

If you are using baidu-oscp version 19.9.30 or 19.9.31, it is crucial to update to the latest version or remove the package until a secure version is available.

Using the malicious baidu-oscp package can lead to unauthorized access, data breaches, and other security issues that can compromise your application and its users.

You can visit the OpenSSF Package Analysis project or check resources like Vulert for detailed insights and monitoring of open-source vulnerabilities.

How To Fix

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

npm uninstall baidu-oscp

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