mal-2026-11099
Vulnerability from ossf_malicious_packages
Published
2026-07-27 15:47
Modified
2026-07-28 14:22
Summary
Malicious code in demo-awesome-date-parser-test (npm)
Details

-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (3dac7edbd7a941a69901501e2f602b37a483dde93aac9af9270f146fea0e7992)

The package advertises itself as a date parser but the public API demoParseDate performs several unrelated hostile actions against the calling application. It reads form fields (name, age, address) from Ant Design 'Add client' modals and issues a GET to //attacker.dspdemo.ru/leak with those values as query parameters. The module hardcodes //attacker.dspdemo.ru as the default host and additionally uses navigator.sendBeacon at page unload to ship data stored in localStorage (sendToUnload_*) to the same host. On invocation it also loads and executes remote JavaScript from that host via eval("import('.../tag_added_via_script_import.js')") and by appending a tag pointing at /tag_added_via_script_file_tag_appending.js to , giving the operator arbitrary code execution in the installer's page context. Multiple dynamic-code sinks (eval, new Function, string-form setTimeout/setInterval) are present, including a recurring eval interval self-labeled 'Attack vector: eval execution'. Two seconds after demoParseDate is called, an embedded ~73 KB PDF blob is decoded and programmatically clicked to force a download named 'Список клиентов.pdf' without a user gesture. None of these behaviors are related to date parsing or disclosed to the caller.

Source: ghsa-malware (6e554422e7b097902e753eb63c772c66845f3f19bf0c2974f6fbeb9fe441ec34)

Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

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

{
  "affected": [
    {
      "database_specific": {
        "cwes": [
          {
            "cweId": "CWE-506",
            "description": "The product contains code that appears to be malicious in nature.",
            "name": "Embedded Malicious Code"
          },
          {
            "cweId": "CWE-506",
            "description": "The product contains code that appears to be malicious in nature.",
            "name": "Embedded Malicious Code"
          },
          {
            "cweId": "CWE-506",
            "description": "The product contains code that appears to be malicious in nature.",
            "name": "Embedded Malicious Code"
          },
          {
            "cweId": "CWE-506",
            "description": "The product contains code that appears to be malicious in nature.",
            "name": "Embedded Malicious Code"
          }
        ],
        "indicators": {
          "evidence_files": [
            {
              "path": "src/index.js",
              "sha256": "2f871dcfc70d4f65ad9453b7b65f5343bf019142d5003a16ef7fe12c1ebe588c",
              "tlsh": "5bd3df81a6905ea2989fa53b9d92ed7dc01e4e3215341e8ec5033baa655331fb5f2c33"
            }
          ]
        }
      },
      "package": {
        "ecosystem": "npm",
        "name": "demo-awesome-date-parser-test"
      },
      "versions": [
        "0.0.7",
        "0.0.6",
        "0.0.5",
        "0.0.4",
        "0.0.3",
        "0.0.2",
        "0.0.1"
      ]
    }
  ],
  "aliases": [
    "GHSA-xcf3-mw56-cqm5"
  ],
  "credits": [
    {
      "contact": [
        "inspector-research@amazon.com"
      ],
      "name": "Amazon Inspector",
      "type": "FINDER"
    }
  ],
  "database_specific": {
    "malicious-packages-origins": [
      {
        "id": "GHSA-xcf3-mw56-cqm5",
        "import_time": "2026-07-28T02:02:27.993581Z",
        "modified_time": "2026-07-27T15:47:02Z",
        "sha256": "6e554422e7b097902e753eb63c772c66845f3f19bf0c2974f6fbeb9fe441ec34",
        "source": "ghsa-malware",
        "versions": [
          "0.0.7",
          "0.0.6",
          "0.0.5",
          "0.0.4",
          "0.0.3",
          "0.0.2",
          "0.0.1"
        ]
      },
      {
        "id": "IN-MAL-2026-010904",
        "import_time": "2026-07-28T14:19:58.375637961Z",
        "modified_time": "2026-07-28T13:34:09Z",
        "sha256": "78f9d8522a52a8a7b511febd77ca55d74649d44804ca0da0dc4832646adb632d",
        "source": "amazon-inspector",
        "versions": [
          "0.0.3"
        ]
      },
      {
        "id": "IN-MAL-2026-010897",
        "import_time": "2026-07-28T14:19:58.055884309Z",
        "modified_time": "2026-07-28T13:33:15Z",
        "sha256": "c46165721d6b575d475d3af67d3de1320285aa30f802144c08bd7bc574e2f06b",
        "source": "amazon-inspector",
        "versions": [
          "0.0.6"
        ]
      },
      {
        "id": "IN-MAL-2026-010899",
        "import_time": "2026-07-28T14:19:58.144605939Z",
        "modified_time": "2026-07-28T13:33:30Z",
        "sha256": "3dac7edbd7a941a69901501e2f602b37a483dde93aac9af9270f146fea0e7992",
        "source": "amazon-inspector",
        "versions": [
          "0.0.5"
        ]
      }
    ]
  },
  "details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (3dac7edbd7a941a69901501e2f602b37a483dde93aac9af9270f146fea0e7992)\nThe package advertises itself as a date parser but the public API demoParseDate performs several unrelated hostile actions against the calling application. It reads form fields (name, age, address) from Ant Design \u0027Add client\u0027 modals and issues a GET to //attacker.dspdemo.ru/leak with those values as query parameters. The module hardcodes //attacker.dspdemo.ru as the default host and additionally uses navigator.sendBeacon at page unload to ship data stored in localStorage (sendToUnload_*) to the same host. On invocation it also loads and executes remote JavaScript from that host via eval(\"import(\u0027.../tag_added_via_script_import.js\u0027)\") and by appending a \u003cscript src\u003e tag pointing at /tag_added_via_script_file_tag_appending.js to \u003chead\u003e, giving the operator arbitrary code execution in the installer\u0027s page context. Multiple dynamic-code sinks (eval, new Function, string-form setTimeout/setInterval) are present, including a recurring eval interval self-labeled \u0027Attack vector: eval execution\u0027. Two seconds after demoParseDate is called, an embedded ~73 KB PDF blob is decoded and programmatically clicked to force a download named \u0027\u0421\u043f\u0438\u0441\u043e\u043a \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432.pdf\u0027 without a user gesture. None of these behaviors are related to date parsing or disclosed to the caller.\n\n## Source: ghsa-malware (6e554422e7b097902e753eb63c772c66845f3f19bf0c2974f6fbeb9fe441ec34)\nAny computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.\n",
  "id": "MAL-2026-11099",
  "modified": "2026-07-28T14:22:01Z",
  "published": "2026-07-27T15:47:01Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/advisories/GHSA-xcf3-mw56-cqm5"
    },
    {
      "type": "PACKAGE",
      "url": "https://www.npmjs.com/package/demo-awesome-date-parser-test/v/0.0.3"
    },
    {
      "type": "PACKAGE",
      "url": "https://www.npmjs.com/package/demo-awesome-date-parser-test/v/0.0.6"
    },
    {
      "type": "PACKAGE",
      "url": "https://www.npmjs.com/package/demo-awesome-date-parser-test/v/0.0.5"
    }
  ],
  "schema_version": "1.7.4",
  "summary": "Malicious code in demo-awesome-date-parser-test (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…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Loading…