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

@lark-apaas/coding-preset-vite-react

Latest version: v1.0.34-beta.0

Overview

Last scanned
26 Nov 2026
Published
26 Nov 2026
npm package Publisher: byted.lycoiref, bytedance-npm-team, duanlikang_byte, fengtianran_byted, xiaochuanzhang_byted
189 Versions
22.0K Downloads

Scan summary

@lark-apaas/coding-preset-vite-react was last scanned on 26 Nov 2026 at version 1.0.34-beta.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 189 versions; the latest 5 were published within 4 days (23–26 Nov 2026).
  • Findings: No rules fired in version 1.0.34-beta.0.
  • Downloads: 21,971 downloads.

Versions

189 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.0.34-beta.0 LATEST 26 Nov 2026 No rules fired
1.0.34-alpha.20261126030249 26 Nov 2026 No rules fired
1.0.34-alpha.20261125143254 25 Nov 2026 No rules fired
1.0.34-alpha.20261123101602 23 Nov 2026 Not shown
1.0.34-alpha.20261123095227 23 Nov 2026 Not shown

No rules fired in 1.0.34-beta.0

Findings

Findings for v1.0.34-beta.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 1.0.34-beta.0; other versions have their own rules, not their own score.

README

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

@lark-apaas/coding-preset-vite-react

Vite 8 preset used by miaoda-coding vite-react applications. The same defineConfig entry covers jsPage applications and upgraded fullstack applications (MIAODA_APP_TYPE=3).

Development module preloading

Development mode enables bounded modulepreload injection by default. The plugin reads module entry scripts from the transformed HTML, asks Vite to transform those modules, and uses es-module-lexer on the transformed ESM output to distinguish static imports from dynamic imports. It then walks only matching static edges from Vite's client module graph. Production config does not register the plugin.

The traversal is breadth-first and fail-open. There is no preload count cap by default (maxModules can still set one); traversal is limited to 300 visited modules, eight dependency levels, and 250 ms. Each transformed source module is capped at 128 KB; node_modules, virtual and Vite runtime modules are capped at 16 MB, so the shared .vite/deps chunks imported by large deps such as react-dom_client.js are still discovered. At most 2,048 imports are inspected per module, and results are stored in a 32-entry LRU cache. HMR and watched-file changes clear the cache, except files under the dev log directory (LOG_DIR, default logs/) that no client module imports: the dev scripts write logs there constantly and they never change the module graph. Existing modulepreload links are deduplicated.

Besides application sources and pre-bundled deps, the critical-path modules the browser would otherwise discover one round trip later are preloaded as well: /@vite/client and its imports (e.g. env.mjs), /@react-refresh, virtual modules served as /@id/..., and non-pre-bundled node_modules files such as CSS imported by deps or preset aliases. Business entries are walked before the Vite runtime entries. Pre-bundled deps and their shared chunks are only preloaded when their ?v= hash matches the current optimizer metadata; non-pre-bundled node_modules files must carry the current optimizer browserHash. Cross-origin URLs, /@fs, /__vite*, miaoda platform scripts, API paths, unsafe encodings, and query parameters outside Vite's allowlist are filtered.

Preload links are inserted right before the first parser-blocking external script (such as the HMR token script) so the parser acts on them immediately; without such a script they are appended to <head>.

When the 250 ms budget runs out (typically right after the dev server starts), the traversal keeps going in the background for up to 15 s and caches the full result, so the next HTML transform gets the complete list. Fullstack apps write their HTML to disk only at startup and after HMR, so there the preset also rewrites that file once the background traversal finds more preloads.

That file is served by Nest long after it was written. When Vite re-optimizes dependencies in the meantime, its old ?v= preloads would get 504 Outdated Optimize Dep or be downloaded twice, so dev-proxy removes preloads whose version is no longer current before returning the page.

In fullstack apps the very first HTML write after the dev server starts is what the first page request waits for, while Nest is usually still booting. That write keeps traversing until the Nest port accepts connections (at least 250 ms, at most 5 s, matching dev-proxy's retry window), so the first page already gets the full list. Transforms within one breadth-first level run with bounded concurrency (8 by default); results are applied in the same order as a sequential walk.

import { defineConfig } from '@lark-apaas/coding-preset-vite-react';

export default defineConfig(
  {},
  {
    devModulePreload: {
      debug: false,
    },
  }
);

Set devModulePreload.enabled to false, or set MIAODA_DEV_MODULE_PRELOAD=false, to disable the feature; both are read when the config loads, so restart the dev server for the change to apply. Debug mode logs aggregate counts and timing only; it does not log module URLs or query values.

The implementation belongs to this preset because current jsPage and upgraded fullstack templates consume its public defineConfig entry. The separate @lark-apaas/coding-vite-preset package does not register or expose this feature.

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 @lark-apaas/coding-preset-vite-react

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?

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

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

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229