Critical Malicious Code Vulnerability in @galicia-toolkit/error-master Package

Summary

08/10/2026
CRITICAL
No i
Critical
Not published

MAL-2026-17689: Malicious code in @galicia-toolkit/error-master (npm). Affects @galicia-toolkit/error-master versions 999.0.3. 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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The @galicia-toolkit/error-master package is a Node.js library commonly used for error handling in JavaScript applications. It is designed to streamline error management and improve debugging processes. However, this package has been found to contain a significant vulnerability that allows for the exfiltration of sensitive information from the user's environment during installation.

Vulnerability Detail

The vulnerability originates from the package's postinstall script, which executes upon installation. This script hex-encodes sensitive information such as the installer's hostname, current working directory, platform/architecture, Node version, and user identifiers. It then sends this data via DNS queries to a hardcoded external server controlled by the package author. This behavior poses a severe risk as it compromises the confidentiality of user data and can lead to unauthorized access to sensitive information.

How To Fix

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

npm uninstall @galicia-toolkit/error-master

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, you can avoid using the @galicia-toolkit/error-master package altogether and look for alternative libraries that provide similar functionality without the associated risks. Additionally, consider using network monitoring tools to detect any unauthorized DNS queries during the installation of packages.

Conclusion

The @galicia-toolkit/error-master package contains a critical vulnerability that allows for the exfiltration of sensitive information. It is crucial for developers to uninstall this package immediately and monitor their systems for any potential breaches. Utilizing tools like Vulert can help in maintaining the security of your applications.

See every vulnerability recorded for @galicia-toolkit/error-master →

Share this vulnerability

FAQ

The vulnerability involves malicious code that exfiltrates sensitive information from the user's environment through DNS queries during the package installation.

You can check if your application is affected by using Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to analyze your package-lock.json without requiring any signup.

If you have installed the package, you should immediately uninstall it and rotate any sensitive credentials or keys that may have been exposed.

Yes, consider using other error handling libraries that do not exhibit malicious behavior, such as 'express-error-handler' or 'winston'.

Regularly audit your dependencies, use tools like Vulert for monitoring vulnerabilities, and avoid installing packages from untrusted sources.

How To Fix

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

npm uninstall @galicia-toolkit/error-master

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