MAL-2026-18431

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@mamans2973/maman/MAL-2026-18431.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-18431
Aliases
  • GHSA-fg5w-8hhw-8j6h
Published
2026-10-31T16:09:39Z
Modified
2026-11-13T03:45:11Z
Summary
Malicious code in @mamans2973/maman (npm)
Details

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

Source: amazon-inspector (22ebc597c756f12a49549090e3e0e3135b05d9f7815d442ac671152310d8731c)

This package is a fork of the Baileys WhatsApp library in which lib/Socket/socket.js replaces the standard random pairing code with a hardcoded default. The default value is produced at runtime by CryptoJS AES-decrypting the embedded ciphertext U2FsdGVkX1+LgFmBqo3Wg0zTlHXoebkTRtjmU0cq9Fs= with the password ERROR_FILE, and is bound as the default argument of requestPairingCode(a, b=Z). Any caller that invokes requestPairingCode without explicitly supplying a code gets this attacker-known value, which is then fed to derivePairingCodeKey to derive the AES-CTR key that encrypts the companion-device registration ephemeral public key sent to WhatsApp during linking. A party holding the plaintext can derive the same key and attack the companion-device linking handshake performed by installers of this package. The use of CryptoJS symmetric decryption to conceal a single constant in otherwise readable code is a deliberate concealment technique rather than a build artifact, and upstream Baileys does not contain this construct.

Source: ghsa-malware (a5080387e9f0ad397e73a8405b463024af443bffef67f3fa00d3dadc1bb97c12)

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": "GHSA-fg5w-8hhw-8j6h",
            "import_time": "2026-10-31T16:17:31.251904619Z",
            "modified_time": "2026-10-31T16:13:00Z",
            "sha256": "a5080387e9f0ad397e73a8405b463024af443bffef67f3fa00d3dadc1bb97c12",
            "source": "ghsa-malware",
            "versions": [
                "1.0.1",
                "1.0.0",
                "1.0.3",
                "1.0.2"
            ]
        },
        {
            "id": "GHSA-fg5w-8hhw-8j6h",
            "import_time": "2026-11-02T17:17:13.121722742Z",
            "modified_time": "2026-11-02T16:42:12Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "sha256": "7338235d6aee19e974bd54e4c788a4700f11fc2023907e83910c434e19dc70fc",
            "source": "ghsa-malware",
            "versions": [
                "1.0.1",
                "1.0.0",
                "1.0.3",
                "1.0.2"
            ]
        },
        {
            "id": "IN-MAL-2026-022667",
            "import_time": "2026-11-13T03:36:32.374154963Z",
            "modified_time": "2026-11-13T03:30:39Z",
            "sha256": "22ebc597c756f12a49549090e3e0e3135b05d9f7815d442ac671152310d8731c",
            "source": "amazon-inspector",
            "versions": [
                "1.0.3"
            ]
        },
        {
            "id": "IN-MAL-2026-022664",
            "import_time": "2026-11-13T03:36:32.137655236Z",
            "modified_time": "2026-11-13T03:30:18Z",
            "sha256": "26b78f0798fd099d4eb2cf4cfa297a4ee9361ee540bc34efcca65908fcbe0492",
            "source": "amazon-inspector",
            "versions": [
                "1.0.1"
            ]
        },
        {
            "id": "IN-MAL-2026-022666",
            "import_time": "2026-11-13T03:36:32.296608299Z",
            "modified_time": "2026-11-13T03:30:31Z",
            "sha256": "c56da7f5c3f0d3b5c578fad1d7d47b10558efc7e22ffe4c65ecb3e0531cf0da3",
            "source": "amazon-inspector",
            "versions": [
                "1.0.2"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / @mamans2973/maman

Package

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

Affected ranges

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

Affected versions

1.*
1.0.0
1.0.1
1.0.2
1.0.3

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"
    }
]
indicators
{
    "evidence_files": [
        {
            "path": "lib/Socket/socket.js",
            "sha256": "a4e9383d8849a4370bd9fc9e3aa020fb25af5cdfcec229fdd5e4c051f8ae9551",
            "tlsh": "1b42f833d9f27425773390927923ba3150b84e29f218e166b71d48e959e93c2e523fec"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@mamans2973/maman/MAL-2026-18431.json"