Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Malicious code in datefmt-core-utils (npm)

0
Critical
Published: 08/14/2026 (08/14/2026, 14:12:26 UTC)
Source: GCVE Database
Product: datefmt-core-utils

Description

The npm package datefmt-core-utils version 1.0.0 contains malicious code in its postinstall script. Upon installation, it opens a TCP connection to a hardcoded remote IP and provides an interactive shell to the attacker, effectively allowing remote code execution. The package's advertised date-formatting functionality is a cover for this backdoor behavior.

Affected software

npmghsa
datefmt-core-utils
Affected versions
=1.0.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/14/2026, 16:52:15 UTC

Technical Analysis

The datefmt-core-utils npm package (version 1.0.0) includes a postinstall.js script that executes automatically during installation. This script establishes a TCP connection to the remote IP 8.135.48.40 on port 4444 and redirects the local /bin/bash shell's input and output streams to this socket. It attempts three methods to spawn an interactive shell (using python3 pty.spawn, python3 subprocess, and Node.js net combined with child_process.spawn). This behavior effectively grants the remote endpoint full shell access on the installer's machine. The legitimate date-formatting code in index.js is a decoy to hide the malicious payload.

Potential Impact

Successful installation of this package version results in remote code execution on the installer's system, providing the attacker with an interactive shell and full control. This compromises the confidentiality, integrity, and availability of the affected system. The malicious code runs with the privileges of the user installing the package.

Mitigation Recommendations

Do not install or use datefmt-core-utils version 1.0.0. Remove any installations of this package immediately. Since no patch or fixed version is indicated, avoid this package entirely or seek alternative trusted packages. Monitor for any unauthorized access resulting from this compromise. Patch status is not yet confirmed — check the vendor advisory or npm security advisories for updates.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-14031
Osv Schema Version
1.7.4
Aliases
[]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a7f43f1bf8831d5395d77bd

Added to database: 08/14/2026, 16:36:01 UTC

Last enriched: 08/14/2026, 16:52:15 UTC

Last updated: 08/14/2026, 16:52:15 UTC

Views: 2

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses