MAL-2026-6359

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/html-to-gutenberg/MAL-2026-6359.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-6359
Aliases
  • GHSA-2gqj-wrf5-35w8
Published
2026-06-24T01:51:00Z
Modified
2026-10-29T14:30:42Z
Summary
Malicious code in html-to-gutenberg (npm)
Details

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

Source: amazon-inspector (ad55bd01687902eea54021b3d30ce0b10f795a1521b425b32e57ef46b7a4ae77)

The published tarball contains api.js at the package root, a heavily obfuscated loader using an obfuscator.io-style XOR-decoded string table (key 0x46) that reconstructs identifiers including 'constructor', stashes require and module on the global object, and uses Function(...) to compile and immediately invoke an approximately 9.6 KB decoded payload. The file is referenced only by the author's manual scripts.build step (node api.js && tsc); it is not referenced by the package's main entry (index.js), not imported by any reachable module, and not invoked by the declared postinstall. The postinstall script performs a local file-copy of vendor/fetch-page-assets/index.ts into node_modules via fs.copyFileSync with no network I/O and no shell exec of api.js. Because the obfuscated loader is dormant on both npm install and require of the package, no installer-harm dataflow is produced in normal consumer use, but shipping an obfuscated dynamic-eval loader with concealed payload contents in a published tarball is an unusual transparency and supply-chain hygiene concern.

Source: ghsa-malware (6381496c1a275836b5d3c11ca7f141ad32f84b5263450bf5cb3c9a91289dcd1d)

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-2gqj-wrf5-35w8",
            "import_time": "2026-06-24T01:59:16.913511774Z",
            "modified_time": "2026-06-24T01:51:05Z",
            "sha256": "6381496c1a275836b5d3c11ca7f141ad32f84b5263450bf5cb3c9a91289dcd1d",
            "source": "ghsa-malware",
            "versions": [
                "4.2.11"
            ]
        },
        {
            "id": "GHSA-2gqj-wrf5-35w8",
            "import_time": "2026-08-02T22:41:04.665132Z",
            "modified_time": "2026-07-31T20:41:37Z",
            "sha256": "e311a5a838f758acacf488a502568566fb82c33303aee309a41614113ea6900c",
            "source": "ghsa-malware",
            "versions": [
                "4.2.14",
                "4.2.11"
            ]
        },
        {
            "id": "IN-MAL-2026-013371",
            "import_time": "2026-08-05T07:06:43.935046667Z",
            "modified_time": "2026-08-05T06:13:36Z",
            "sha256": "3edf079490239b2b4c592ce4b7094c8089596437c15a73972ebd8282484a5273",
            "source": "amazon-inspector",
            "versions": [
                "4.2.14"
            ]
        },
        {
            "id": "GHSA-2gqj-wrf5-35w8",
            "import_time": "2026-08-28T16:24:19.056893248Z",
            "modified_time": "2026-08-28T15:15:40Z",
            "sha256": "c6ca99ca29cc0ce98db0ac82ab220dbd8add677417dc2ac8e721f52eb2c14304",
            "source": "ghsa-malware",
            "versions": [
                "4.2.16",
                "4.2.15",
                "4.2.13",
                "4.2.12",
                "4.2.14",
                "4.2.11"
            ]
        },
        {
            "id": "IN-MAL-2026-019317",
            "import_time": "2026-08-31T18:22:30.131579173Z",
            "modified_time": "2026-08-31T18:04:22Z",
            "sha256": "d8a81a28406e20afb4ca23058394ebd8b749e84333b0fd24a3b2e63a65b18c57",
            "source": "amazon-inspector",
            "versions": [
                "4.2.17"
            ]
        },
        {
            "id": "GHSA-2gqj-wrf5-35w8",
            "import_time": "2026-09-03T05:28:33.855374Z",
            "modified_time": "2026-09-02T05:44:12Z",
            "sha256": "4a8795db7351a0b860948e1e15eaef37cf5d04c4d2ef5881b6e5d536928a4d57",
            "source": "ghsa-malware",
            "versions": [
                "4.2.18",
                "4.2.17",
                "4.2.16",
                "4.2.15",
                "4.2.13",
                "4.2.12",
                "4.2.14",
                "4.2.11"
            ]
        },
        {
            "id": "IN-MAL-2026-019442",
            "import_time": "2026-09-04T01:47:13.822486899Z",
            "modified_time": "2026-09-04T01:43:05Z",
            "sha256": "1174968e4d17db473aae7b809beb7fdc736524f984820800de480d224a2053db",
            "source": "amazon-inspector",
            "versions": [
                "4.2.13"
            ]
        },
        {
            "id": "IN-MAL-2026-019439",
            "import_time": "2026-09-04T01:47:13.553662601Z",
            "modified_time": "2026-09-04T01:42:42Z",
            "sha256": "37f20c51102a5bf8a10320e2c027a33879f96c70b089ac4d0c9f916c9b18e0f4",
            "source": "amazon-inspector",
            "versions": [
                "4.2.18"
            ]
        },
        {
            "id": "IN-MAL-2026-019440",
            "import_time": "2026-09-04T01:47:13.641900537Z",
            "modified_time": "2026-09-04T01:42:49Z",
            "sha256": "45cdbd96e2d8c43d17c85e878889d2d9f30e57a3f752db4a7754d4a55f0e2a38",
            "source": "amazon-inspector",
            "versions": [
                "4.2.16"
            ]
        },
        {
            "id": "IN-MAL-2026-019441",
            "import_time": "2026-09-04T01:47:13.732420116Z",
            "modified_time": "2026-09-04T01:42:58Z",
            "sha256": "dc78f8bbd3aafcfdf8b05c8fedd24102217ef9aec466b970dbed228adc104372",
            "source": "amazon-inspector",
            "versions": [
                "4.2.12"
            ]
        },
        {
            "id": "IN-MAL-2026-019443",
            "import_time": "2026-09-04T01:47:13.91328625Z",
            "modified_time": "2026-09-04T01:43:17Z",
            "sha256": "ec30d6141fa856c57d3ffe4f270bd860c2bc2d075a383582980a0763d57afa2b",
            "source": "amazon-inspector",
            "versions": [
                "4.2.15"
            ]
        },
        {
            "id": "GHSA-2gqj-wrf5-35w8",
            "import_time": "2026-09-09T04:30:04.916403678Z",
            "modified_time": "2026-09-09T04:13:00Z",
            "sha256": "8d9512b7f6c1494ff9ef05358c9f2c661ad85de87e4b860f5b35877b8086a673",
            "source": "ghsa-malware",
            "versions": [
                "4.2.19",
                "4.2.20",
                "4.2.18",
                "4.2.17",
                "4.2.16",
                "4.2.15",
                "4.2.13",
                "4.2.12",
                "4.2.14",
                "4.2.11"
            ]
        },
        {
            "id": "IN-MAL-2026-019839",
            "import_time": "2026-09-09T05:40:09.086970443Z",
            "modified_time": "2026-09-09T05:21:16Z",
            "sha256": "b4e3b38055d924ccd5540e529660f55d9e4f49a2f76897c0903e7475fab1ffd1",
            "source": "amazon-inspector",
            "versions": [
                "4.2.19"
            ]
        },
        {
            "id": "IN-MAL-2026-019882",
            "import_time": "2026-09-09T19:14:56.451954826Z",
            "modified_time": "2026-09-09T18:43:26Z",
            "sha256": "bd513f59d8ff4eef00b432a6197c2fea08a82c63f9df1e7ef362c7308e7692fe",
            "source": "amazon-inspector",
            "versions": [
                "4.2.20"
            ]
        },
        {
            "id": "GHSA-2gqj-wrf5-35w8",
            "import_time": "2026-09-16T21:23:48.915517607Z",
            "modified_time": "2026-09-16T20:47:33Z",
            "sha256": "81dce66e380f5f6d08a3a321d6769102a645df0293147ca6378b588134654cc1",
            "source": "ghsa-malware",
            "versions": [
                "4.2.21",
                "4.2.22",
                "4.2.19",
                "4.2.20",
                "4.2.18",
                "4.2.17",
                "4.2.16",
                "4.2.15",
                "4.2.13",
                "4.2.12",
                "4.2.14",
                "4.2.11"
            ]
        },
        {
            "id": "GHSA-2gqj-wrf5-35w8",
            "import_time": "2026-10-19T13:31:14.433321613Z",
            "modified_time": "2026-10-19T12:43:30Z",
            "sha256": "5d821fe76555d90c1c05ecce2f3892955031f996d3c86143f520348ca2604f2e",
            "source": "ghsa-malware",
            "versions": [
                "4.2.26",
                "4.2.25",
                "4.2.24",
                "4.2.21",
                "4.2.22",
                "4.2.19",
                "4.2.20",
                "4.2.18",
                "4.2.17",
                "4.2.16",
                "4.2.15",
                "4.2.13",
                "4.2.12",
                "4.2.14",
                "4.2.11"
            ]
        },
        {
            "id": "IN-MAL-2026-022007",
            "import_time": "2026-10-29T13:37:19.420824537Z",
            "modified_time": "2026-10-29T13:36:44Z",
            "sha256": "2e66863d21579107377db16cbe0e4cea20585f53529a81533b04ba91851af8e0",
            "source": "amazon-inspector",
            "versions": [
                "4.2.24"
            ]
        },
        {
            "id": "IN-MAL-2026-022006",
            "import_time": "2026-10-29T13:37:19.389149673Z",
            "modified_time": "2026-10-29T13:36:38Z",
            "sha256": "ad55bd01687902eea54021b3d30ce0b10f795a1521b425b32e57ef46b7a4ae77",
            "source": "amazon-inspector",
            "versions": [
                "4.2.26"
            ]
        },
        {
            "id": "IN-MAL-2026-022075",
            "import_time": "2026-10-29T14:14:23.438552297Z",
            "modified_time": "2026-10-29T13:45:33Z",
            "sha256": "d7c536d05b994a22e834ca23d5f29245a37ce948f52f2c836ab0dec95d37ff74",
            "source": "amazon-inspector",
            "versions": [
                "4.2.25"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / html-to-gutenberg

Package

Name
html-to-gutenberg
View open source insights on deps.dev
Purl
pkg:npm/html-to-gutenberg

Affected ranges

Affected versions

4.*
4.2.11
4.2.12
4.2.13
4.2.14
4.2.15
4.2.16
4.2.17
4.2.18
4.2.19
4.2.20
4.2.21
4.2.22
4.2.24
4.2.25
4.2.26

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"
    },
    {
        "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",
        "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": ".vscode/tasks.json",
            "sha256": "f5c6be4753d6613c97f1b10c4d93a5d97a8f4fb21eb13da0ed04b23a8a61c2f6",
            "tlsh": "79017b35ed660e7700ca58a84c6da143993166131e8c3d2eb66d581c0f9d22f767778c"
        },
        {
            "path": "public/fonts/fa-solid-400.woff2",
            "sha256": "cd8445eb0f8810ba5ab9bf4f630f96d3a6be83eaa51aa25829686de49801947a",
            "tlsh": "a6f283843fc0b441274b2e3f7b1b74e8f21a1cb97988458bf614bc44f965616fae1a36"
        }
    ],
    "package_integrity": [
        {
            "filename": "html-to-gutenberg-4.2.14.tgz",
            "hashes": {
                "sha1": "953a02d2a3d5de355519d9d4fec605bdf99dbc8e",
                "sha512_sri": "sha512-J9dmjnX2y24qNTUyyjUiD0cLAovFN0U512RT7VwTRW3dYcSEQwxeldDIP2/x+vengZtLNAUnJJxyohIOsMR7cw=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/html-to-gutenberg/MAL-2026-6359.json"