Vulnerabilities in pkg:npm/@a2ui/web_core

PACKAGE
Advisory Identifier: GHSA-72qq-p3r5-f7wq
Advisory Summary

CVE-2026-10032 is a CRITICAL (CVSS 9.3) `openurl` permits `javascript:` uri execution vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting @a2ui/web_core libraries in the npm ecosystem. The issue involves `openurl` permits `javascript:` uri execution via agent-supplied button actions. Remediation is available by upgrading affected packages to version 0.10.2.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/@a2ui/web_core

2 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/@a2ui/web_core. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-72qq-p3r5-f7wq CVE-2026-10032 CRITICAL @a2ui/web_core: `openUrl` permits `javascript:` URI execution via agent-supplied button actions
GHSA-w72q-x6w3-7rj3 - MODERATE Duplicate Advisory: @a2ui/web_core: `openUrl` permits `javascript:` URI execution via agent-supplied button actions

CVE-2026-10032 at a Glance

CVE Identifier CVE-2026-10032
GHSA Identifier GHSA-72qq-p3r5-f7wq
Severity CRITICAL
CVSS v3.1 Base Score 9.3
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product @a2ui/web_core
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 9.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2026-10032

To remediate this vulnerability, upgrade all affected @a2ui/web_core dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

@a2ui/web_core fixed: 0.10.2
npm install @a2ui/web_core@0.10.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls @a2ui/web_core

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-10032, inspect your project dependencies using npm:

npm ls @a2ui/web_core

Analyze the terminal output to locate any version of @a2ui/web_core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.10.2), your application is affected.

Note: The npm ls @a2ui/web_core command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In @a2ui/web_core, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary The `openUrl` function in `@a2ui/web_core` passes an agent-controlled URL directly to `window.open()` without validating the URI scheme. A malicious agent can supply a `javascript:` URI as the `url` argument of a `Button` component's `functionCall` action. When the user clicks the rendered button, arbitrary JavaScript executes in the victim application's browser origin, constituting a stored/reflected XSS. No non-default configuration is required; the Basic Catalog is enabled by default. ### Details The vulnerability exists in the `openUrl` function implementation within the Basic Catalog of `@a2ui/web_core` (commit `23a003248abbf59da6c376ea64ace91d82d209ff`). **Sink** — `renderers/web_core/src/v0_9/basic_catalog/functions/basic_functions.ts:428-430`: ```ts export const OpenUrlImplementation = createFunctionImplementation(OpenUrlApi, args => { if (args.url && typeof window !== 'undefined' && window.open) { window.open(args.url, '_blank'); } }); ``` `window.open` is called unconditionally with the agent-supplied `args.url` value. No scheme allowlist or blocklist is applied. **Insufficient schema validation** — `renderers/web_core/src/v0_9/basic_catalog/functions/basic_functions_api.ts:453-458`: ```ts export const OpenUrlApi = { name: 'openUrl' as const, returnType: 'void' as const, schema: z.object({ url: z.preprocess(v => (v === undefined ? undefined : String(v)), z.string()), }), }; ``` The Zod schema only requires a `string`; `javascript:` URIs pass validation without any rejection. **Full source-to-sink data flow:** 1. `renderers/web_core/src/v0_9/basic_catalog/components/basic_components.ts:356` — `ButtonApi` accepts `action: ActionSchema` (entry point). 2. `renderers/web_core/src/v0_9/schema/common-types.ts:126-130` — `ActionSchema` permits `{ functionCall: FunctionCallSchema }`. 3. `renderers/web_core/src/v0_9/rendering/generic-binder.ts:243-255` — on click, bound action calls `resolveDeepSync` then `dispatchAction`. 4. `renderers/web_core/src/v0_9/rendering/data-context.ts:93-105` — `resolveDynamicValue` detects the `call` key and invokes the named function. 5. `renderers/web_core/src/v0_9/catalog/types.ts:177-186` — catalog invoker runs `fn.schema.parse(rawArgs)` then `fn.execute()`. 6. `renderers/web_core/src/v0_9/basic_catalog/functions/basic_functions_api.ts:453-458` — `OpenUrlApi` validates `url` as `z.string()` only (no scheme check). 7. `renderers/web_core/src/v0_9/basic_catalog/functions/basic_functions.ts:428-430` — **sink**: `window.open(args.url, '_blank')` executes the `javascript:` URI. **All three renderers implemented in the A2UI repository are affected:** - React: `renderers/react/src/v0_9/catalog/basic/components/Button.tsx:33` — `onClick={props.action}` - Lit: `renderers/lit/src/v0_9/catalogs/basic/components/Button.ts:112` — `@click=${() => props.action()}` - Angular: `renderers/angular/src/v0_9/catalog/basic/button.component.ts:103-110` — `handleClick()` → `dataContext.resolveAction` → `dispatchAction` Any other A2UI renderer which depends on `web_core` and uses its basic catalog implementation is also affected. ### Remediation The issue was fixed in [https://github.com/a2ui-project/a2ui/pull/1707](https://github.com/a2ui-project/a2ui/pull/1707) and released in web\_core version 0.10.2, by blocking URLs that do not use the HTTP or HTTPS schemes, or those that are invalid. Please fix this issue in your project by depending on a @a2ui/web\_core version equal or greater than 0.10.2.

CVE-2026-10032 Affected @a2ui/web_core Versions

1 component(s)
Fixed Versions:
0.10.2
Product / Package Ecosystem Affected Versions Fixed Version
@a2ui/web_core
npm
≥ 0.9.0
< 0.10.2
0.10.2

References

Frequently Asked Questions

What is CVE-2026-10032?
CVE-2026-10032 is a security vulnerability in @a2ui/web_core involving `openUrl` permits `javascript:` URI execution via agent-supplied button actions under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which @a2ui/web_core versions are affected?
Affected versions include releases prior to 0.10.2 across affected packages: @a2ui/web_core.
What version fixes CVE-2026-10032?
Upgrading to 0.10.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @a2ui/web_core affected?
Yes, @a2ui/web_core is affected in releases prior to 0.10.2. Upgrade your dependency to 0.10.2 or later.
What is the CVSS score of CVE-2026-10032?
CVE-2026-10032 has a CVSS v3.1 base score of 9.3 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N.
What CWE is associated with CVE-2026-10032?
CVE-2026-10032 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.).
How can I check npm dependencies for CVE-2026-10032?
Run the dependency tree command: 'npm ls @a2ui/web_core'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-72qq-p3r5-f7wq",
  "modified" : "2026-10-02T22:55:49Z",
  "published" : "2026-10-02T22:55:49Z",
  "aliases" : [ "CVE-2026-10032" ],
  "summary" : "@a2ui/web_core: `openUrl` permits `javascript:` URI execution via agent-supplied button actions",
  "details" : "### Summary\n\nThe `openUrl` function in `@a2ui/web_core` passes an agent-controlled URL directly to `window.open()` without validating the URI scheme. A malicious agent can supply a `javascript:` URI as the `url` argument of a `Button` component's `functionCall` action. When the user clicks the rendered button, arbitrary JavaScript executes in the victim application's browser origin, constituting a stored/reflected XSS. No non-default configuration is required; the Basic Catalog is enabled by default.\n\n### Details\n\nThe vulnerability exists in the `openUrl` function implementation within the Basic Catalog of `@a2ui/web_core` (commit `23a003248abbf59da6c376ea64ace91d82d209ff`).\n\n**Sink** — `renderers/web_core/src/v0_9/basic_catalog/functions/basic_functions.ts:428-430`:\n\n```ts\nexport const OpenUrlImplementation = createFunctionImplementation(OpenUrlApi, args => {\n  if (args.url && typeof window !== 'undefined' && window.open) {\n    window.open(args.url, '_blank');\n  }\n});\n```\n\n`window.open` is called unconditionally with the agent-supplied `args.url` value. No scheme allowlist or blocklist is applied.\n\n**Insufficient schema validation** — `renderers/web_core/src/v0_9/basic_catalog/functions/basic_functions_api.ts:453-458`:\n\n```ts\nexport const OpenUrlApi = {\n  name: 'openUrl' as const,\n  returnType: 'void' as const,\n  schema: z.object({\n    url: z.preprocess(v => (v === undefined ? undefined : String(v)), z.string()),\n  }),\n};\n```\n\nThe Zod schema only requires a `string`; `javascript:` URIs pass validation without any rejection.\n\n**Full source-to-sink data flow:**\n\n1. `renderers/web_core/src/v0_9/basic_catalog/components/basic_components.ts:356` — `ButtonApi` accepts `action: ActionSchema` (entry point).  \n2. `renderers/web_core/src/v0_9/schema/common-types.ts:126-130` — `ActionSchema` permits `{ functionCall: FunctionCallSchema }`.  \n3. `renderers/web_core/src/v0_9/rendering/generic-binder.ts:243-255` — on click, bound action calls `resolveDeepSync` then `dispatchAction`.  \n4. `renderers/web_core/src/v0_9/rendering/data-context.ts:93-105` — `resolveDynamicValue` detects the `call` key and invokes the named function.  \n5. `renderers/web_core/src/v0_9/catalog/types.ts:177-186` — catalog invoker runs `fn.schema.parse(rawArgs)` then `fn.execute()`.  \n6. `renderers/web_core/src/v0_9/basic_catalog/functions/basic_functions_api.ts:453-458` — `OpenUrlApi` validates `url` as `z.string()` only (no scheme check).  \n7. `renderers/web_core/src/v0_9/basic_catalog/functions/basic_functions.ts:428-430` — **sink**: `window.open(args.url, '_blank')` executes the `javascript:` URI.\n\n**All three renderers implemented in the A2UI repository are affected:**\n\n- React: `renderers/react/src/v0_9/catalog/basic/components/Button.tsx:33` — `onClick={props.action}`  \n- Lit: `renderers/lit/src/v0_9/catalogs/basic/components/Button.ts:112` — `@click=${() => props.action()}`  \n- Angular: `renderers/angular/src/v0_9/catalog/basic/button.component.ts:103-110` — `handleClick()` → `dataContext.resolveAction` → `dispatchAction`\n\nAny other A2UI renderer which depends on `web_core` and uses its basic catalog implementation is also affected.\n\n### Remediation\n\nThe issue was fixed in [https://github.com/a2ui-project/a2ui/pull/1707](https://github.com/a2ui-project/a2ui/pull/1707) and released in web\\_core version 0.10.2, by blocking URLs that do not use the HTTP or HTTPS schemes, or those that are invalid.\n\nPlease fix this issue in your project by depending on a @a2ui/web\\_core version equal or greater than 0.10.2.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@a2ui/web_core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.9.0"
      }, {
        "fixed" : "0.10.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/a2ui-project/a2ui/security/advisories/GHSA-72qq-p3r5-f7wq"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-10032"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/a2ui-project/a2ui/pull/1707"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/a2ui-project/a2ui/commit/71573078c4168b2dc166bb847c3a85715dadc675"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/a2ui-project/a2ui"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-10-02T22:55:49Z",
    "nvd_published_at" : null
  }
}