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
kinddiscriminators everywhere in favor of ProtoJSONoneof(Partflattened tooneof { 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, addedListTasks). - Removed top-level
url,protocolVersion,preferredTransport,additionalInterfaces,supportsAuthenticatedExtendedCard, andcapabilities.stateTransitionHistoryβconsolidating intosupportedInterfaces[](AgentInterfacewithurl,protocolBinding,tenant,protocolVersion) andcapabilities.extendedAgentCard. - Replaced flat OpenAPI
SecuritySchemeobjects with Proto3oneof(apiKeySecurityScheme.location,httpAuthSecurityScheme,oauth2SecurityScheme,openIdConnectSecurityScheme,mtlsSecurityScheme) andsecurityRequirements[*].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:
-
SubscribeToTaskREST verb contradiction: Ona2aproject/A2Amain/v1.0.1,specification/a2a.proto:78bindsSubscribeToTasktoGET /tasks/{id=*}:subscribe, whereasdocs/specification.mdΒ§5.3 & Β§11.3.2 documentPOST /tasks/{id}:subscribe(fixed toGETinv1.1.0-rc), causing REST interop failures betweena2a-rs(GET) anda2a-java/a2a-dotnet(POST). -
Cross-SDK RFC 8785 JWS canonicalization drift (
a2aproject/A2A#2122,a2a-js#627,a2a-go#445):a2a-python(signing.py:216-229) anda2a-js(signature.ts:171-229) round-trip cards through ProtoJSON +cleanEmpty(), producing different canonical bytes froma2a-go v2.6+and silently dropping unknown smuggled fields (bypassinga2a-tck#261S4-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:
-
v1.0
SecuritySchemeblindness:_audit_a2a_authentication()still looked for v0.3 flat OpenAPI keys (type,in,scheme,flows) instead of Proto3oneof(apiKeySecurityScheme.location,httpAuthSecurityScheme,oauth2SecurityScheme)βmeaning HTTP Basic, query API keys, deprecatedimplicit/passwordflows, andpkceRequired: falsepassed silently on valid v1.0 cards. -
Ignored
securityRequirements: Only legacysecuritywas audited; card-level and skill-levelsecurityRequirements[*].schemes.<id>.listevaded both static audit and pin-drift downgrade detection. -
Fail-open forged signature bypass: Attaching 64 random bytes with
{"alg": "ES256", "kid": "k1"}and callingaudit_agent_card(card)without a key emitted0findings (passed=True, decision="allowed"). -
gRPC authority false positive:
a2a.proto:346-347mandates barehostname:portfor gRPC (e.g.,grpc.example.com:443).urlparse()parsedgrpc.example.comas the URL scheme and emittedCRITICAL: A2A_UNSUPPORTED_URL_SCHEME, while_audit_issuer_domain_consistency()silently skipped gRPC hosts. -
Removed v0.3 extended-card flag: Checked removed
supportsAuthenticatedExtendedCardinstead of v1.0capabilities.extendedAgentCard. -
Stale fixtures & nested scanner skip: Our own
build_agent_card()andexamples/agent_card_v1.jsonemitted v0.3 fields, and a global skip on keys named"signature"/"protected"allowed prompt-injection payloads nested underArtifact.data.protectedto 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-partyAP2/a2a-x402commerce): Use A2A v1.0 on the outer boundary, MCP on the inner tool boundary, pin every remoteAgentCard& MCPtools/listcanonically, 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.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes β full credit and traffic to the original publisher.