v1.66.0
CopilotKit v1.66.0
A minor release opening the 1.66 line — but for the 16 monorepo packages it is effectively a security patch: @a2ui/web_core is bumped 0.9.0 → 0.10.4 to close the openUrl XSS advisory (CVSS 9.3) in @copilotkit/a2ui-renderer and @copilotkit/vue (#6343). The feature work in this range shipped in the separately-versioned Channels family as Channels 0.7.0.
Install
npm install @copilotkit/react-core@1.66.0 @copilotkit/react-ui@1.66.0 @copilotkit/runtime@1.66.0Fixes
@copilotkit/a2ui-renderer/@copilotkit/vue:@a2ui/web_corebumped to0.10.4for theopenUrlXSS (GHSA-72qq-p3r5-f7wq) —web_core≤0.10.1passed an agent-suppliedopenUrlargument straight towindow.open()with no scheme check, so a malicious agent could emit a Button whosefunctionCallnamed ajavascript:URI and execute script in the host application's origin on click. The sink is in the default Basic Catalog, so no non-default configuration was required.- Both packages pinned
0.9.0exactly (and@copilotkit/react-corereaches the sink througha2ui-renderer), so downstream apps could not upgrade out of it without anoverridesentry — updating to1.66.0is the fix path. 0.10.4enforces a strict http/https allowlist and opens links withnoopener,noreferrer. The failure mode changes: a blocked scheme now raisesA2uiExpressionError— caught byweb_coreand routed tosurface.dispatchError, so the surface stays mounted — instead of silently no-op'ing.- Six regression tests over the React and Lit renderers now assert that
javascript:/data:URIs never reachwindow.openand that https URLs still open; pinned back to0.9.0, 5 of the 6 fail. (#6343)
- Both packages pinned
Dependencies
@a2ui/web_core0.9.0→0.10.4in@copilotkit/a2ui-rendererand@copilotkit/vue(the security fix above).@ag-ui/*unchanged from1.65.0—@ag-ui/langgraphat0.0.42,@ag-ui/a2ui-middlewareat0.0.10,@ag-ui/mcp-apps-middlewareat0.0.3,@ag-ui/mcp-middlewareat0.0.1,@ag-ui/core/@ag-ui/client/@ag-ui/encoderat0.0.57.- Runtime's Channels dependencies resolve to
0.7.0— the published@copilotkit/runtimepicks up@copilotkit/channels-core@^0.7.0/@copilotkit/channels-intelligence@0.7.0from the concurrent Channels release.
Packages republished at 1.66.0
@copilotkit/runtime, @copilotkit/react-core, @copilotkit/react-ui, @copilotkit/react-native, @copilotkit/core, @copilotkit/shared, @copilotkit/runtime-client-gql, @copilotkit/sdk-js, @copilotkit/vue, @copilotkit/voice, @copilotkit/web-inspector, @copilotkit/web-components, @copilotkit/a2ui-renderer, @copilotkit/react-textarea, @copilotkit/sqlite-runner, and @copilotkit/agentcore-runner.