Skip to content
Heist/ feed
Unrated

Malicious code in @angulaar/cli (npm)

Type: advisorySource: OSV1 source record

--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (33d4a58c855f9b549d39f194483ee19730552bbb47a279f73237c8a403708d20) Package name '@angulaar/cli' (double 'a') is a one-character edit of '@angular/cli'; README, LICENSE headers, and source files are copied verbatim from the real Angular CLI (Google LLC copyright, angular.dev license URLs, README pointing issues to github.com/angular/angular-cli). The manifest's dependencies list has been altered from the upstream package: real @angular/cli depends on '@modelcontextprotocol/sdk', while this package declares '@modelcontextprotocol/server': '2.0.0' and requires it from src/commands/mcp/cli.js and mcp-server.js. '@modelcontextprotocol/server' is not the official MCP package name, so npm install resolves and installs whatever bytes are published under that attacker-chosen name/version, executing any lifecycle scripts in that dependency on the installer's host and loading its code in-process on later `ng mcp` invocations. The lookalike package name, cloned source, and swapped MCP dependency together form a dependency-confusion delivery vector against developers who mistype the real @angular/cli name.

Announced Group revision 1
Original source ↗

MAL-2026-17536

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: osv:MAL-2026-17536

@angulaar/cli

Source reference: /affected/0/package/name

Affected versions
22.2.1

Source reference: /affected/0/versions

Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "package": {
      "name": "@angulaar/cli",
      "purl": "pkg:npm/%40angulaar/cli",
      "ecosystem": "npm"
    },
    "versions": [
      "22.2.1"
    ],
    "database_specific": {
      "cwes": [
        {
          "name": "Embedded Malicious Code",
          "cweId": "CWE-506",
          "description": "The product contains code that appears to be malicious in nature."
        }
      ],
      "source": "https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@angulaar/cli/MAL-2026-17536.json",
      "indicators": {
        "evidence_files": [
          {
            "path": "package.json",
            "tlsh": "fc315976d6e01d6306d9178098360903643c963f0e06fab8f79c550c4f8f69f2277aae",
            "sha256": "e328e61beada6cb9eb1c9392e96a61d0a17c57cf5a79405e490743d6c1caed5f"
          }
        ],
        "package_integrity": [
          {
            "hashes": {
              "sha1": "0f040f20b3935706461bcbb479f2d693b10af56a",
              "sha512_sri": "sha512-J7AyMrtLCZmsXS1pptYxEmGPBT+S7uQEUDglSCC96T2HtpJICh3IBuJELtQZ8t/yd6Dg2uBplrOsHpfW9XCwLA=="
            },
            "filename": "cli-22.2.1.tgz"
          }
        ]
      }
    }
  }
]

Publisher severity

No explicit severity was provided.

Event
#83605 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement