Scan your whole stack
Are you using cuffscript-wasm?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v6.4.0
cuffscript-wasm was last scanned on 28 Nov 2026 at version 6.4.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 6.4.0 LATEST | 28 Nov 2026 | 1 rule fired |
| 6.3.0 | 27 Nov 2026 | 1 rule fired |
| 6.2.0 | 24 Nov 2026 | 1 rule fired |
| 6.1.0 | 21 Nov 2026 | Not shown |
| 6.0.0 | 20 Nov 2026 | Not shown |
Findings for v6.4.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 package includes a WebAssembly (.wasm) module. It cannot be reviewed as source, but it runs sandboxed inside the JavaScript runtime and can access only what the host code gives it. WebAssembly is common in parsers, codecs and cryptography libraries. Shown for awareness.
LOWThe score describes 6.4.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Prebuilt WebAssembly build of the CuffScript
language engine (tokenizer → lexer → parser → interpreter), compiled with
Emscripten from engine/ and wasm/bindings.cpp in
the main repository.
This package ships build output only — cuffscript.mjs (ES module glue)
and cuffscript.wasm (the compiled engine). There is no JavaScript/TypeScript
wrapper here; that lives in the site that consumes this package (see the
cuffscript-web-ide repository's src/engine/).
npm install cuffscript-wasm
import createCuffScriptModule from "cuffscript-wasm";
const mod = await createCuffScriptModule({
print: (line) => console.log(line),
printErr: (line) => console.error(line),
stdin: () => null, // no input available
});
const result = mod.cuffRun('print("Hello, CuffScript!")', "/");
if (!result.success) {
console.error(result.error);
}
To run a script that uses use <name> from <path>, write every source file
into mod.FS (e.g. mod.FS.mkdirTree("/project/lib"),
mod.FS.writeFile("/project/lib/foo.cuff", "...")) before calling cuffRun,
then pass the entry file's directory as scriptDir.
| Member | What it does |
|---|---|
mod.cuffRun(source, scriptDir) |
Parses and runs the program. scriptDir is the directory in the virtual file system that use <name> from <path> is resolved against. Returns { success, error, exited, exitStatus }; on failure error is the complete report, with the source line and a caret. |
mod.cuffDump(source) |
Parses without running and writes the token and syntax-tree dump through print. Returns { success, error, exited, exitStatus }. |
mod.cuffBytecode(source, scriptDir) |
Runs the script and writes each piece of bytecode through print at the moment it is compiled, in order with what the program prints, like cuffc --bytecode. Returns { success, error, exited, exitStatus }. |
mod.FS |
Emscripten's virtual file system, for the files of a multi-file project. |
The module configuration takes print (called once per line a program prints), printErr, stdin (called once per byte that input() reads; return a byte from 0 to 255, or null at the end of the input) and locateFile (to fetch the .wasm file from somewhere else). Full types: dist/cuffscript.d.ts.
The module runs a program with the engine's default options: no step or time budget, and every library enabled. A browser cannot make ordinary network connections, so DLC:network is not usable there. Memory is capped by the build flags in the repository's Makefile.
A page that runs code it did not write should run the module in a Web Worker that it can terminate. Embedding the engine says more.
This package is not meant to build from source on install. To regenerate
dist/cuffscript.mjs and dist/cuffscript.wasm, install the
Emscripten SDK
and, from the repository root:
make wasm
This writes straight into npm/dist/. Then bump the version in
package.json (kept in step with the engine's own version) and run
npm publish from this directory.
Apache-2.0, same as the parent cuffscript
repository — see LICENSE.
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.