Skip to main content

Malicious code in simple-date-formatter-new-12 (npm)

0
High
Published: 09/28/2026 (09/28/2026, 18:08:15 UTC)
Source: GCVE Database
Product: simple-date-formatter-new-12

Description

The npm package [email protected] contains malicious code in its postinstall script that executes automatically during installation. This script fetches data from an internal Baidu host and exfiltrates the response to an attacker-controlled server. The package's stated functionality is a simple date formatter, but the embedded network activity is unrelated and indicative of a dependency confusion or typosquatting attack to probe internal network access and leak data.

Affected software

npmghsa
simple-date-formatter-new-12
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: 09/29/2026, 04:59:45 UTC

Technical Analysis

The npm package simple-date-formatter-new-12 version 1.0.0 includes a postinstall lifecycle script that runs automatically on npm install. This script uses curl to request an internal Baidu URL, writes the response to a temporary file, and then sends the file contents to an attacker-controlled interactsh collector domain. The package's advertised functionality is a trivial date-formatting wrapper, but the embedded SSRF probe and outbound data exfiltration are unrelated to its purpose. The package's naming pattern, lack of author metadata, and exfiltration behavior suggest it is a malicious dependency confusion or typosquatting probe designed to detect installation within target organizations and leak internal network responses.

Potential Impact

Installation of this package results in execution of malicious code that performs server-side request forgery (SSRF) to an internal Baidu host and exfiltrates the response data to an attacker-controlled server. This can lead to leakage of internal network information and potentially sensitive data accessible from the installer's network environment. The malicious behavior is hidden in a package that appears to provide benign date formatting functionality, increasing the risk of inadvertent installation in development or production environments.

Mitigation Recommendations

No official patch or remediation is indicated in the provided data. Users should avoid installing the simple-date-formatter-new-12 package version 1.0.0. Review and remove this package if already installed. Employ strict package source verification and dependency auditing to prevent installation of typosquatting or malicious packages. Monitor package registries and advisories for updates or removals related to this package.

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-17229
Osv Schema Version
1.7.4
Ecosystems
["npm"]

Threat ID: 6abb41abf7a7c54106cc3a51

Added to database: 09/29/2026, 04:42:19 UTC

Last enriched: 09/29/2026, 04:59:45 UTC

Last updated: 09/29/2026, 18:00:19 UTC

Views: 13

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