Malicious Code in data-type-public (npm)

data-type-public Updated 02 Oct 2025

Summary

07/11/2023
CRITICAL
No i
Critical
Not published

MAL-2023-8472: Malicious code in data-type-public (npm). Affects data-type-public versions 0.0.0. 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 'data-type-public' package is an npm package that provides functionality related to data types. It is commonly used in JavaScript projects to handle and manipulate different types of data. The package is vulnerable to a malicious code injection, which can lead to various security risks and compromises in the affected applications.

Vulnerability Detail

The vulnerability in the 'data-type-public' package arises from the presence of malicious code. This code communicates with a domain associated with malicious activity and executes commands that are linked to malicious behavior. As a result, the package can potentially compromise the security and integrity of the applications that depend on it. The exact nature and extent of the malicious activities may vary depending on the specific implementation and usage of the package.

How To Fix

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

npm uninstall data-type-public

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 workaround, you can temporarily disable or block the 'data-type-public' package in your project until a fixed version is available. This can be done by modifying your project's package.json file to exclude the 'data-type-public' package from the dependencies.

Conclusion

The 'data-type-public' package has been identified as containing malicious code that can compromise the security of applications using it. It is crucial to update or remove the affected package and regularly audit dependencies to ensure the overall security of your project. For further support and assistance in vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for data-type-public →

Share this vulnerability

FAQ

The impact of this vulnerability can vary depending on the specific usage of the 'data-type-public' package. It can potentially lead to unauthorized access, data breaches, and the execution of malicious commands or code within the affected applications.

You can use tools like Vulert Playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. Vulert analyzes the package-lock.json file to identify and alert in real-time for open-source vulnerabilities in your software.

The primary mitigation for this vulnerability is to update or remove the 'data-type-public' package as described in the 'how_to_fix' section. Additionally, regularly auditing and monitoring your project's dependencies can help identify and address potential security risks.

If the 'data-type-public' package is no longer considered safe or actively maintained, it is recommended to search for alternative packages that provide similar functionality. The npm registry and community forums can be valuable resources for finding suitable alternatives.

If you have discovered or encountered this vulnerability, it is recommended to report it to the package maintainers and the OpenSSF Package Analysis project. Providing detailed information about the vulnerability can help in its resolution and prevention.

How To Fix

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

npm uninstall data-type-public

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