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

@bemedev/app-valibot

Latest version: v3.3.0

Overview

Last scanned
25 Nov 2026
Published
25 Nov 2026
npm package Publisher: bemedev
2 Stars
1 Forks
17 Versions
1.7K Downloads
TypeScript Repo language

Scan summary

@bemedev/app-valibot was last scanned on 25 Nov 2026 at version 3.3.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 17 versions; the latest 3 were published within 4 days (22–25 Nov 2026).
  • Findings: No rules fired in version 3.3.0.
  • Downloads: 1,729 downloads.

Versions

17 versions published
Versions and the rules that fired in each
VersionPublishedStatus
3.3.0 LATEST 25 Nov 2026 No rules fired
3.2.0 25 Nov 2026 No rules fired
3.1.0 22 Nov 2026 No rules fired
3.0.3 17 Nov 2026 Not shown
2.8.3 14 Nov 2026 Not shown

No rules fired in 3.3.0

Findings

Findings for v3.3.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 3.3.0; other versions have their own rules, not their own score.

README

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

@bemedev/app-valibot

Runtime validation library powered by Valibot for @bemedev/app state machine configurations.

@bemedev/app-valibot ensures that state machine definitions adhere to strict structural integrity, valid target paths, correct state node types (atomic, compound, parallel), valid transition arrays, and properly structured actions, guards, and actor configurations before machine instantiation.


Table of Contents

  • Installation
  • Quick Start
  • Validation API
    • validate / validateMachine
    • validateMachine.safe
    • getTargetsFromConfig
  • Schema Architecture
    • 1. Machine & State Hierarchy (Config_Schema, NodeConfig_Schema)
    • 2. Transitions & Edges (Transitions_Schema, TransitionConfig_Schema)
    • 3. Actions (ActionConfig_Schema)
    • 4. Guards & Logical Trees (GuardConfig_Schema, UnionGuard_Schema)
    • 5. Actors & Emitters (ActorConfig_Schema, ChildConfig_Schema, EmitterConfig_Schema)
  • License

Installation

pnpm add @bemedev/app-valibot valibot

Quick Start

import { validateMachine } from '@bemedev/app-valibot';

const machineConfig = {
  initial: 'idle',
  states: {
    idle: { on: { FETCH: 'loading' } },
    loading: { on: { SUCCESS: 'success', FAILURE: 'failure' } },
    success: {},
    failure: {},
  },
};

// 1. Throws ValiError if invalid
const validConfig = validateMachine(machineConfig);

// 2. Safe parse returning success status and issues
const result = validateMachine.safe(machineConfig);
if (result.success) {
  console.log('Machine configuration is valid!');
} else {
  console.error('Validation issues:', result.issues);
}

Validation API

validate / validateMachine
function validateMachine<T>(config: unknown): NodeConfig2;

Extracts all valid state targets from the configuration tree, constructs a target-constrained Config_Schema, and validates the input using v.parse. Throws a ValiError if validation fails. validate is exported as an alias for validateMachine.

validateMachine.safe
function validateMachine.safe(config: unknown): SafeParseResult

Same as validateMachine, but uses v.safeParse. Returns { success: true, output } or { success: false, issues }.

getTargetsFromConfig
function getTargetsFromConfig(node: NodeConfig2): BetterSet<string>;

Recursively inspects a state machine configuration tree and returns a BetterSet of all valid slash-separated target path strings (e.g., '/', '/idle', '/loading', '/auth/login'). These path strings are passed to transition schemas to ensure all transition target references exist within the machine tree.


Schema Architecture

1. Machine & State Hierarchy (Config_Schema, NodeConfig_Schema)

The root configuration schema validates top-level machine properties and recursive child state nodes:

  • Node Types (checkNodeType):
    • atomic: Must NOT define states or initial.
    • compound: Must define both states and initial.
    • parallel: Must define states and MUST NOT define initial.
  • Properties:
    • initial: Optional string key of the initial state for compound nodes.
    • states: Optional map of state keys to nested NodeConfig_Schema definitions (evaluated lazily via v.lazy()).
    • entry / exit: Single or array of action configurations.
    • tags: Single string or array of strings.
    • activities: Record of activity names to activity configurations.
    • description: Human-readable summary string.
    • strict: Optional boolean to enforce strict configuration rules.

2. Transitions & Edges (Transitions_Schema, TransitionConfig_Schema)

Transitions represent state changes triggered by events, timers, or transient conditions:

  • Event Transitions (on): Map of event names to single transitions or arrays of conditional transitions (SingleOrArrayT_Schema).
  • Delayed Transitions (after): Map of delay durations or delay keys to transitions.
  • Eventless Transitions (always): Array or single transition evaluated immediately upon entering a state (AlwaysConfig_Schema).
  • Transition Object Validation:
    • target: Target path string. Must match one of the valid targets collected by getTargetsFromConfig.
    • actions: Executed upon transition traversal.
    • cond / guards: Predicates that must evaluate to true for the transition to take place.
  • Ordered Guard Rules (ArrayTransitions_Schema):
    • Validates array transition orders, ensuring that fallback transitions (without guards) are placed last in transition arrays.

3. Actions (ActionConfig_Schema)

Validates action specifications in entry, exit, and transition actions:

  • String Action: Name referencing an action registered in machine options.
  • Describer Object: Object containing an execution handler and optional metadata:
    {
      exec: (state, event) => { ... },
      description: 'Updates user profile'
    }

4. Guards & Logical Trees (GuardConfig_Schema, UnionGuard_Schema)

Guards control whether a transition can trigger:

  • Named Guard: String key corresponding to a guard function in machine options.
  • Describer Guard: Object with cond predicate function and description.
  • Logical Guard Trees: Recursive boolean logic schemas:
    • and: Array of guards that must all evaluate to true.
    • or: Array of guards where at least one must evaluate to true.
    • not: Inverts the result of an inner guard.

5. Actors & Emitters (ActorConfig_Schema, ChildConfig_Schema, EmitterConfig_Schema)

Validates invoked actors and stream emitters attached to state nodes:

  • ChildConfig_Schema: Spawns sub-state machines with context mappings (contexts) and event handlers (on).
  • EmitterConfig_Schema: Manages observables/reactive streams with next emission handlers, error failure handlers, and complete (FinallyConfigSchema) completion handlers.
  • FinallyConfigSchema: Validates final action and guard pipelines executed upon actor completion.

License

MIT

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 @bemedev/app-valibot

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

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

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Vulnerability Insights

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

Frame 2085668439 (1)
Group 1261154229