MAL-2026-14041

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@demopack/www/MAL-2026-14041.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-14041
Published
2026-08-14T16:11:38Z
Modified
2026-08-14T16:30:15.489122345Z
Summary
Malicious code in @demopack/www (npm)
Details

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

Source: amazon-inspector (d65caef119676a35e0ed5c3ef5a3be0d08c6a487c57270c802319fe68521dadd)

Package.json describes the package as 'Static assets distribution', but the shipped HTML/JS is an iOS-version-gated payload loader. js/index.js unconditionally appends a <script> tag loading https://cdn.jsdelivr.net/npm/@cdnshell/loader/a188ps10.js (an unrelated npm scope, no integrity attribute) into the page. 01iframe.js gates on an iOS user-agent and appends a hidden 0x0 iframe to https://unpkg.com/@themepack/dark/ah3zhsl.html?t=<timestamp> (also an unrelated scope). 02probe.js computes the iOS build number and selects per-iOS-version 'lanes' (iOS 15.2-17.x) executed inside a Worker; in-code Chinese comments explicitly describe primitive injection, sandbox status, and running attack code via Worker ('真实原语注入模块经 Worker 跑攻击代码'), with gate-exit branches for Mac desktop / older versions. Non-iOS visitors are silently ignored; iOS visitors receive the hidden iframe delivering remote HTML. The publisher scope (@demopack) is unrelated to the scopes hosting the loaded code (@cdnshell, @themepack). A developer who integrates these assets into their site would serve a drive-by iOS exploit chain to their end users. There are no lifecycle scripts, so the harm is not to the npm installer directly, but to the visitors of any site that ships these assets; the advertised purpose is a cover story for browser-side exploit delivery.

Database specific
{
    "malicious-packages-origins": [
        {
            "id": "IN-MAL-2026-017911",
            "import_time": "2026-08-14T16:22:16.116142005Z",
            "sha256": "d65caef119676a35e0ed5c3ef5a3be0d08c6a487c57270c802319fe68521dadd",
            "versions": [
                "0.0.12"
            ],
            "source": "amazon-inspector",
            "modified_time": "2026-08-14T16:11:38Z"
        }
    ]
}
References
Credits

Affected packages

npm / @demopack/www

Package

Name
@demopack/www
View open source insights on deps.dev
Purl
pkg:npm/%40demopack/www

Affected ranges

Affected versions

0.*
0.0.12

Database specific

cwes
[
    {
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code",
        "cweId": "CWE-506"
    }
]
indicators
{
    "evidence_files": [
        {
            "path": "js/02_probe.js",
            "tlsh": "5222b51654f3807a2436e0ac870f50292baa642b6497d9c0b78cc7147fe193ac3dafdd",
            "sha256": "273c04a72bfef32d464d2e2944432e309ad9c1a32eea714c08d60822d2dcd028"
        },
        {
            "path": "js/index.js",
            "tlsh": "f421036c5d6db791852d00e02421e5983df540bf7948ea41cdbf8d1c1ed8f6c10abd52",
            "sha256": "08925c4b21296941c5d08be8bd28664469941d6fbd90134af93ae0297d1b2a77"
        },
        {
            "path": "js/01_iframe.js",
            "tlsh": "f51172be073899c4373006d91587f6243b3380b69baa4600d2fee66c6484a641553da6",
            "sha256": "8bc03dfd3a4ddbc5f29c200bc8e3beb33f32583a5cd2022747bc2c059e194bd5"
        },
        {
            "path": "package.json",
            "tlsh": "6dd0a7160e10917306c88678dc245617ab1e052a384c2d1887ea561d135d6f320b676d",
            "sha256": "aeb6853b01c40d67e6d035918e53d55733b3c608198796f851291025c9041316"
        }
    ],
    "package_integrity": [
        {
            "filename": "www-0.0.12.tgz",
            "hashes": {
                "sha1": "635e4e635c8756d403668e5cd75cc2798b5a6ecf",
                "sha512_sri": "sha512-4Smp/WOHl6mUDw8mk1a9grYdGXULVBBDdoFuKHTpyJw7G+DIYjTOVL0a4nVO4KskH/6leH/a/OL6kMoR1AbBjQ=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@demopack/www/MAL-2026-14041.json"