Dev.to Security πŸ” Cybersecurity πŸ‘ 2 πŸ“– 8 min read

Auditing A2A v1.0 in Dec 2026: 10 Hidden SDK CVEs, the v0.3 Cliff & Transitive npm Inflation

If you read enterprise press releases in late 2026, it looks like the Agent2Agent (A2A) Protocol has already reached ubiquitous developer adoption alongside MCP. This week (2026-12-03), I ran a primary-source forensic a

If you read enterprise press releases in late 2026, it looks like the Agent2Agent (A2A) Protocol has already reached ubiquitous developer adoption alongside MCP.

This week (2026-12-03), I ran a primary-source forensic audit across a2aproject/A2A (v1.0.1 and v1.1.0-rc), all 6 official a2aproject SDK repositories, api.osv.dev, live PyPI/npm manifests, /.well-known/agent-card.json HTTP endpoints, and 30 verified 2025–2026 arXiv papersβ€”and then audited my own open-source guard library (mcp-tool-guard) against the live specification/a2a.proto.

Four concrete engineering findings jumped out immediately, including 10 live CVEs across all 5 major official a2aproject SDKs that pip-audit and npm audit currently miss, and 6 P0 spec/security bugs I caught inside my own v0.3.0 code.

1. The @mastra/core Transitive Download Illusion (A2A vs. MCP Real Telemetry)

Headline npm download charts for @a2a-js/sdk show 29.13M downloads in November 2026β€”making JavaScript A2A adoption look explosive.

Until you inspect @mastra/core v1.87.0's live package.json (14.60M downloads/month):

{
  "dependencies": {
    "@a2a-js/sdk-v1": "npm:@a2a-js/sdk@~1.0.1",
    "@a2a-js/sdk-v0_3": "npm:@a2a-js/sdk@~0.3.14"
  }
}

Every npm install @mastra/core pulls @a2a-js/sdk twice (2 Γ— 14.60M = 29.20M), accounting for roughly 95–99% of @a2a-js/sdk's headline npm volume (alongside @google/adk at 1.82M/mo).

Other primary metrics tell a much more grounded story (2026-12-03 live pulls, excluding PyPI mirrors):

Signal A2A (Agent2Agent) MCP (Model Context Protocol) Ratio / Reality
PyPI monthly downloads (Nov 2026) 14.52M (a2a-sdk) 342.90M (mcp) + 92.2M (fastmcp) Flat 4.24% (3.86%–5.04%) for 6 straight months
GitHub Stars (Spec vs. Official SDKs) 26.8k spec vs. 4.37k across 6 SDKs 9.8k spec vs. 39k (Python+TS) + 92k servers 6.1 : 1 vs. 0.25 : 1 (24Γ— spec-bookmark divergence)
HN Who is hiring? (862 posts, Sep–Dec 2026) 2 / 862 (0.23%; 0 in Oct–Dec) 38 / 862 (4.41%) 19Γ— higher direct startup hiring for MCP
Live /.well-known/agent-card.json probes zapier.com, n8n.io, cloudflare.com β†’ 404 n8n v2.50.6 bundles 5 native MCP deps, 0 A2A deps Only docs.zapier.com returned 200 (static Mintlify v0.3 docs card routing users to Zapier MCP)

A2A is genuinely shipping at the Fortune 500 / hyperscaler layer (Microsoft Foundry Agent Service GA, AWS Bedrock AgentCore Runtime GA, Salesforce Agentforce GA, ServiceNow AI Agent Fabric GA, SAP Joule Phased GA, LangSmith Agent Server commercial GA, and Solo.io's Rust agentgateway). At the startup/SMB layer, single-agent reliability and MCP still dominate.

2. The Live v0.3 vs. v1.0 SDK Fragmentation Cliff

a2aproject/A2A v1.0.0 (2026-03-12, latest stable v1.0.1, active v1.1.0-rc) elevated specification/a2a.proto (package lf.a2a.v1) to normative truth under ADR-001 ProtoJSON with major breaking wire changes:

  • Removed kind discriminators everywhere in favor of ProtoJSON oneof (Part flattened to oneof { text, raw, url, data } + mediaType + filename).
  • Switched enums to SCREAMING_SNAKE_CASE (TASK_STATE_INPUT_REQUIRED, ROLE_AGENT).
  • Renamed all JSON-RPC methods to PascalCase matching gRPC (message/send β†’ SendMessage, message/stream β†’ SendStreamingMessage, tasks/get β†’ GetTask, added ListTasks).
  • Removed top-level url, protocolVersion, preferredTransport, additionalInterfaces, supportsAuthenticatedExtendedCard, and capabilities.stateTransitionHistoryβ€”consolidating into supportedInterfaces[] (AgentInterface with url, protocolBinding, tenant, protocolVersion) and capabilities.extendedAgentCard.
  • Replaced flat OpenAPI SecurityScheme objects with Proto3 oneof (apiKeySecurityScheme.location, httpAuthSecurityScheme, oauth2SecurityScheme, openIdConnectSecurityScheme, mtlsSecurityScheme) and securityRequirements[*].schemes.<id>.list.

Yet checking live PyPI/npm dependency constraints today (2026-12-03) reveals an ecosystem split right down the middle:

Framework / Package Latest Version Live A2A Dependency Pin Wire Compatibility
a2a-sdk (Official Python SDK) 1.4.0 Root (A2AStarletteApplication removed!) v1.0
agent-framework-a2a (Microsoft) 1.0.0b261112 a2a-sdk>=1.0.0,<2 v1.0 (Beta)
google-adk 2.15.1 a2a-sdk>=0.3.4,<2 (via 1,342-line _compat.py) v0.3–v1.x
bedrock-agentcore (AWS) 1.30.0 Split extras: [a2a] (<0.4) vs [a2a-v1] (>=1.0.1) Split
strands-agents (AWS) 1.69.0 a2a-sdk>=0.3.0,<0.4.0 Stuck on v0.3
crewai 1.15.48 a2a-sdk~=0.3.10 Stuck on v0.3
beeai-framework (IBM) 0.1.86 a2a-sdk>=0.3.9,<0.4.0 Stuck on v0.3
langgraph (OSS) 1.2.25 0 A2A deps (v1.0 /a2a/{id} is commercial LangSmith only) Commercial only

Even between v1.0 official SDKs, two live wire issues bite cross-language meshes today:

  1. SubscribeToTask REST verb contradiction: On a2aproject/A2A main/v1.0.1, specification/a2a.proto:78 binds SubscribeToTask to GET /tasks/{id=*}:subscribe, whereas docs/specification.md Β§5.3 & Β§11.3.2 document POST /tasks/{id}:subscribe (fixed to GET in v1.1.0-rc), causing REST interop failures between a2a-rs (GET) and a2a-java/a2a-dotnet (POST).
  2. Cross-SDK RFC 8785 JWS canonicalization drift (a2aproject/A2A#2122, a2a-js#627, a2a-go#445): a2a-python (signing.py:216-229) and a2a-js (signature.ts:171-229) round-trip cards through ProtoJSON + cleanEmpty(), producing different canonical bytes from a2a-go v2.6+ and silently dropping unknown smuggled fields (bypassing a2a-tck#261 S4-REJECT-005).

3. 10 Live SDK CVEs That pip-audit & npm audit Currently Miss

Right after A2ABreak (arXiv:2609.10871v3, ACSAC 2026) used FSM extraction (37 states / 76 transitions) to demonstrate 11 protocol-level vulnerabilities under 100% spec compliance, 10 real CVEs hit all 5 official a2aproject SDKs between 2026-09-14 and 2026-10-27 (all directly verified against https://api.osv.dev/v1/vulns/<ID>):

CVE ID Target SDK & Affected Versions Root Symbol Vulnerability Class Fixed Version
CVE-2026-90790 a2aproject/a2a-python <= 1.1.3 base_push_notification_sender.py:_dispatch_notification Push Notification SSRF (loopback / RFC 1918 / IMDS) 1.1.4
CVE-2026-90819 a2aproject/a2a-java 1.2.0 BasePushNotificationSender.dispatchNotification HTTP Response Splitting / CRLF in Authorization 1.3.0.Final
CVE-2026-111761 a2aproject/a2a-java (server-common) InMemoryPushNotificationConfigStore.setInfo Push Notification SSRF 1.3.0.Final
CVE-2026-111762 a2aproject/a2a-java (transport-rest) RestHandler.java:676 (parseRequestBody) Cleartext webhook bearer token logging on parse error 1.3.0.Final
CVE-2026-111763 / 111765 a2aproject/a2a-java (parent & Android) AuthInterceptor.intercept / AndroidA2AHttpClient HIGH (7.5) β€” Cross-origin API key leak via HTTP 30x redirect using untrusted AgentCard APIKeySecurityScheme.name() 1.3.0 / 1.3.2.Final
CVE-2026-111764 a2aproject/a2a-java (server-common) InMemoryTaskStore.get(taskId) HIGH (7.5) β€” Fail-open default task auth (IDOR) across tenants 1.3.0.Final
CVE-2026-113706 a2aproject/a2a-rs <= 0.4.3 task_store/inmemory.rs History info disclosure via historyLength commit 68f1b7e7
CVE-2026-116478 a2aproject/a2a-go <= 2.4.0 a2asrv/agentexec.go:CreateExecutor Internal network error exposure in push handler 2.5.0
CVE-2026-118128 a2aproject/a2a-js <= 1.1.0 ResultManager.applyStatusUpdate Remote race condition (TOCTOU) corrupting task state 1.2.0

The SCA blindspot: Because OSV currently links these 2026 CVE records to git commit hashes rather than PyPI:a2a-sdk, npm:@a2a-js/sdk, Go:github.com/a2aproject/a2a-go, or crates.io:a2a-rs package coordinates, running pip-audit, npm audit, or osv-scanner by package ecosystem returns 0 vulnerabilities today. Pin minimum patched versions explicitly in CI.

And if you are building agentic commerce on A2A β†’ AP2 β†’ x402, read yesterday's paper arXiv:2612.03456v1 (SoK: Trust Boundaries Between Agent Commerce Protocols and Crypto Wallets, 2026-12-02): across 6 protocolΓ—wallet combinations, 0 of 4 stacks carrying a payee address cryptographically bound it end-to-end, and the official AP2 x402 sample dropped the merchant's payee address from the user mandate.

4. What Happened When I Audited My Own Tool Against a2a.proto v1.0.1 (mcp-tool-guard v0.4.0)

Auditing external specs is easy; turning the same lens on your own repository is humbling. When I cross-checked mcp-tool-guard v0.3.0 (src/mcp_tool_guard/a2a_guard.py) line by line against a2aproject/A2A/main/specification/a2a.proto and a2a-itk ACTS, 6 P0 bugs showed up immediately:

  1. v1.0 SecurityScheme blindness: _audit_a2a_authentication() still looked for v0.3 flat OpenAPI keys (type, in, scheme, flows) instead of Proto3 oneof (apiKeySecurityScheme.location, httpAuthSecurityScheme, oauth2SecurityScheme)β€”meaning HTTP Basic, query API keys, deprecated implicit/password flows, and pkceRequired: false passed silently on valid v1.0 cards.
  2. Ignored securityRequirements: Only legacy security was audited; card-level and skill-level securityRequirements[*].schemes.<id>.list evaded both static audit and pin-drift downgrade detection.
  3. Fail-open forged signature bypass: Attaching 64 random bytes with {"alg": "ES256", "kid": "k1"} and calling audit_agent_card(card) without a key emitted 0 findings (passed=True, decision="allowed").
  4. gRPC authority false positive: a2a.proto:346-347 mandates bare hostname:port for gRPC (e.g., grpc.example.com:443). urlparse() parsed grpc.example.com as the URL scheme and emitted CRITICAL: A2A_UNSUPPORTED_URL_SCHEME, while _audit_issuer_domain_consistency() silently skipped gRPC hosts.
  5. Removed v0.3 extended-card flag: Checked removed supportsAuthenticatedExtendedCard instead of v1.0 capabilities.extendedAgentCard.
  6. Stale fixtures & nested scanner skip: Our own build_agent_card() and examples/agent_card_v1.json emitted v0.3 fields, and a global skip on keys named "signature" / "protected" allowed prompt-injection payloads nested under Artifact.data.protected to evade the 5-layer scanner.

I fixed all 6 P0 defects plus 7 P1 hardening items (RFC 7517 jwks/kid selection, CARD-SIGN-003 kid checks, b64: false/crit rejection, OAuth2/OIDC SSRF URL extraction, unified v1.0 Part scanning for url/base64 raw/filename/mediaType, raw-JSON duplicate-key & S4-REJECT-005 snake/camel smuggling detection, tenant vs. AgentInterface.tenant parity, and monotonic allowed_payees binding in audit_a2a_delegation()) in mcp-tool-guard v0.4.0 (MIT, zero runtime dependencies, 150/150 tests green across Python 3.10–3.13):

git clone https://github.com/khoap1220-hue/mcp-tool-guard
cd mcp-tool-guard && pip install -e .

export A2A_DEMO_HMAC="example-demo-hmac-key-not-for-prod"

# Strict A2A v1.0.1 audit (JSONRPC + gRPC authority + Proto3 oneof SecurityScheme + JWS)
mcp-tool-guard a2a-audit examples/agent_card_v1.json \
  --hmac-secret-env A2A_DEMO_HMAC --strict-v1 --json

# Pin canonical RFC 8785 JCS digest and catch a post-trust rug-pull (exit code 2)
mcp-tool-guard a2a-pin examples/agent_card_v1.json -o a2a.lock.json \
  --hmac-secret-env A2A_DEMO_HMAC
mcp-tool-guard a2a-verify examples/agent_card_v2_rugpull.json -l a2a.lock.json \
  --hmac-secret-env A2A_DEMO_HMAC

Practical Takeaway: When Do You Actually Need A2A in Late 2026?

The old "use A2A whenever a task runs >30 seconds" heuristic is dead: MCP 2026-07-28 ("Stateless MCP") added Multi Round-Trip Requests (MRTR, resultType: "input_required") and the io.modelcontextprotocol/tasks extension.

  • Same org, deterministic APIs/DBs, or single-agent tool orchestration: Stick to plain HTTP/queues + MCP (and fix outcome verification so agents stop reporting "silent success" when a downstream write fails).
  • Cross-org/cross-vendor opaque delegation (hidden prompts/tools/memory, signed /.well-known/agent-card.json, gRPC/REST/JSON-RPC meshes, or multi-party AP2/a2a-x402 commerce): Use A2A v1.0 on the outer boundary, MCP on the inner tool boundary, pin every remote AgentCard & MCP tools/list canonically, and enforce monotonic capability + payee attenuation across hops.

Full MIT source, CLI, and 150 regression tests (v0.4.0): https://github.com/khoap1220-hue/mcp-tool-guard

Author note: I'm an independent backend & AI-infrastructure engineer working on Python/Go/Rust/TypeScript automation, custom MCP servers, and A2A v1.0 + MCP security hardening (22+ merged upstream OSS PRs including Lelu-ai/lelu#185). Architecture notes and fixed-scope async audit packages are at khoaphan.dev/services.

πŸ“° Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.