MAL-2026-6921

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/jsf-utils/MAL-2026-6921.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-6921
Aliases
  • GHSA-2jff-wp39-wgch
Published
2026-07-07T15:13:22Z
Modified
2026-07-09T17:31:54.479113781Z
Summary
Malicious code in jsf-utils (npm)
Details

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

Source: amazon-inspector (f6a2a0bbd4939a789673bdca08866c9be58dd361df175695e7f8c1141bed4e47)

On require('jsf-utils'), lib/string/pathcase.js runs a top-level async IIFE that fetches a JavaScript payload from https://jsonkeeper.com/b/BPB86 and executes it in-process via Function.constructor with access to the installer's require. The file is auto-loaded because lib/index.js and lib/string/index.js recursively require every module in the tree. The exported pathcase function additionally spawns a detached, stdio-ignored node child process using the fetched script as argv, extending execution beyond the import-time IIFE and surviving parent exit. The remote-fetch-and-eval logic is placed inside a file whose stated purpose is a trivial string helper (pathcase), with the original benign implementation left commented out below the payload — concealment inside an innocuous utility. The package impersonates jonschlinkert/utils by reusing that project's author, homepage, and repository metadata while shipping under the name jsf-utils. Because the payload host is a mutable anonymous paste service, the executed code can be changed by the attacker at any time without republishing the package.

Source: ghsa-malware (17ec4d3467dc2baf85fbb6a18391ee4fd7d59044080f07cde071705f9f28097a)

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": [
        {
            "sha256": "17ec4d3467dc2baf85fbb6a18391ee4fd7d59044080f07cde071705f9f28097a",
            "id": "GHSA-2jff-wp39-wgch",
            "modified_time": "2026-07-07T15:13:23Z",
            "import_time": "2026-07-07T15:15:50.679195709Z",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "source": "ghsa-malware"
        },
        {
            "sha256": "ef8f6966be869d917854e50343b91aa637713ed595cf184167161ee19b82c33e",
            "id": "IN-MAL-2026-009329",
            "import_time": "2026-07-09T17:19:24.77519203Z",
            "modified_time": "2026-07-09T16:56:42Z",
            "versions": [
                "1.3.1"
            ],
            "source": "amazon-inspector"
        },
        {
            "sha256": "f6a2a0bbd4939a789673bdca08866c9be58dd361df175695e7f8c1141bed4e47",
            "id": "IN-MAL-2026-009327",
            "import_time": "2026-07-09T17:19:24.488347809Z",
            "modified_time": "2026-07-09T16:56:27Z",
            "versions": [
                "0.3.1"
            ],
            "source": "amazon-inspector"
        }
    ]
}
References
Credits

Affected packages

npm / jsf-utils

Package

Affected ranges

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

Affected versions

0.*
0.3.1
1.*
1.3.1

Database specific

indicators
{
    "evidence_files": [
        {
            "sha256": "f8325fe183028931b2d3e5d8b650e89eac77cb6db44e5eddfa22f87b682c2d14",
            "tlsh": "22312f4a34f1724a923976e8959f90627092e012311fd4d4f28d93d22fd49a98673dde",
            "path": "lib/string/pathcase.js"
        },
        {
            "sha256": "20ba7aaf3b8965a6521205723fd9010e841d649bfcc1118ad4f766c3fdc84bfe",
            "tlsh": "67412355cd65cca30ad822f5686d0246e660881b8d55fd0c338a6f8c4f6e06f75b8f2e",
            "path": "package.json"
        }
    ]
}
cwes
[
    {
        "name": "Embedded Malicious Code",
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature."
    },
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    },
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    }
]
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/jsf-utils/MAL-2026-6921.json"