Scan your whole stack
From OX Research Newsroom
Are you using @jsprismarine/brigadier?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.27.0-unstable-20261127054903
@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.
| Version | Published | Status |
|---|---|---|
| 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 |
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.
The publisher’s own README, as collected from the registry.
@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.
Before you begin, ensure you have met the following requirements:
To install @jsprismarine/brigadier, use the following command:
pnpm install @jsprismarine/brigadier --save
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());
}
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.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.
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).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.