MAL-2026-6361

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/vscode-test-web/MAL-2026-6361.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-6361
Aliases
  • GHSA-vxwh-gqjr-fxcw
Published
2026-06-24T01:17:57Z
Modified
2026-07-08T22:01:52.675449151Z
Summary
Malicious code in vscode-test-web (npm)
Details

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

Source: amazon-inspector (c62d19484eeb938a92dfdcc6cbce9dba47e390676774254b0dc318702a214418)

Package occupies the unscoped npm name vscode-test-web, a likely-misreference target for the legitimate @vscode/test-web scoped package. On require(), index.js prints a banner derived from os.platform() and os.hostname() and then calls process.exit(0) at line 42, which terminates any host process that imports it. The package's own metadata (package.json description) declares the upload as a security-research proof-of-concept squat for an MSRC bug-bounty report. There is no network I/O, no shell execution, no credential or filesystem read, and no install-time lifecycle hook — the only installer-side effect is the abrupt process termination on import, which would break a build that mistakenly resolves this name instead of @vscode/test-web. Name-confusion risk is real but intent appears non-malicious; routing for human adjudication.

Source: ghsa-malware (03b4e34481aa5333960c4932e8db454ab39451cf19c9372e7373886e0a6f7513)

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": [
        {
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "id": "GHSA-vxwh-gqjr-fxcw",
            "source": "ghsa-malware",
            "import_time": "2026-06-24T01:59:16.939974587Z",
            "sha256": "03b4e34481aa5333960c4932e8db454ab39451cf19c9372e7373886e0a6f7513",
            "modified_time": "2026-06-24T01:17:57Z"
        },
        {
            "sha256": "c62d19484eeb938a92dfdcc6cbce9dba47e390676774254b0dc318702a214418",
            "id": "IN-MAL-2026-008631",
            "source": "amazon-inspector",
            "import_time": "2026-07-08T21:54:10.270110754Z",
            "modified_time": "2026-07-08T21:36:17Z",
            "versions": [
                "1.0.0"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / vscode-test-web

Package

Affected ranges

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

Affected versions

1.*
1.0.0

Database specific

indicators
{
    "evidence_files": [
        {
            "path": "index.js",
            "tlsh": "19415a4569ca793122f35d6168784ca732679f66e107a005318d07ff6fb2ce8ed02dba",
            "sha256": "3a246f12f3702ecc035e79bcc6cb4ca520f9246264325d984d5515bcf514cefa"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/vscode-test-web/MAL-2026-6361.json"
cwes
[
    {
        "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"
    }
]