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

@jsprismarine/brigadier

Latest version: v0.27.0-unstable-20261127054903

Overview

Last scanned
27 Nov 2026
Published
27 Nov 2026
npm package Publisher: filiphsandstrom, herryyt
320 Stars
47 Forks
702 Versions
122.4K Downloads
TypeScript Repo language

Scan summary

@jsprismarine/brigadier was last scanned on 27 Nov 2026 at version 0.27.0-unstable-20261127054903. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 702 versions; the latest 5 were published on 27 Nov 2026.
  • Findings: No rules fired in version 0.27.0-unstable-20261127054903.
  • Downloads: 122,355 downloads.

Versions

702 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.27.0-unstable-20261127054903 LATEST 27 Nov 2026 No rules fired
0.27.0-unstable-20261127045900 27 Nov 2026 Not shown
0.27.0-unstable-20261127044738 27 Nov 2026 Not shown
0.27.0-unstable-20261127042126 27 Nov 2026 Not shown
0.27.0-unstable-20261127025857 27 Nov 2026 Not shown

No rules fired in 0.27.0-unstable-20261127054903

Findings

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

README

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

@jsprismarine/brigadier

License Join the Discord Server Contributors npm Code Coverage TODOs Counter FIXMEs Counter GitHub Commit Activity

@jsprismarine/brigadier is a Node.js version of Mojang's Brigadier library. It is a command parser & dispatcher, originally designed and developed for Minecraft: Java Edition and now freely available for use elsewhere under the MIT license.

This project was originally developed by remtori as node-brigadier.

Prerequisites

Before you begin, ensure you have met the following requirements:

  • You have installed the latest version of Node.js and a package manager like npm, pnpm or bun.

Installation

To install @jsprismarine/brigadier, use the following command:

pnpm install @jsprismarine/brigadier --save

Usage

Dispatch a command
import { CommandDispatcher, literal, argument, string, Suggestions } from '@jsprismarine/brigadier';

// Define a BlockPos class
class BlockPos {
    constructor(x = 0, y = 0, z = 0) {
        this.x = x;
        this.y = y;
        this.z = z;
    }
    parse(reader) {
        this.x = reader.readInt();
        reader.skip();
        this.y = reader.readInt();
        reader.skip();
        this.z = reader.readInt();
        return this;
    }
    listSuggestions(context, builder) {
        return Suggestions.empty();
    }
    getExamples() {
        return ['1 2 3'];
    }
}

// Create a new CommandDispatcher
const dispatcher = new CommandDispatcher();

// Register a command
dispatcher.register(
    literal('fill').then(
        argument('pos1', new BlockPos()).then(
            argument('pos2', new BlockPos()).then(
                argument('block', string()).executes((context) => {
                    console.log(context.getArgument('pos1', BlockPos));
                    console.log(context.getArgument('pos2', BlockPos));
                    console.log(context.getArgument('block', 3));
                    return 0;
                })
            )
        )
    )
);

// Parse a command
const parsedCommand = dispatcher.parse('fill 3 4 5 10 11 12 air', {});

// Execute the command
try {
    dispatcher.execute(parsedCommand);
} catch (error) {
    console.error(error.getMessage());
}
Read a line as Bedrock does

By default the dispatcher parses a line exactly as Mojang's Brigadier does. Two options change that to match the Bedrock Dedicated Server:

const dispatcher = new CommandDispatcher(null, { spaceRuns: true, farthestFailure: true });
  • spaceRuns reads any run of spaces between two arguments as one separator, so time set day parses. Brigadier reads exactly one space.
  • farthestFailure makes a refused line's error point at the first word no route could read. Brigadier reports the first route that stopped without an exception, wherever it stopped.

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 @jsprismarine/brigadier

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

Vulnerability Insights

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

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

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