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

@exponential_app/eui-element

Latest version: v0.22.0

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
npm package Publisher: mrniach
20 Stars
1 Forks
27 Versions
5.6K Downloads
Rust Repo language

Scan summary

@exponential_app/eui-element was last scanned on 29 Nov 2026 at version 0.22.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 27 versions; the latest was published on 29 Nov 2026.
  • Findings: 1 rule fired in version 0.22.0 (2 instances: 2 low). The score describes this version only.
  • Downloads: 5,627 downloads.

Versions

27 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.22.0 LATEST 29 Nov 2026 1 rule fired
0.21.0 10 Nov 2026 1 rule fired
0.20.0 9 Nov 2026 1 rule fired
0.19.0 7 Nov 2026 Not shown
0.18.0 6 Nov 2026 Not shown

Rules fired in 0.22.0: 1

Findings

2 Low

Findings for v0.22.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.

WebAssembly module included

The package includes a WebAssembly (.wasm) module. It cannot be reviewed as source, but it runs sandboxed inside the JavaScript runtime and can access only what the host code gives it. WebAssembly is common in parsers, codecs and cryptography libraries. Shown for awareness.

LOW
Checking access…

🔒 Create a free account to see all 2 findings with descriptions and instance counts

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

README

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

@exponential_app/eui-element: genUI as a custom element

<exponential-surface> paints an A2UI surface in the core catalog (@exponential_app/eui) in any page, with no framework (FEED-130). It does not have a painter of its own. It mounts the Solid renderer (@exponential_app/eui-solid) inside itself, so you get one painter with two entry points. The element uses light DOM and is display: contents through one shared zero-specificity rule define() installs (:where(exponential-surface){display:contents}, so any rule of yours wins), so the surface's .xui-surface root is THE box, in the same place React's div would be. Elements attached in one task mount together: the first at once, the rest in a microtask inside one batch.

The invariant

For every surface, the element paints exactly what the React renderer paints: the same elements, attributes, <style data-xui-style> sheets, layers and runtime themes. src/parity.test.ts compares the element's .xui-surface subtree against @exponential_app/eui-react in jsdom, using the Solid package's serializeDom and renderReact.

<script type="module">
  import "@exponential_app/eui-element/define"   // or the self-contained ./standalone bundle
</script>

<exponential-surface theme="orange" mode="system" src="/ui/stream" post="/ui/events"></exponential-surface>

<script type="module">
  const el = document.querySelector("exponential-surface")
  el.addEventListener("xui-action", (e) => e.detail.waitUntil(fetch("/save", { method: "POST", body: JSON.stringify(e.detail.context) })))
</script>

Without a server, call apply() to feed it A2UI 1.0 messages:

const el = document.createElement("exponential-surface")
document.body.append(el)
el.apply({ version: "1.0", createSurface: { surfaceId: "main", catalogId } })
el.apply({ version: "1.0", updateComponents: { surfaceId: "main", components } })

API

attribute / property what
theme A built-in id (attribute). The property also takes a theme JSON or a ResolvedTheme; an object is not reflected. An unusable theme never throws: the default theme paints and xui-theme-issues fires.
mode light, dark or system (the default, followed live)
density, contrast compact, default or comfortable; normal, high or system
locale, time-zone (timeZone) BCP 47 locale (default en-US) and IANA time zone (default the platform's)
direction ltr or rtl (default: the locale's direction)
form-factor (formFactor) phone or wide: the host's form factor, what @media (form-factor: …) matches (default: derived from the surface width, phone below the theme's $breakpoint.md)
width, height A numeric string means px; any other string is a CSS length. An explicit height is the viewport for height conditions.
surface-id (surfaceId) The surface id (default main): the xui-s-<id> class, the store apply() makes, and the host surface it paints
src, post, transport The host API (see below)
surface A createSurface store (it takes priority over the other sources)
root, templates, data Fixture mode: a normalized tree, its lifted templates, and a data model
host An ExponentialHost to use instead of src
plugin A HostPlugin: icons, Markdown, URL and media policies, optionSource, mediaRequest, mediaStreamUrl, resolveUrl, functions, qrScanner (the QrScanner's camera, below), and the callbacks
extensions, strings, states, measure, viewportHeight The same as the Solid props
forcedStates Property only: FORCED interaction states, id → hover, pressed or focus (a key covers the node and its parts, tabs.tab.1). Paint only: no events, no overlay, no focus move. Like the Solid prop

String properties reflect to their attributes. Setting a property to null removes its attribute. Properties set before the element is attached (or before it is upgraded) still apply.

Read-only properties:

  • handle: the SurfaceHandle, or null until the first paint.
  • issues: the active store's reduce issues.
  • status: the transport status; statusDetail: its detail (an error, or why the URL policy refused src/post).
  • surfaceState: the SurfaceState being painted.

Methods:

  • apply(message) sends the message to the surface property, else to the host (receive), else to a store created on first use.
  • setData(pointer, value) writes the active store. In fixture mode it sets a new data.
  • reset() resets the active store.
  • run(command), focus(id), announce(text, live?), scrollIntoView(id) and scrollToIndex(id, index, align?) go through the handle. Before the first paint they return false or do nothing. Called without a string id, focus() and scrollIntoView() keep their usual HTMLElement meaning.

Detaching the element disposes the painted DOM. Re-attaching it paints again, and every property survives. Attaching also clears any children the author put inside the element.

The QrScanner camera

A QrScanner paints only the viewfinder; the camera is the page's, through plugin.qrScanner (the Solid renderer's hook, VAPP-162):

el.plugin = {
  qrScanner: {
    // feed: an empty element filling the viewfinder (append a <video>);
    // formats: default ["qr"]; call onValue per decoded string; return the stop.
    start(feed, formats, onValue) {
      const video = feed.appendChild(document.createElement("video"))
      // … getUserMedia + a decoder calling onValue(text) …
      return () => video.srcObject?.getTracks().forEach((t) => t.stop())
    },
  },
}
el.addEventListener("xui-action", (e) => e.detail.event === "scanned" && pair(e.detail.payload.value))

A value fires the node's scanned handler (xui-action, and plugin.onAction) once per distinct value. Without qrScanner (or when start returns false) the scanner shows Camera unavailable.

The Carousel thumbnails

Round 6 (EXP-1495) paints through the Solid painter: a Carousel with counter: true shows the i / n pill and one with thumbnails: [url…] the strip under its pages (two or more pages). A thumbnail press pages like a dot, so the page gets xui-action with event: "change" and payload.page.

Events

Every event is a CustomEvent that bubbles and is composed. When there is a matching plugin callback, both the callback and the event fire. Where a promise is involved, the results are joined: the control stays pending until all of them settle.

event detail
xui-action SurfaceActionEvent + waitUntil(promise). A Button stays pending (aria-busy="true" and disabled at once; data-pending="true" after PENDING_DELAY_MS) until the promise settles.
xui-input SurfaceInputEvent + waitUntil. The revision is acknowledged when the promise settles.
xui-function-call { call, respond(value) }. The first respond wins. With no response, the plugin's onFunctionCall result is used.
xui-open-url { url }, after the URL policy passed it. Cancelable: if not cancelled, it goes to plugin.openUrl, else window.open(url, "_blank", "noopener,noreferrer").
xui-upload { files, target: { nodeId, name }, waitUntil }
xui-paint-error { error }
xui-theme-issues { issues }
xui-unknown { node }
xui-status { status, detail? }
xui-ready { handle }. Fires once per mount, in a microtask after the handle arrives, so listeners added right after appendChild still get it.

HTMLElementEventMap and HTMLElementTagNameMap are augmented, so addEventListener("xui-action", …) and document.createElement("exponential-surface") are typed.

The host API

When src is set and no host property is given, the element builds new ExponentialHost({ transport }) with one of these transports:

  • WebSocketTransport when src is a ws:/wss: URL or transport="ws".
  • SseTransport when transport="sse".
  • JsonlStreamTransport otherwise.

Client messages are POSTed to post (default src). The element connects the host it built when attached, closes it when detached, and rebuilds it when src, post or transport change. A host surface paints nothing until the host has a surface with surface-id. Actions, functions, URLs and media route through the host (hostPlugin). xui-open-url still fires before the host opens a URL.

A host property belongs to the page. The element connects it only if it has a transport and has never connected (status === "closed"), and it never closes it.

src and post pass the page's URL policy (plugin.urls, the one every href passes) BEFORE a transport is built (decideTransport): a private, loopback or link-local host (10.0.0.5, localhost, *.local, 169.254.169.254, ::1, decimal and IPv4-mapped literals) is denied unless plugin.urls.allowPrivate opts it in (the page's own private origin is, so a dev server on localhost streams from itself); a hosts allowlist holds; schemes: ["https"] means https + wss only; javascript:, file:, data: never connect. A ws:/wss: url is decided as its http(s) twin. A denied src or post builds no host and fetches nothing: status is closed, statusDetail says why (src denied by the URL policy (private)) and xui-status fires once. The standalone bundle carries the same filter.

Extensions

import { defineElementExtension } from "@exponential_app/eui-element"

el.extensions = [defineElementExtension({
  catalog,                                    // defineExtension(...) or its JSON
  components: {
    Gauge: (ctx) => {
      const div = document.createElement("div")
      ctx.applyRootProps(div)                   // class, data-xui-id, data-xui-c, data-r-*, aria, dir, style
      div.textContent = `${ctx.props.value}`
      div.append(...ctx.children())             // ctx.slot("header") for a slot
      div.onclick = () => ctx.emit("press")
      return div
    },
  },
})]

A painter is a plain function: ElementPaintContext goes in, and one DOM element comes out. It runs again when the node, props, theme, mode or root attributes change, and the new element replaces the old one. The painted children and slots are the same nodes on every re-paint. registerExtension(ext) registers one for every surface on the page. A components key that names a core native overrides its painter. A host built from src learns the catalogs of el.extensions when it is built: set the extensions before the element attaches (or before src).

Icons for framework-less hosts

el.plugin = { icons: iconsFromSvg((name) => sprite[name]) }   // SVG markup strings

Each markup string becomes an icon component, created once per distinct string. A name with no markup falls back to the renderer's own Lucide glyphs. The wrapper sets on the <svg> root what lucide-react's root carries for the props it receives:

  • width/height = width ?? size ?? 24.
  • class = the markup's own classes + the painter's.
  • aria-hidden="true", unless an aria-*/role/title prop is passed.
  • stroke = color, stroke-width = strokeWidth.
  • Every other string or number attribute as given (data-icon…).

The markup is trusted, but <script>, foreignObject, on* attributes and javascript: links are stripped anyway.

Entries

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 @exponential_app/eui-element

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

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Frame 2085668439 (1)
Group 1261154229