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

cuffscript-wasm

Latest version: v6.4.0

Overview

Last scanned
28 Nov 2026
Published
28 Nov 2026
npm package Publisher: minirang
7 Stars
3 Forks
25 Versions
2.0K Downloads
C++ Repo language

Scan summary

cuffscript-wasm was last scanned on 28 Nov 2026 at version 6.4.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 25 versions; the latest 3 were published within 5 days (24–28 Nov 2026).
  • Findings: 1 rule fired in version 6.4.0 (1 low). The score describes this version only.
  • Downloads: 2,020 downloads.

Versions

25 versions published
Versions and the rules that fired in each
VersionPublishedStatus
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

Rules fired in 6.4.0: 1

Findings

1 Low

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.

WebAssembly module included

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.

LOW
Checking access…

🔒 Create a free account to see all 1 finding with descriptions and instance counts

The score describes 6.4.0; other versions have their own rules, not their own score.

README

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

cuffscript-wasm

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/).

Install

npm install cuffscript-wasm

Usage

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.

API

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.

Limits of the browser build

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.

Rebuilding

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.

License

Apache-2.0, same as the parent cuffscript repository — see LICENSE.

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 cuffscript-wasm

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

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

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

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

Copy of Template Design OX Blog (2)
Research

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

Frame 2085668439 (1)
Group 1261154229