MAL-2026-11099

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/demo-awesome-date-parser-test/MAL-2026-11099.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-11099
Aliases
  • GHSA-xcf3-mw56-cqm5
Published
2026-07-27T15:47:01Z
Modified
2026-07-28T14:36:55.927434928Z
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('.../tagaddedviascriptimport.js')") and by appending a <script src> tag pointing at /tagaddedviascriptfiletagappending.js to <head>, 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.

Database specific
{
    "malicious-packages-origins": [
        {
            "import_time": "2026-07-28T02:02:27.993581Z",
            "sha256": "6e554422e7b097902e753eb63c772c66845f3f19bf0c2974f6fbeb9fe441ec34",
            "modified_time": "2026-07-27T15:47:02Z",
            "id": "GHSA-xcf3-mw56-cqm5",
            "versions": [
                "0.0.7",
                "0.0.6",
                "0.0.5",
                "0.0.4",
                "0.0.3",
                "0.0.2",
                "0.0.1"
            ],
            "source": "ghsa-malware"
        },
        {
            "modified_time": "2026-07-28T13:34:09Z",
            "sha256": "78f9d8522a52a8a7b511febd77ca55d74649d44804ca0da0dc4832646adb632d",
            "import_time": "2026-07-28T14:19:58.375637961Z",
            "id": "IN-MAL-2026-010904",
            "versions": [
                "0.0.3"
            ],
            "source": "amazon-inspector"
        },
        {
            "id": "IN-MAL-2026-010897",
            "sha256": "c46165721d6b575d475d3af67d3de1320285aa30f802144c08bd7bc574e2f06b",
            "modified_time": "2026-07-28T13:33:15Z",
            "import_time": "2026-07-28T14:19:58.055884309Z",
            "versions": [
                "0.0.6"
            ],
            "source": "amazon-inspector"
        },
        {
            "import_time": "2026-07-28T14:19:58.144605939Z",
            "sha256": "3dac7edbd7a941a69901501e2f602b37a483dde93aac9af9270f146fea0e7992",
            "id": "IN-MAL-2026-010899",
            "modified_time": "2026-07-28T13:33:30Z",
            "versions": [
                "0.0.5"
            ],
            "source": "amazon-inspector"
        }
    ]
}
References
Credits

Affected packages

npm / demo-awesome-date-parser-test

Package

Name
demo-awesome-date-parser-test
View open source insights on deps.dev
Purl
pkg:npm/demo-awesome-date-parser-test

Affected ranges

Affected versions

0.*
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.0.7

Database specific

indicators
{
    "evidence_files": [
        {
            "sha256": "2f871dcfc70d4f65ad9453b7b65f5343bf019142d5003a16ef7fe12c1ebe588c",
            "tlsh": "5bd3df81a6905ea2989fa53b9d92ed7dc01e4e3215341e8ec5033baa655331fb5f2c33",
            "path": "src/index.js"
        }
    ]
}
cwes
[
    {
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code",
        "cweId": "CWE-506"
    },
    {
        "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."
    },
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    }
]
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/demo-awesome-date-parser-test/MAL-2026-11099.json"