MAL-2026-16032

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/feishu-docx-mcp/MAL-2026-16032.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-16032
Aliases
  • GHSA-q5c6-p5q5-g3px
Published
2026-09-07T13:51:36Z
Modified
2026-09-08T20:30:09Z
Summary
Malicious code in feishu-docx-mcp (npm)
Details

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

Source: amazon-inspector (0e7567437816acf6d56f5ef9e5303da39aa1663ac47d547f66552a0482158d19)

package.json declares "preinstall": "bun run index.js" and lists bun as a runtime dependency, so npm install fetches the alternate Bun runtime and executes the tarball's top-level index.js on the installer machine. index.js is a ~499KB file packed with obfuscator.io (rotating string array of 1732 entries, hex-named identifiers, decoder wrappers) plus a custom RC4/XOR cipher class keyed via pbkdf2Sync(seed, salt, 200000, 32, 'sha256') and exposed as a global decrypt function to reconstruct strings at runtime. After deobfuscation the payload contains GitHub Personal Access Token validation and scope enumeration logic: Authorization: Bearer <token> requests to /user and /user/orgs, parsing of the x-oauth-scopes response header, and checks for repo, public_repo, and workflow scopes plus github-authentication-token-expiration. The advertised functionality is a Feishu/Lark document MCP server, whose shipped code lives in dist/ and is unrelated to the obfuscated top-level index.js that only preinstall runs. Bundling an alternate runtime purely to execute an obfuscated install-time blob that fingerprints GitHub credentials is the canonical alternate-runtime-dropper shape of an npm supply-chain attack.

Source: ghsa-malware (b63777418500ff54e64d53865054c1e1085566d10e7d062d62445c34907d2976)

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-q5c6-p5q5-g3px",
            "import_time":  "2026-09-08T00:15:11.421538612Z",
            "modified_time":  "2026-09-07T13:51:41Z",
            "ranges":  [
                {
                    "events":  [
                        {
                            "introduced":  "0"
                        }
                    ],
                    "type":  "SEMVER"
                }
            ],
            "sha256":  "b63777418500ff54e64d53865054c1e1085566d10e7d062d62445c34907d2976",
            "source":  "ghsa-malware"
        },
        {
            "id":  "IN-MAL-2026-019711",
            "import_time":  "2026-09-08T20:17:35.24648152Z",
            "modified_time":  "2026-09-08T19:56:37Z",
            "sha256":  "0e7567437816acf6d56f5ef9e5303da39aa1663ac47d547f66552a0482158d19",
            "source":  "amazon-inspector",
            "versions":  [
                "0.3.2"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / feishu-docx-mcp

Package

Name
feishu-docx-mcp
View open source insights on deps.dev
Purl
pkg:npm/feishu-docx-mcp

Affected ranges

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

Affected versions

0.*
0.3.2

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"
    }
]
indicators
{
    "evidence_files":  [
        {
            "path":  "package.json",
            "sha256":  "3f7616ea4f93ee1ab167c82ae9472ad6535b0a79341e2728daef9b5327b5dbf9",
            "tlsh":  "7d41a935cc19cda346c066aab8b95a82a56686078d50fd4833de126c4f8d4bf30fe75e"
        },
        {
            "path":  "index.js",
            "sha256":  "e37e3ddeeaaa9e0c4fdbcb829b4895a6521031c80053fc436625b61e6ee5b1a6",
            "tlsh":  "d5b4a31123d46960274b4fbb771bb5f2e88a09ee786d0c9fe124bc1066d9713fae8570"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/feishu-docx-mcp/MAL-2026-16032.json"