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

@vizejs/babel-plugin

Latest version: v0.823.0

Overview

Last scanned
1 Dec 2026
Published
1 Dec 2026
npm package Publisher: ubugeeei
956 Stars
54 Forks
113 Versions
23.9K Downloads
Rust Repo language

Scan summary

@vizejs/babel-plugin was last scanned on 1 Dec 2026 at version 0.823.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 113 versions; the latest 5 were published within 2 days (30 Nov and 1 Dec 2026).
  • Findings: No rules fired in version 0.823.0.
  • Downloads: 23,886 downloads.

Versions

113 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.823.0 LATEST 1 Dec 2026 No rules fired
0.822.0 1 Dec 2026 No rules fired
0.821.0 1 Dec 2026 No rules fired
0.820.0 1 Dec 2026 Not shown
0.819.0 30 Nov 2026 Not shown

No rules fired in 0.823.0

Findings

Findings for v0.823.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.823.0; other versions have their own rules, not their own score.

README

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

@vizejs/babel-plugin

Compile Vue single-file components, JSX, and TSX with the shared Vize compiler inside Babel.

pnpm add -D @babel/core @vizejs/babel-plugin

The native Vize compiler is a normal package dependency. Babel is the host peer; the application supplies its Vue runtime. The current Vapor preview targets Vue 3.6.0-rc.11 and its build containing the Vapor runtime APIs. Select that build through the application's normal module resolution configuration and use createVaporApp or createVaporSSRApp for the client entry.

The runtime conformance matrix uses Vue 3.5.44 for VDOM. Historical 3.6.0-rc.9 fixtures remain an unsupported ABI frontier with their failed and reference packets retained separately.

// babel.config.mjs
export default {
  plugins: [["@vizejs/babel-plugin", { jsxMode: "vdom" }]],
  sourceMaps: true,
};

Use @babel/preset-typescript for type stripping and the usual Babel plugins for decorators, language targets, or CommonJS output. The plugin enables JSX parsing and TSX parsing for .tsx filenames. It leaves plain .ts parsing to the host.

The same plugin compiles .vue files through Babel's parser override. The native compiler returns JavaScript before the normal Babel visitor pipeline runs, so module, target, and instrumentation plugins continue to work on SFC output. Plain and scoped CSS is injected once at runtime by default; server transforms keep the CSS in metadata without touching document.

Options

Option Default Behavior
jsxMode "vdom" Default client renderer: "vdom" or "vapor". Component mode directives retain their native meaning.
ssr false Generate SSR output for the selected client renderer.
jsxCompat "native" Select native or "babel" compatibility semantics. Incompatible combinations surface the compiler diagnostic.
scopedStyles "error" "metadata" lets a bundler consume extracted CSS explicitly.
sfcStyles "inject" Handle SFC CSS with runtime "inject", metadata-only "metadata", or "error".
root cwd Project root used to make SFC scope IDs stable across machines.
isProduction NODE_ENV Enable production SFC output and content-sensitive production scope IDs.

Keep client and server builds on the same renderer setting. Unsupported native source shapes surface as compilation errors.

Component authoring

Vapor and setup SSR output use component objects. A block arrow keeps setup state inside the component; declare props with a named identifier and an inline object type:

import { ref } from "vue";

export const Counter = (props: { label: string }) => {
  const count = ref(0);
  const increment = () => {
    count.value++;
  };
  return <button onClick={increment}>{props.label + ":" + count.value}</button>;
};

The preview rejects destructured props in these component objects. Use their bindings as JSX component tags or direct exports; calls, callable aliases, introspection, and escaping component values require a separate callable representation and produce a diagnostic. Nested JSX that an attribute expression cannot lower also produces a diagnostic.

VDOM client output supports expression arrows. SSR output for an expression functional component is an explicit unsupported role; use a block setup component for the paired client/server build.

Babel composition

The compiler runs in a pre hook. It serializes the current AST, including edits from earlier pre hooks, and compiles that file once. Babel's normal visitors then process the generated module. Program edits and the host's TypeScript, decorator, and module transformations keep their place in that pipeline.

Files without JSX return before loading the native addon. JSX-producing visitor transforms belong in an earlier Babel pass; introducing new JSX after native compilation produces an explicit error. The final generation boundary also checks for JSX introduced by later post hooks. That guard returns control to Babel without claiming code generation; other generator overrides keep Babel's normal collision rules.

.vue files are selected by filename before parsing, so the native compiler is loaded for those inputs even though their authored syntax is not JavaScript. External SFC blocks, custom blocks, style preprocessors, and CSS @import require a bundler adapter and fail explicitly in standalone Babel.

Use Babel overrides, only, and ignore to select Vue files in mixed projects. An explicit foreign JSX runtime or factory is a configuration error.

Source maps

Enable Babel sourceMaps normally. For JSX, the plugin composes the native map with Babel's current-AST map and any upstream input map, then lets Babel's normal generator produce the final map. It does not replace the parser or generator. A missing requested native map produces an error.

For SFCs, the parser override installs the compiler's structured .vue map as Babel's input map before ordinary visitors run. Runtime style bootstrap lines are unmapped and the authored script/template mappings retain their original .vue source.

When calling transformFromAstSync, pass the original source to retain its source content in the map.

Extracted styles

Babel does not emit stylesheets. By default, extracted scoped JSX CSS produces an error. A bundler can opt in and emit the returned styles:

import * as babel from "@babel/core";
import vize from "@vizejs/babel-plugin";

const result = babel.transformSync(source, {
  filename: "Card.tsx",
  plugins: [[vize, { scopedStyles: "metadata" }]],
});

const styles = result.metadata.vize.jsx.scopedStyles;
// Each entry contains scopeId and already-scoped CSS.

The same metadata contains the configured default mode, SSR flag, native pass count, and compiler warnings. Compiler warnings are also emitted as Node warnings.

Application conformance

The packed Babel 7/8 ESM and CommonJS consumer matrix also compiles the unmodified AccessibleMedia.jsx module from the JSX/TSX example application at its authored filename. It checks the complete returned AST, native pass metadata, original source content in the final source map, and exact HTML from the actual Vue server renderer. The retained packets include application source and manifest digests. This qualifies the standalone application module; complete application builds require their environment's adapter gates. The package remains a compatibility preview.

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 @vizejs/babel-plugin

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

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

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?

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?

Frame 2085668439 (1)
Group 1261154229