Skip to content
Heist/ feed
Unrated

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

Type: advisorySource: OSV1 source record

--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (bd79db99adb8878673dd85db5a29661432808fa8fcc5e3d750b907418df8ae5f) npm package simple-date-formatter-new-12@1.0.0 declares a postinstall lifecycle script in package.json that runs automatically on `npm install`. The script uses curl to fetch an internal Baidu host (http://bsrc-ssrf.n.baidu-int.com/...), writes the response to /tmp/bsrc.txt, and POSTs the contents to an attacker-controlled interactsh collector at pdxkwzizhzzdpzpgcieqk6d1v7ynqsgfo.oast.fun/bsrc. The package's advertised purpose is a trivial date-formatting wrapper (index.js exports a single formatDate function); the SSRF probe and outbound exfiltration are unrelated to that purpose. The name shape (`simple-date-formatter-new-12`), empty author metadata, and OAST beacon are consistent with a dependency-confusion / typosquat probe designed to detect installation inside a target organization and leak internal network responses reachable from the installer's network position to a third-party collector.

Announced Source revision 1
Original source ↗

MAL-2026-17229

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: osv:MAL-2026-17229

simple-date-formatter-new-12

Source reference: /affected/0/package/name

Affected versions
1.0.0

Source reference: /affected/0/versions

Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "package": {
      "name": "simple-date-formatter-new-12",
      "purl": "pkg:npm/simple-date-formatter-new-12",
      "ecosystem": "npm"
    },
    "versions": [
      "1.0.0"
    ],
    "database_specific": {
      "cwes": [
        {
          "name": "Embedded Malicious Code",
          "cweId": "CWE-506",
          "description": "The product contains code that appears to be malicious in nature."
        }
      ],
      "source": "https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/simple-date-formatter-new-12/MAL-2026-17229.json",
      "indicators": {
        "evidence_files": [
          {
            "path": "package.json",
            "tlsh": "3af05c44d6046db357c386fc9a66050e7b01ae1714447d05b3aa08ac839aef641ba30f",
            "sha256": "b4d64adc3fc3bb08e95661f461973e58576b1800650da2dba44eff2548dcffa9"
          }
        ],
        "package_integrity": [
          {
            "hashes": {
              "sha1": "040d3c85a17f9e618d8e22b6cd60394ef9c7f60f",
              "sha512_sri": "sha512-fKDny5UVQjvfzJkCUcTJ5vw4m/I90MHxhGQd0QvmEVFZKgfVncxB8b1+/Yy9zzxSqrpjyMXg/HSXGPH+SOio5w=="
            },
            "filename": "simple-date-formatter-new-12-1.0.0.tgz"
          }
        ]
      }
    }
  }
]

Publisher severity

No explicit severity was provided.

Event
#23576 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement