MAL-2026-14544

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/self-sign/MAL-2026-14544.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-14544
Aliases
  • GHSA-9jvg-g3cg-g557
Published
2026-08-26T19:13:44Z
Modified
2026-08-27T04:00:13.774579384Z
Summary
Malicious code in self-sign (npm)
Details

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

Source: amazon-inspector (b684f78f17626dead6b3d11131179a7a1aff7fa5e903daeecdac17ce8e3b99b3)

The exported generate() function in self-sign@5.6.7 accepts an undocumented third defaults parameter. When passed a string, the code strips PEM -----BEGIN CERTIFICATE----- headers, base64-decodes the remaining body, and passes the result to eval() inside a silent try/catch. The TypeScript declaration file advertises only two parameters, concealing the sink, while the shipped README examples pass a third argument (null), normalising the call shape so downstream callers can be induced to propagate attacker-controllable certificate-shaped strings into the eval sink. A cryptographic/x509 helper has no legitimate reason to evaluate base64 content extracted from a certificate string; this pattern yields arbitrary JavaScript execution in the process of any consumer that reaches this code path with attacker-influenced input. The package.json name (self-sign) also diverges from the require identifier used in the shipped documentation (require('selfsign')), a naming inconsistency that supports confusion with the legitimate selfsigned library.

Source: ghsa-malware (b8adbf388bace10b905f93be8487c3b1866d941ecc0f968972de85f3b20f44de)

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": [
        {
            "modified_time": "2026-08-26T19:13:44Z",
            "source": "ghsa-malware",
            "sha256": "b8adbf388bace10b905f93be8487c3b1866d941ecc0f968972de85f3b20f44de",
            "id": "GHSA-9jvg-g3cg-g557",
            "import_time": "2026-08-26T19:54:17.657026971Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ]
        },
        {
            "versions": [
                "5.6.2"
            ],
            "source": "amazon-inspector",
            "sha256": "ecfd7afea4b067c4810476267ef67b7c880bd0b5255da43bb18d87b4b251d30d",
            "id": "IN-MAL-2026-018788",
            "modified_time": "2026-08-27T03:00:12Z",
            "import_time": "2026-08-27T03:55:27.625535771Z"
        },
        {
            "versions": [
                "5.6.5"
            ],
            "source": "amazon-inspector",
            "sha256": "ee2fffc752e67739d1d8f7ad70acb021ed39c10f941fd844b9fb2f18bce73d91",
            "id": "IN-MAL-2026-018793",
            "import_time": "2026-08-27T03:55:28.502286517Z",
            "modified_time": "2026-08-27T03:01:01Z"
        },
        {
            "versions": [
                "5.6.8"
            ],
            "source": "amazon-inspector",
            "sha256": "0b93022d81e48b3031470031c6a14cd268f87beb846a92d5d3ac53230d937858",
            "id": "IN-MAL-2026-018784",
            "modified_time": "2026-08-27T02:59:40Z",
            "import_time": "2026-08-27T03:55:27.04811638Z"
        },
        {
            "versions": [
                "5.6.6"
            ],
            "source": "amazon-inspector",
            "sha256": "b3e0fcaa758a9f64ac8e5d0001179fb2e9e90c38bb9961c5d3f32f5f5b6d8719",
            "id": "IN-MAL-2026-018795",
            "import_time": "2026-08-27T03:55:28.921057157Z",
            "modified_time": "2026-08-27T03:01:18Z"
        },
        {
            "versions": [
                "5.6.9"
            ],
            "source": "amazon-inspector",
            "sha256": "d8b90570d1bf13d947069e5a792a6c4a9b47f8e4b4b817e1ca1f08b464445750",
            "id": "IN-MAL-2026-018781",
            "import_time": "2026-08-27T03:55:26.658469854Z",
            "modified_time": "2026-08-27T02:59:12Z"
        },
        {
            "versions": [
                "5.6.4"
            ],
            "source": "amazon-inspector",
            "sha256": "fce1d532f7d5d587126f607b871c6ee80f6d4c7f8816f83b9c4f8af99e8dc672",
            "id": "IN-MAL-2026-018785",
            "modified_time": "2026-08-27T02:59:47Z",
            "import_time": "2026-08-27T03:55:27.143610744Z"
        },
        {
            "versions": [
                "5.6.3"
            ],
            "source": "amazon-inspector",
            "sha256": "54d8b5cea5509894cbda69157d6759b8c9441a9a3c8b24f247535e80b2a521d2",
            "id": "IN-MAL-2026-018796",
            "import_time": "2026-08-27T03:55:29.045792879Z",
            "modified_time": "2026-08-27T03:01:26Z"
        },
        {
            "versions": [
                "5.6.1"
            ],
            "source": "amazon-inspector",
            "sha256": "789fc27f1b55052cd678616b438a9f44ceea06d79363a0025626666ab95261ff",
            "id": "IN-MAL-2026-018794",
            "import_time": "2026-08-27T03:55:28.670306012Z",
            "modified_time": "2026-08-27T03:01:09Z"
        },
        {
            "versions": [
                "5.6.7"
            ],
            "source": "amazon-inspector",
            "sha256": "b684f78f17626dead6b3d11131179a7a1aff7fa5e903daeecdac17ce8e3b99b3",
            "id": "IN-MAL-2026-018782",
            "import_time": "2026-08-27T03:55:26.833064978Z",
            "modified_time": "2026-08-27T02:59:23Z"
        }
    ]
}
References
Credits

Affected packages

npm / self-sign

Package

Affected ranges

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

Affected versions

5.*
5.6.1
5.6.2
5.6.3
5.6.4
5.6.5
5.6.6
5.6.7
5.6.8
5.6.9

Database specific

indicators
{
    "evidence_files": [
        {
            "path": "index.js",
            "sha256": "0e525f6b57003272a72f78cabe2a11538a8902c4d88cc6807cb5d4f2f773d7d6",
            "tlsh": "2d9273125c52597108b2e3b1db53d180f7294223726769923aee4bcd2f71ca0d6aefdc"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/self-sign/MAL-2026-14544.json"
cwes
[
    {
        "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",
        "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"
    }
]