Files
copilotkit__copilotkit/showcase/angular/package.json
Mark 36f2972150 fix(a2ui-renderer): bump @a2ui/web_core to 0.10.4 for the openUrl XSS advisory
GHSA-72qq-p3r5-f7wq (CVSS 9.3). web_core <= 0.10.1 passed an agent-supplied
`openUrl` argument straight to `window.open()` with no scheme allowlist, so a
Button whose `functionCall` named a `javascript:` URI executed arbitrary script
in the host origin when a user clicked it. The Basic Catalog is the default, so
no non-default configuration was required to be exposed.

We pinned 0.9.0 exactly, as a runtime dependency of two published packages
(@copilotkit/a2ui-renderer, @copilotkit/vue) and transitively of
@copilotkit/react-core and @copilotkit/angular, so downstream users could not
upgrade out of it on their own. 0.10.4 keeps the ./v0_9 and
./v0_9/basic_catalog entrypoints we import; the only symbol dropped from v0_9
is FrameworkSignal, which we never referenced.

Add regression tests over both renderers that reach the sink independently
(React and Lit). They assert that javascript: and data: URIs never reach
window.open, that https URLs still open with noopener,noreferrer, and that a
blocked scheme leaves the surface mounted rather than escaping into the click
handler. Verified they fail against 0.9.0 and pass against 0.10.4.
2026-08-03 18:43:00 +00:00

46 lines
1.9 KiB
JSON

{
"name": "@copilotkit/showcase-angular-host",
"version": "0.0.0",
"private": true,
"type": "module",
"scripts": {
"generate": "pnpm --dir ../scripts generate-registry && node scripts/stage-demo-assets.mjs",
"build:dependencies": "pnpm --filter @copilotkit/shared --filter @copilotkit/core --filter @copilotkit/a2ui-renderer --filter @copilotkit/web-components --filter @copilotkit/angular --workspace-concurrency=1 run build",
"build": "pnpm run build:browser",
"build:browser": "pnpm run build:dependencies && pnpm run generate && ng build --stats-json && node scripts/check-performance-budget.mjs && node scripts/check-browser-artifact.mjs",
"record:performance": "node scripts/record-performance-baseline.mjs",
"test": "pnpm run test:node && pnpm run test:angular",
"test:angular": "pnpm run build:dependencies && pnpm run generate && ng test --watch=false",
"test:node": "pnpm run generate && vitest run",
"typecheck": "pnpm run build:dependencies && pnpm run generate && tsc --noEmit -p tsconfig.app.json"
},
"dependencies": {
"@a2ui/web_core": "0.10.4",
"@angular/cdk": "21.2.14",
"@angular/common": "21.2.18",
"@angular/core": "21.2.18",
"@angular/platform-browser": "21.2.18",
"@angular/router": "21.2.18",
"@copilotkit/a2ui-renderer": "workspace:*",
"@copilotkit/angular": "workspace:*",
"@copilotkit/core": "workspace:*",
"@copilotkit/shared": "workspace:*",
"@copilotkit/web-components": "workspace:*",
"rxjs": "^7.8.1",
"lit": "^3.3.2",
"tslib": "^2.8.1",
"zod": "^3.25.75",
"zod-to-json-schema": "^3.24.1"
},
"devDependencies": {
"@angular/build": "21.2.14",
"@angular/cli": "21.2.14",
"@angular/compiler": "21.2.18",
"@angular/compiler-cli": "21.2.18",
"@types/node": "^22.5.1",
"jsdom": "^24.0.0",
"typescript": "5.9.3",
"vitest": "^4.1.3"
}
}