MAL-2026-17229
Vulnerability from ossf_malicious_packages
Published
2026-09-28 18:08
Modified
2026-09-28 18:08
Summary
Malicious code in simple-date-formatter-new-12 (npm)
Details

-= 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.

CWE
  • CWE-506 - The product contains code that appears to be malicious in nature.

{
  "affected": [
    {
      "database_specific": {
        "cwes": [
          {
            "cweId": "CWE-506",
            "description": "The product contains code that appears to be malicious in nature.",
            "name": "Embedded Malicious Code"
          }
        ],
        "indicators": {
          "evidence_files": [
            {
              "path": "package.json",
              "sha256": "b4d64adc3fc3bb08e95661f461973e58576b1800650da2dba44eff2548dcffa9",
              "tlsh": "3af05c44d6046db357c386fc9a66050e7b01ae1714447d05b3aa08ac839aef641ba30f"
            }
          ],
          "package_integrity": [
            {
              "filename": "simple-date-formatter-new-12-1.0.0.tgz",
              "hashes": {
                "sha1": "040d3c85a17f9e618d8e22b6cd60394ef9c7f60f",
                "sha512_sri": "sha512-fKDny5UVQjvfzJkCUcTJ5vw4m/I90MHxhGQd0QvmEVFZKgfVncxB8b1+/Yy9zzxSqrpjyMXg/HSXGPH+SOio5w=="
              }
            }
          ]
        }
      },
      "package": {
        "ecosystem": "npm",
        "name": "simple-date-formatter-new-12"
      },
      "versions": [
        "1.0.0"
      ]
    }
  ],
  "credits": [
    {
      "contact": [
        "inspector-research@amazon.com"
      ],
      "name": "Amazon Inspector",
      "type": "FINDER"
    }
  ],
  "database_specific": {
    "malicious-packages-origins": [
      {
        "id": "IN-MAL-2026-020609",
        "import_time": "2026-09-28T18:24:40.812632607Z",
        "modified_time": "2026-09-28T18:08:15Z",
        "sha256": "bd79db99adb8878673dd85db5a29661432808fa8fcc5e3d750b907418df8ae5f",
        "source": "amazon-inspector",
        "versions": [
          "1.0.0"
        ]
      }
    ]
  },
  "details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (bd79db99adb8878673dd85db5a29661432808fa8fcc5e3d750b907418df8ae5f)\nnpm 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\u0027s 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\u0027s network position to a third-party collector.\n",
  "id": "MAL-2026-17229",
  "modified": "2026-09-28T18:08:15Z",
  "published": "2026-09-28T18:08:15Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://www.npmjs.com/package/simple-date-formatter-new-12/v/1.0.0"
    }
  ],
  "schema_version": "1.7.4",
  "summary": "Malicious code in simple-date-formatter-new-12 (npm)"
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…