Skip to content
Heist/ feed
Unrated

Malicious code in qr-code-styling-temp (npm)

Type: advisorySource: OSV1 source record

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

Announced Group revision 1
Original source ↗

MAL-2026-4655

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: osv:MAL-2026-4655

qr-code-styling-temp

Source reference: /affected/0/package/name

Affected versions
9.9.10

Source reference: /affected/0/versions

9.9.11

Source reference: /affected/0/versions

Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

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

Publisher severity

No explicit severity was provided.

Event
#10868 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement