MAL-2026-20953

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@onyxim/math/MAL-2026-20953.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-20953
Published
2026-12-01T00:00:00Z
Modified
2026-12-02T04:00:07Z
Summary
Malicious code in @onyxim/math (npm)
Details

@onyxim/math 1.0.2 (npm user villelaaksonen, published 2026-05-27) is a republished copy of the js-math library. Its only change from 1.0.1, published 37 minutes earlier, replaces the dependency javascript-natural-sort with tiny-naturalsort, a malicious package (MAL-2026-5030). Installing @onyxim/math 1.0.2 therefore installs tiny-naturalsort, whose install step runs setup.cjs. In the OpenSSF sandbox this contacted 23.254.164[.]92:8000, started a detached node payload pointed at 23.254.164[.]123:443, and installed a systemd user service (nvmconf.service, ~/.config/systemd/nvmconf/protocal.cjs) for persistence. This matches the dayjs-typosquat campaign (easy-day-js MAL-2026-5979, caspian-day-js MAL-2026-5892). The package works as a carrier that hides the malicious dependency behind a plausible maths library. The package's own code is clean: it is a carrier for the malicious dependency, which npm has since replaced with a security placeholder.

Database specific
{
    "iocs":  {
        "files":  [
            {
                "digests":  {
                    "sha256":  "a3a3e7be8e0790146961d469abe3db58c44d13d7a4f33879810821b31df7a3f0"
                },
                "note":  "malicious file (v1.0.2)",
                "paths":  [
                    "package/package.json"
                ],
                "source":  "PACKAGE_ARCHIVE"
            }
        ],
        "ips":  [
            "23.254.164.123",
            "23.254.164.92"
        ],
        "urls":  [
            "https://23.254.164.92:8000/update/"
        ]
    }
}
References
Credits
    • Radesh Govind - FINDER

Affected packages

npm / @onyxim/math

Package

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

Affected ranges

Affected versions

1.*
1.0.2

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@onyxim/math/MAL-2026-20953.json"