Malicious Package in shrugging-logging

shrugging-logging Updated 02 Oct 2025

Summary

11/09/2020
CRITICAL
No i
Critical
9.8

GHSA-qv78-398w-cxp7: Malicious Package in shrugging-logging. 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 shrugging-logging package is an npm package used for logging purposes. It is designed to provide logging functionality to applications developed using the npm ecosystem. The package allows developers to log various events and messages during the execution of their applications. Unfortunately, all versions of shrugging-logging contain a malicious code as a postinstall script.

Vulnerability Detail

The vulnerability in shrugging-logging is due to the presence of malicious code in the postinstall script. When the package is installed, it fetches all names of npm packages owned by the user and attempts to add another maintainer to every package. This behavior is a form of package hijacking, where an unauthorized maintainer is added to npm packages without the owner's consent. The malicious code poses a significant security risk as it can lead to unauthorized access, data breaches, and potential misuse of the compromised packages.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Conclusion

The shrugging-logging package contains a critical vulnerability due to the presence of malicious code in its postinstall script. To mitigate the risk, it is essential to remove the package from your system, contact npm security if any packages were compromised, and enable two-factor authentication (2FA) for publishing packages. For additional support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for shrugging-logging →

Share this vulnerability

FAQ

shrugging-logging is an npm package used for logging purposes in applications developed using the npm ecosystem.

The malicious code in shrugging-logging attempts to add another maintainer to every npm package owned by the user, leading to package hijacking and potential unauthorized access to the compromised packages.

To fix the vulnerability, you should remove the shrugging-logging package from your system and contact npm security if any of your packages were compromised. Enabling two-factor authentication (2FA) for publishing packages is also recommended.

The vulnerability can result in unauthorized access, data breaches, and misuse of compromised npm packages.

For further support on vulnerability remediation, you can reach out to info@devnack.com.

Related vulnerabilities

Recent vulnerabilities recorded for shrugging-logging.

How To Fix

No fixed version is published for this vulnerability.

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