Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@a2ui/web_core

Latest version: v0.17.0

Overview

Last scanned
1 Dec 2026
Published
1 Dec 2026
npm package Publisher: a2ui-team, ava-cassiopeia, jsimionato
19,160 Stars
1,524 Forks
8 Versions
6.4M Downloads
TypeScript Repo language

Scan summary

@a2ui/web_core was last scanned on 1 Dec 2026 at version 0.17.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 8 versions; the latest was published on 1 Dec 2026.
  • Findings: No rules fired in version 0.17.0.
  • Downloads: 6,363,390 downloads.

Versions

8 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.17.0 LATEST 1 Dec 2026 No rules fired
0.16.1 23 Nov 2026 No rules fired
0.16.0 23 Nov 2026 No rules fired
0.15.0 2 Nov 2026 Not shown
0.14.0 17 Oct 2026 Not shown

No rules fired in 0.17.0

Findings

Findings for v0.17.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.17.0; other versions have their own rules, not their own score.

Known vulnerabilities

1 CVE · last 4 Aug 2026

0 CRITICAL 0 HIGH 1 MEDIUM 0 LOW

Versions

  • ≥ 0.10.2
  • ≥ 0.9.0, < 0.10.2 1 MEDIUM
  • < 0.9.0

Vulnerabilities

  • CVE-2026-10032 Medium 4 Aug 2026 @a2ui/web_core: `openUrl` permits `javascript:` URI execution via agent-supplied button actions Fixed in 0.10.2

README

The publisher’s own README, as collected from the registry.

@a2ui/web_core

The @a2ui/web_core package provides state management, protocol parsing, and schema generation for the A2UI framework. It is framework-agnostic and provides the foundational engine for renderer packages such as Angular, React, and Lit.

Features

  • Protocol Handling: Implements A2UI specification message validation and state handling across all supported protocol versions.
  • State Management: Reactive data and component models using @preact/signals-core.
  • DataContext: Data binding, scoping, and function evaluation with dependency tracking.
  • Catalog System: Component and function catalogs supporting runtime validation and schema generation.
  • Schema-Driven Code Generation: Auto-generates Zod schemas and TypeScript component/function definitions directly from specification JSON schemas.

Architecture

Rendering is driven by a SurfaceGroupModel and its constituent SurfaceModel instances, with DataModel managing reactive state, DataContext providing expression evaluation, and MessageProcessor validating and applying incoming protocol messages.

Outbound Agent Messages

Pass outboundListener with unifiedOutbound: true to route all renderer-to-agent wire messages (actions, processing errors, callAgentFunction requests, and rendererFunctionResponse replies) through a single callback:

import {MessageProcessor} from '@a2ui/web_core';

const processor = new MessageProcessor(catalogs, undefined, {
  outboundListener: send,
  unifiedOutbound: true,
});

Schema & Code Generation

Protocol message schemas, common types, and catalog definitions are generated directly from the JSON schemas in the specification/ directory.

Running Code Generation

To regenerate all Zod schemas and catalog APIs:

# Generate all protocol Zod schemas and versioned Basic Catalog APIs
yarn generate-zod-schemas

# Or run individual version generators directly
node src/v0_9/scripts/generate-catalog.mjs
node src/v1_0/scripts/generate-catalog.mjs
Catalog Schema Contract

The code generator uses Schema Flattening to remain version-, catalog-, and type-agnostic. Schema files adhere to the following structure:

1. Catalog JSON (catalog.json)
  • Top-Level Dictionaries:
    • components: Maps component names to JSON schema objects.
    • functions: Maps function names to JSON schema objects.
  • Discriminator:
    • Derived from catalog.discriminator.propertyName (defaults to "component").
    • The discriminator property and "id" are omitted from generated property schemas as they are handled by the runtime component envelope.
  • Inheritance & Envelopes:
    • Components may use allOf to reference common envelopes (such as ComponentCommon or CatalogComponentCommon). The generator recursively resolves $ref pointers and merges allOf branches into a flat property bag.
  • Functions:
    • Functions specify a returnType (e.g. "string", "number", "boolean", "validationResult") at the root level and define arguments inside an args or parameters object property.
2. Reusable Type Definitions (common_types.json)
  • $defs Scope:
    • Reusable type schemas reside under $defs. Definition names are not hardcoded; any definition present in $defs is resolved dynamically when referenced.
  • Reference Annotations:
    • When a component property references $defs/<DefName>, the generator maps it to <DefName>Schema and attaches a .describe('REF:#/$defs/<DefName>|<description>') annotation.
    • At runtime, generateValidationSchema inspects these markers to emit $ref pointers and tree-shake unused $defs definitions.
  • Child References:
    • Single child references and child collections are identified when their $defs reference targets or descriptions indicate a child component relationship (such as references to ComponentId, Child, or ChildList).

Catalog Serialization

A Catalog has three serialization entry points:

  • Catalog.fromJson(json, protocolVersion?, catalogId?) loads a catalog document into the catalog's model. Each entry is a JsonComponentApi or JsonFunctionApi whose model is its JSON Schema definition as written (jsonSchema); its Zod schema is derived from the definition on first use. The catalog keeps the document-level fields (metadata, named $defs, other top-level keys). protocolVersion, when given, takes precedence over the version the document declares and selects the loading rules, while toJson still writes the document's own protocolVersion; without it the document's version applies, then DEFAULT_PROTOCOL_VERSION. catalogId replaces the document's own ID.
  • catalog.toJson() assembles the unbundled catalog document from the model, computing the anyComponent and anyFunction unions. A catalog loaded with fromJson returns its document unchanged (minus any entries omitted from the document's anyComponent.oneOf or anyFunction.oneOf unions, which fromJson filters out on load). An entry defined in code whose Zod schema is annotated with spec() has its definition computed from the model in the layout of the catalog's protocol version; any other entry defined in code is generated from its Zod schema. The result is computed once per catalog; each call returns a fresh copy.
  • catalog.validationSchema is the self-contained schema used to validate payloads: common types and the catalog's own $defs are bundled into $defs and every $ref is local. It is computed once per catalog; each read returns a fresh copy.
import {Catalog} from '@a2ui/web_core';

const catalog = Catalog.fromJson(document);
const unchanged = catalog.toJson(); // deep-equals document
const schema = catalog.validationSchema; // bundled JSON Schema

The Catalog constructor takes a CatalogOptions object as its fifth argument, with the themeSchema, the document-level fields (instructions, schemaUri, schemaId, title, description, declaredProtocolVersion, declaresCatalogId, declaresComponents, functionsLayout, unions, defs, extensionFields) that toJson emits, and, for a catalog defined in code, commonTypesUri, themeLocation and defModels. catalog.withEntries(components, functions) returns a catalog with the same fields and other entries, as catalog transformers need.

catalog.derive(options) returns a new catalog under its own id, built from entries of catalog and new ones. In components and functions, a name keeps the entry of that name and an object adds an entry. The new catalog does not keep the source's $id, title, description or instructions, since the instructions of the basic catalog, for example, name its id in their examples:

const chatCatalog = basicCatalog.derive({
  catalogId: 'https://example.com/catalogs/chat.json',
  components: ['Text', 'Image', 'Row', 'Column', 'Button', carousel],
  functions: ['openUrl'],
  instructions,
});
Specification annotations

spec(schema, annotation) returns a copy of a Zod schema that records what a catalog document writes about it beyond the schema itself, without changing validation: mixins (the common types, such as 'ComponentCommon', and the specDef() models a component's definition composes with allOf), closure (additionalProperties or unevaluatedProperties), required (the order of the required list), allOf (schemas that follow the schema's own, such as a format rule) and keywords (such as format). specDef(name, schema) names a model that the document declares under $defs. The descriptions come from .describe(), and common types references from REF:#/$defs/<Name> description markers.

import {Catalog, spec, specDef} from '@a2ui/web_core/catalog';
import {z} from 'zod';

const Common = specDef('Common', z.object({weight: z.number().optional()}));
const Badge = {
  name: 'Badge',
  schema: spec(
    z
      .object({...Common.shape, label: z.string()})
      .describe('A badge.')
      .strict(),
    {mixins: ['ComponentCommon', Common]},
  ),
};
// Badge's definition composes ComponentCommon and #/$defs/Common with allOf,
// and $defs.Common is computed from the Common model.
const document = new Catalog('https://example.com/badges', '0.9', [Badge]).toJson();

The built-in basic catalogs are built this way. Their components and functions are Zod models generated from the published catalog documents by scripts/generate-catalog-schemas.mjs (v0.9 and v1) and src/v0_8/scripts/generate-catalog.mjs (v0.8), which run as part of yarn generate-zod-schemas. For every schema node, the generator predicts the JSON Schema that toJson derives from the Zod code it emits, and annotates the node with the difference from the published schema. toJson of each basic catalog computes its published document from the models; no copy of the document is kept in the package.

Development

Building

The package uses wireit for build orchestration:

yarn build
Testing

Run unit tests:

yarn test

Run conformance test suite:

node tests/conformance/conformance_test.mjs

Run the timing cases of conformance/core/message_processor_scaling.yaml, which check that processing a surface sent in many small messages takes time in proportion to its size. Times depend on the machine and its load, so yarn test leaves these cases out:

yarn test:timing
Formatting & Linting
yarn format
yarn lint

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @a2ui/web_core

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Frame 2085668439 (1)
Group 1261154229