MAL-2026-4655

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/qr-code-styling-temp/MAL-2026-4655.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-4655
Aliases
  • GHSA-m7q2-jqhj-4f3q
  • GHSA-pp2c-4x5r-7h8j
Published
2026-05-19T18:45:27Z
Modified
2026-09-01T11:40:23Z
Summary
Malicious code in qr-code-styling-temp (npm)
Details

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

Source: amazon-inspector (004a5cc51cc0e38448c56189fb4437ad113eec163f7ae1a7692b88d6aed71182)

The package's install lifecycle script (node index.js) and its main entry both load lib/core.js, which reads os.userInfo().username, os.hostname(), and the current working directory basename and encodes them into a subdomain of oob.sl4x0.xyz, then triggers a dns.resolve4 lookup of samsung.<user>.<host>.<cwd>.<ts>.oob.sl4x0.xyz. This is an out-of-band DNS exfiltration beacon that fires on every npm install and on every require() of the package, leaking installer identity to an attacker-controlled domain. Module names (os, dns, process, userInfo, hostname, resolve4) and the C2 domain are hidden as String.fromCharCode charcode arrays in lib/b02e30.js and lib/6ad264.js, with os and dns loaded via module.constructor._load(...) to evade static require scanners. The package name impersonates the popular qr-code-styling library but ships an unrelated API surface, and the author email research@sl4x0.xyz shares the same domain as the exfiltration host — confirming the typosquat lure and attacker-controlled infrastructure.

Source: ghsa-malware (43b8423ecd37f8d1df1993875c76be89c795b0d55248f8cf0f03071405cca3f2)

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": [
        {
            "id": "IN-MAL-2026-003240",
            "import_time": "2026-05-26T05:50:16.384829394Z",
            "modified_time": "2026-05-19T18:45:27Z",
            "sha256": "004a5cc51cc0e38448c56189fb4437ad113eec163f7ae1a7692b88d6aed71182",
            "source": "amazon-inspector",
            "versions": [
                "9.9.10"
            ]
        },
        {
            "id": "IN-MAL-2026-003248",
            "import_time": "2026-05-26T05:50:17.416947799Z",
            "modified_time": "2026-05-19T18:58:10Z",
            "sha256": "20b1cb1f8211a6eb0d5b0ec3bb8cf8819cdd1c661c806e838d62f8c157e0e37f",
            "source": "amazon-inspector",
            "versions": [
                "9.9.11"
            ]
        },
        {
            "id": "GHSA-pp2c-4x5r-7h8j",
            "import_time": "2026-08-21T12:26:03.496845058Z",
            "modified_time": "2026-08-21T11:28:58Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "sha256": "43b8423ecd37f8d1df1993875c76be89c795b0d55248f8cf0f03071405cca3f2",
            "source": "ghsa-malware"
        },
        {
            "id": "RLMA-2026-06399",
            "import_time": "2026-09-01T11:17:33.604255539Z",
            "modified_time": "2026-08-24T17:05:30Z",
            "sha256": "505baa75793240f5745baabd612aca9f182d02d3854e3ee0641be0eea39c6229",
            "source": "reversing-labs",
            "versions": [
                "9.9.10",
                "9.9.11"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / qr-code-styling-temp

Package

Name
qr-code-styling-temp
View open source insights on deps.dev
Purl
pkg:npm/qr-code-styling-temp

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

9.*
9.9.10
9.9.11

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"
    }
]
indicators
{
    "evidence_files": [
        {
            "path": "lib/core.js",
            "sha256": "d24415d02b2768deed6613ba41e3837825889459718a582d352a0805d40a321c",
            "tlsh": "d0f02d69b393c48f97e096d0360a53d18559c3c0e7cf8195fb7c4a87904e7d1ca85a55"
        },
        {
            "path": "lib/b02e30.js",
            "sha256": "1a2311c854ee8851bcbb6c5ec8cad943891f72e184b21bd9716581be36295af0",
            "tlsh": "56e068073303c94fa1c80bfb7d0050e0aa0d8b58a21dc0d6b528678500af447c0c0632"
        },
        {
            "path": "package.json",
            "sha256": "a30d0c5d786712e9c52406ca2a4e8671031aa6e93ee0b4512776bbe3c6cab583",
            "tlsh": "16218b22ce214c233ad969a0ad6d3941b4a70c974e547c0977c2522d8fdf26f12bf61d"
        }
    ],
    "package_integrity": [
        {
            "filename": "qr-code-styling-temp-9.9.10.tgz",
            "hashes": {
                "sha1": "07bf549e8950e4005997e20e77f7376de489af54",
                "sha512_sri": "sha512-veeCwOt/VuCzgo8x3TW2v2ZKMlOok62RbOn70hYbJJrmZjtI5EkJIYw9VNcOgY9qqStWgNhMNTWzZ6VMAwSXhg=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/qr-code-styling-temp/MAL-2026-4655.json"