CVE-2022-1831: Malicious code in carpenter-api-client (npm)

carpenter-api-client Updated 02 Oct 2025

Summary

20/06/2022
CRITICAL
No i
Critical
Not published

MAL-2022-1831: Malicious code in carpenter-api-client (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 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 carpenter-api-client is an npm package that provides functionality for interacting with a carpenter API. It is commonly used in web development projects to manage and manipulate data related to carpentry tasks. The package allows users to create, update, and delete carpentry projects, as well as perform various other operations. Unfortunately, a vulnerability has been discovered in the package that allows for the execution of malicious code.

Vulnerability Detail

The vulnerability in carpenter-api-client (npm) is due to the presence of malicious code within the package. This code can compromise the security of any computer that has the package installed or running. Once installed, the malicious code gives full control of the computer to an outside entity, potentially exposing any secrets and keys stored on that computer. Removing the package may not guarantee the removal of all malicious software resulting from its installation. Therefore, immediate action is required to rotate all affected secrets and keys from a different computer.

How To Fix

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

npm uninstall carpenter-api-client

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 →

Conclusion

The presence of malicious code in the carpenter-api-client npm package poses a significant security risk to any computer that has it installed or running. Immediate action is required to rotate affected secrets and keys, remove the package, and conduct a thorough security audit. Regularly updating and patching software and packages is crucial to prevent future vulnerabilities. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for carpenter-api-client →

Share this vulnerability

FAQ

carpenter-api-client is an npm package used for interacting with a carpenter API. It provides functionality for managing carpentry projects and performing various operations related to carpentry tasks.

The vulnerability in carpenter-api-client allows for the execution of malicious code, which can compromise the security of the affected computer. It gives full control of the computer to an outside entity, potentially exposing any stored secrets and keys.

If you have carpenter-api-client installed on your computer, it is recommended to rotate all secrets and keys stored on that computer immediately from a different computer. Remove the carpenter-api-client package and conduct a thorough security audit to ensure the removal of any malicious software.

No, removing the carpenter-api-client package does not guarantee the removal of all malicious software resulting from its installation. A thorough security audit should be conducted to ensure the complete removal of any malicious software or code.

To prevent future vulnerabilities, it is important to regularly update and patch all software and packages used in the development environment. Stay informed about security advisories and follow best practices for secure coding and software development.

How To Fix

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

npm uninstall carpenter-api-client

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