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

@dynamia-tools/microfrontend-bridge

Latest version: v26.11.4

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
npm package Publisher: dynamia.tools
10 Stars
4 Forks
11 Versions
634 Downloads
Java Repo language

Scan summary

@dynamia-tools/microfrontend-bridge was last scanned on 23 Nov 2026 at version 26.11.4. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 11 versions; the latest 3 were published within 6 days (18–23 Nov 2026).
  • Findings: No rules fired in version 26.11.4.
  • Downloads: 634 downloads.

Versions

11 versions published
Versions and the rules that fired in each
VersionPublishedStatus
26.11.4 LATEST 23 Nov 2026 No rules fired
26.11.3 23 Nov 2026 No rules fired
26.11.2 18 Nov 2026 No rules fired
26.11.1 10 Nov 2026 Not shown
26.11.0 9 Nov 2026 Not shown

No rules fired in 26.11.4

Findings

Findings for v26.11.4. 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 26.11.4; other versions have their own rules, not their own score.

README

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

@dynamia-tools/microfrontend-bridge

Typed helpers for JS/TS bundles (Vue, React, Svelte, plain JS) embedded via tools.dynamia.zk.ui.MicroFrontend.

MicroFrontend embeds an external JS bundle inside a ZK page and talks to it through a small, ad-hoc protocol: an injected dynamiaEmit(data) callback to notify the server, and a dynamiaHost prop with server-registered context (tenant, locale, API base URL, ...). This package wraps that protocol in three small, fully-typed functions so bundle authors don't have to know the wire details or duck-type props by hand.

Zero runtime dependencies, works with any bundler/framework — this only touches plain objects.

Installation

npm install @dynamia-tools/microfrontend-bridge

API

  • isDynamiaHost(target) — whether dynamiaEmit was actually injected (false in local/standalone dev, and always false in MicroFrontend's "auto" mode, which has no prop channel at all).
  • emitToHost(target, data) — sends data back to the server, which fires onMicrofrontendEvent. No-ops with a console warning (never throws) when not running inside a Dynamia host.
  • getHostContext(target) — reads the merged dynamiaHost context, or {} if none was registered.
  • Types: DynamiaMicrofrontendProps, DynamiaHostContext.

In every function, target is whatever object actually carries the props: the custom element instance itself (this) in MODE_CUSTOM_ELEMENT, or the props argument in MODE_MOUNT_FN's mountFn/updateFn.

Usage

Custom element (e.g. Vue's defineCustomElement)
import { defineCustomElement } from 'vue';
import { emitToHost, getHostContext, type DynamiaMicrofrontendProps } from '@dynamia-tools/microfrontend-bridge';
import App from './App.vue';

const MyWidget = defineCustomElement({
  props: ['userId'],
  setup(props) {
    // `this` inside a Vue defineCustomElement's methods is the element instance itself,
    // which is exactly what MicroFrontend assigns dynamiaEmit/dynamiaHost onto.
    function notifyHost(data: unknown) {
      emitToHost(this as unknown as DynamiaMicrofrontendProps, data);
    }
    const host = getHostContext(this as unknown as DynamiaMicrofrontendProps);
    // ...use props.userId, host.tenantId, host.locale, etc.
  },
});

customElements.define('my-widget', MyWidget);
<!-- ZUL side -->
<microfrontend src="/bundles/my-widget.js" tag="my-widget" userId="${user.id}"
               onMicrofrontendEvent="@command('handleWidgetEvent', data=event.data)"/>
mount-fn convention (single-spa style)
import { emitToHost, getHostContext, type DynamiaMicrofrontendProps } from '@dynamia-tools/microfrontend-bridge';

window.mountMyApp = (container: HTMLElement, props: DynamiaMicrofrontendProps) => {
  const host = getHostContext(props);
  fetch(`${host.apiBaseUrl ?? '/api'}/things?tenant=${host.tenantId}`)
    .then((res) => res.json())
    .then((things) => render(container, things, () => emitToHost(props, { type: 'clicked' })));
};

window.updateMyApp = (container: HTMLElement, props: DynamiaMicrofrontendProps) => {
  // called instead of a full unmount+mount when only props changed (MicroFrontend's updateFn=)
  rerender(container, props);
};

window.unmountMyApp = (container: HTMLElement) => {
  container.innerHTML = '';
};
<!-- ZUL side -->
<microfrontend src="/bundles/my-app.js" mode="mount-fn"
               mountFn="mountMyApp" unmountFn="unmountMyApp" updateFn="updateMyApp"/>

Providing host context (Java side)

@Component
public class TenantHostContextProvider implements MicroFrontendHostContextProvider {
    @Override
    public Map<String, Object> getHostContext() {
        Account account = AccountServiceAPI.getCurrentAccount();
        return Map.of(
            "tenantId", account.getId(),
            "locale", LocaleUtils.getCurrentLocale().toLanguageTag(),
            "apiBaseUrl", "/api"
        );
    }
}

License

Apache-2.0

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 @dynamia-tools/microfrontend-bridge

References

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

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

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?

Frame 2085668439 (1)
Group 1261154229