Malicious Code Injection in commitizen-playwright-selenium-publish Package

Summary

13/11/2025
CRITICAL
No i
Critical
Not published

MAL-2025-186242: Malicious code in commitizen-playwright-selenium-publish (npm). Affected versions are not published. 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 commitizen-playwright-selenium-publish package is part of the npm ecosystem, designed to facilitate automated testing and publishing of applications using Playwright and Selenium. However, it has been compromised, leading to significant security concerns due to the injection of malicious code that manipulates package metadata and floods the npm registry.

Vulnerability Detail

The vulnerability originates from a malicious payload embedded within the commitizen-playwright-selenium-publish package. This payload modifies the package.json file to remove private flags, alters version numbers, and generates random package names, which are then published to the npm registry. This behavior not only compromises the integrity of the affected package but also contributes to the pollution of the npm ecosystem, potentially affecting other developers and their projects.

How To Fix

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

npm uninstall commitizen-playwright-selenium-publish

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, avoid using the commitizen-playwright-selenium-publish package until a secure version is released. Additionally, consider using alternative packages that provide similar functionality without the associated risks.

Conclusion

The commitizen-playwright-selenium-publish package has been compromised, leading to significant security vulnerabilities that can affect developers and their applications. It is crucial to remove the package and monitor for updates or alternatives to ensure the security of your projects.

See every vulnerability recorded for commitizen-playwright-selenium-publish →

Share this vulnerability

FAQ

The malicious code modifies package metadata and publishes numerous variants to the npm registry, which can lead to reputation inflation and ecosystem pollution.

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

If you have installed the package, immediately uninstall it using 'npm uninstall commitizen-playwright-selenium-publish' and check for any other dependencies that may be affected.

Yes, consider using other testing frameworks or publishing tools that do not have known vulnerabilities and are actively maintained.

Regularly check your dependencies using tools like Vulert, which can alert you to vulnerabilities in real-time by analyzing your package-lock.json.

How To Fix

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

npm uninstall commitizen-playwright-selenium-publish

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