MAL-2026-5464

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/db-xorma/MAL-2026-5464.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-5464
Published
2026-06-09T20:18:54Z
Modified
2026-06-26T21:46:45Z
Summary
Malicious code in db-xorma (npm)
Details

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

Source: amazon-inspector (1428486c71a3cd7d89ea90a17631bb5dc0fee7e11a6cbb4d8029a8b25268c7d2)

db-xorma advertises itself as a reactive in-memory database library. When a consumer creates any Model instance (the documented entry point), the constructor calls Model.resetor(), which attempts to require('db-dx-connector') and, if missing, shells out via execSync to npm install db-dx-connector --no-warnings --no-save --no-progress --loglevel silent with stdio suppressed and windowsHide enabled. It then immediately requires the freshly-fetched package and invokes new DxDatabaseConnector({}).queryDBConnect(). The fetched dependency is unpinned (whatever the attacker publishes at the moment of execution will run), --no-save evades the consumer's package.json/lockfile, and output is silenced. This is a runtime-dropper pattern that gives the publisher of db-dx-connector arbitrary code execution inside any process that imports db-xorma and constructs a Model. Additionally, package.json declares a dependency on 'child_process' ^1.0.2 — a known typosquat of the Node core module name, which adds an additional attacker-controlled code path via that package's own install lifecycle. A commented-out variant of the same dropper template targeting 'clsx-js' remains in dist/index.js, indicating the pattern is iterated across package names.

Database specific
{
    "malicious-packages-origins":  [
        {
            "id":  "IN-MAL-2026-005191",
            "import_time":  "2026-06-09T20:45:50.898140803Z",
            "modified_time":  "2026-06-09T20:18:54Z",
            "sha256":  "1428486c71a3cd7d89ea90a17631bb5dc0fee7e11a6cbb4d8029a8b25268c7d2",
            "source":  "amazon-inspector",
            "versions":  [
                "1.0.2"
            ]
        },
        {
            "id":  "IN-MAL-2026-005248",
            "import_time":  "2026-06-09T22:36:25.449546771Z",
            "modified_time":  "2026-06-09T21:39:41Z",
            "sha256":  "7a0a6d972b6cf17adb4b5bc9ed777b09afb307c801e56be6d81bf98216001c44",
            "source":  "amazon-inspector",
            "versions":  [
                "1.0.1"
            ]
        },
        {
            "id":  "IN-MAL-2026-005251",
            "import_time":  "2026-06-09T22:36:25.597822089Z",
            "modified_time":  "2026-06-09T21:43:32Z",
            "sha256":  "b3ae2dc2f44f2924a368585ef601221e4a597fbd372c9eb24e13db5edb23834c",
            "source":  "amazon-inspector",
            "versions":  [
                "1.0.0"
            ]
        },
        {
            "id":  "IN-MAL-2026-007024",
            "import_time":  "2026-06-18T19:20:02.957954512Z",
            "modified_time":  "2026-06-18T19:10:01Z",
            "sha256":  "0ec9aaf440f01c1358120520feb4ff3a94cfc4b78a6d60ee37dc7e6f8384b7af",
            "source":  "amazon-inspector",
            "versions":  [
                "1.0.3"
            ]
        },
        {
            "id":  "IN-MAL-2026-007025",
            "import_time":  "2026-06-18T19:20:03.058187284Z",
            "modified_time":  "2026-06-18T19:10:02Z",
            "sha256":  "829e11e2363d79632dbac318082f779dd7463e86f53e96e3754998f5abd398be",
            "source":  "amazon-inspector",
            "versions":  [
                "1.0.4"
            ]
        },
        {
            "id":  "IN-MAL-2026-007666",
            "import_time":  "2026-06-26T21:34:02.468247782Z",
            "modified_time":  "2026-06-26T21:09:12Z",
            "sha256":  "fae36cd876f54307c59e26a0095ec6879d48700c1bd524f834a3599f00860727",
            "source":  "amazon-inspector",
            "versions":  [
                "1.0.5"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / db-xorma

Package

Affected ranges

Affected versions

1.*
1.0.0
1.0.1
1.0.2
1.0.3
1.0.4
1.0.5

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"
    },
    {
        "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":  "dist/index.js",
            "sha256":  "127dcd647b48bc15c326dc3f2d939e69d4b6bbb3b29ea99aa2bd8bb6026d8b6c",
            "tlsh":  "fc52138937fb2930456b30651e0f8107b63a944ba91dee4c7a9c42d4af4847e52f3bf9"
        },
        {
            "path":  "package.json",
            "sha256":  "f9e7681bcf64652ef7f0b0b62b6a882a7d6e7873f57423da2be11b123cbc9141",
            "tlsh":  "46012630ca218ab356d825d05cbb15a36e62895b0446bc5833c7870c0a4e66b50fd6bd"
        }
    ],
    "package_integrity":  [
        {
            "filename":  "db-xorma-1.0.2.tgz",
            "hashes":  {
                "sha1":  "21004e1bb8ffba2a67712600fd4308ed66e0ce61",
                "sha512_sri":  "sha512-4UX2qrmBEnL/E7W+5tIqiLlKEXiqb+29+LIXSDEduDTA03/jHee0sEI3Buk6y7ql9AZGxNlfTIKQyqlpiWQKsw=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/db-xorma/MAL-2026-5464.json"