MAL-2026-18797

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/file-saver-bg/MAL-2026-18797.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-18797
Aliases
  • GHSA-xmgv-vmf4-rqpp
Published
2026-11-07T18:10:16Z
Modified
2026-11-17T05:30:07Z
Summary
Malicious code in file-saver-bg (npm)
Details

file-saver-bg is a dependency-confusion package: it was published on 2026-11-07 with the inflated version 9.9.9 to win version resolution over a private package of the same name. Both its preinstall and postinstall scripts run node beacon.js, which sends an HTTP GET over cleartext HTTP to the hardcoded IP endpoint http://100.24.177.136/cb with the package name, the machine's hostname, the OS user name, the current working directory and the platform as query parameters. The file calls itself an "AUTHORIZED dependency-confusion PoC". The package has no other code; the 0.0.0-stage placeholder version carries no install script and is not affected. Any machine that installed 9.9.9 has disclosed its hostname, user name and filesystem layout to a third party; remove the package, pin or scope internal package names to the internal registry, and block 100.24.177.136 on build hosts.


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

Source: amazon-inspector (dc60a9083c9eef36fa2df3fbf6f9123aea7ddcf1f244b28ce480f8440d0c6380)

file-saver-bg@9.9.9 is a dependency-confusion-shaped package (name resembles 'file-saver', implausibly high version 9.9.9 to win internal resolution) whose package.json declares both preinstall and postinstall lifecycle scripts invoking beacon.js. beacon.js collects os.hostname(), os.userInfo().username, process.cwd(), and os.platform() and transmits them as query parameters in an HTTP GET to the hardcoded bare-IP endpoint http://100.24.177.136/cb. The beacon fires automatically on npm install without any user interaction, disclosing internal build-host identifiers to an attacker-controlled destination.

Source: ghsa-malware (fb2c5b4b6b375b1e32fa020b91c41061e43028b84baded3d7ac0aa49fe67d2f7)

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
{
    "iocs": {
        "files": [
            {
                "digests": {
                    "sha256": "1c8cf0eacb5033593c20dd24459266b2d72a4a5884b8ebfd83e483b3b8fa96fb"
                },
                "note": "preinstall and postinstall: GETs hostname, user name, cwd and platform to the IP endpoint",
                "paths": [
                    "beacon.js"
                ],
                "source": "PACKAGE_ARCHIVE"
            }
        ],
        "ips": [
            "100.24.177.136"
        ],
        "urls": [
            "http://100.24.177.136/cb"
        ]
    },
    "malicious-packages-origins": [
        {
            "id": "GHSA-xmgv-vmf4-rqpp",
            "import_time": "2026-11-09T19:17:53.614290516Z",
            "modified_time": "2026-11-09T17:47:06Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "sha256": "fb2c5b4b6b375b1e32fa020b91c41061e43028b84baded3d7ac0aa49fe67d2f7",
            "source": "ghsa-malware"
        },
        {
            "id": "IN-MAL-2026-022610",
            "import_time": "2026-11-11T21:05:23.704389944Z",
            "modified_time": "2026-11-11T21:03:31Z",
            "sha256": "dc60a9083c9eef36fa2df3fbf6f9123aea7ddcf1f244b28ce480f8440d0c6380",
            "source": "amazon-inspector",
            "versions": [
                "9.9.9"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / file-saver-bg

Package

Name
file-saver-bg
View open source insights on deps.dev
Purl
pkg:npm/file-saver-bg

Affected ranges

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

Affected versions

9.*
9.9.9

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"
    }
]
indicators
{
    "evidence_files": [
        {
            "path": "beacon.js",
            "sha256": "1c8cf0eacb5033593c20dd24459266b2d72a4a5884b8ebfd83e483b3b8fa96fb",
            "tlsh": "e00183f67110c7698e4d08e8a4bf2e9da1fbb3908ce52d80d879c2c45b704602a0b77b"
        },
        {
            "path": "package.json",
            "sha256": "bada79a0b41753d9fb57528af3fe3c11b356c8040483c9e557569f880092fa7a",
            "tlsh": "31d02e818c00be3720f48aea0832115bb1318f5e22380c0bb8f3406c011aa6502a3717"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/file-saver-bg/MAL-2026-18797.json"