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

@juggernautlabs/cloud

Latest version: v0.1.5

Overview

Last scanned
17 Aug 2026
Published
17 Aug 2026
npm package Publisher: juggernautlabs
1 Versions
283 Downloads

Scan summary

@juggernautlabs/cloud was last scanned on 17 Aug 2026 at version 0.1.5. Risk score 80 of 100 (high). High-severity rules fired.

  • Releases: First and only release on 17 Aug 2026.
  • Findings: 1 rule fired in version 0.1.5 (2 instances: 2 high). The score describes this version only.
  • Downloads: 283 downloads.

Versions

1 version published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.5 LATEST 17 Aug 2026 1 rule fired

Rules fired in 0.1.5: 1

Findings

2 High

Findings for v0.1.5. 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.

Runtime-built function run with Node internals, fed by a network fetch

The code builds a function at runtime and runs it with Node's require, module or process objects, and a network fetch appears to supply the code. Whoever controls the downloaded content could then run code with the same access as the application.

HIGH
Checking access…

🔒 Create a free account to see all 2 findings with descriptions and instance counts

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

README

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

@juggernautlabs/cloud

Official Node.js and browser SDK for the Juggernaut Cloud Platform. Execute AI processes, manage cloud database schemas, search cloud resources, run plugins locally, and handle file assets with full TypeScript support.

npm version license node


Installation

npm install @juggernautlabs/cloud

For the browser via CDN:

<script src="https://cdn.jsdelivr.net/npm/@juggernautlabs/cloud/build/browser.js"></script>
<script>
  JuggernautCloud.init('your-client-id', 'your-api-key');
</script>

Quick Start

import { init, runProcess, getProcessJobEvents, DatabaseSchema } from '@juggernautlabs/cloud';

// Initialize once per application lifecycle
init('your-client-id', 'your-api-key');

// Run a process
const { referenceId, jobId } = await runProcess({
  processId: 'process_123',
  inputs: { topic: 'AI Trends' },
  metadata: { source: 'dashboard' }
});

// Poll for completion and get results in one call
const final = await getProcessJobEvents({
  referenceId,
  polling: { intervalMs: 2000, durationMs: 120000 },
  onProgress: (tick) => console.log('status tick', tick.data.length)
});

console.log(final.results);

Table of Contents

  • Initialization
  • Process Execution
    • Run a Process
    • Run a Process and Wait for Completion
    • Get Process Inputs
    • Upload / Ingest a Process
    • Schedule a Process
    • Job Events & Polling
    • Get Job Results
    • Retrieve Job Files
  • Resource Search
  • Model Listings
  • Local Plugin Initialization
  • Database Operations
  • Browser Usage
  • Error Handling
  • TypeScript Types
  • Contributing
  • License

Initialization

import { init } from '@juggernautlabs/cloud';

init(clientId?: string, apiKey?: string);

Call once at application startup to set global authentication credentials. All subsequent API calls use these credentials unless you pass clientId/apiKey per request.

You can also provide credentials via environment variables:

  • JUGGERNAUT_CLIENT_ID
  • JUGGERNAUT_API_KEY
  • JUGGERNAUT_BASE_URL (optional, defaults to https://core.juggernautlabs.ai)

Credentials are resolved in the following order of precedence:

  1. Per-request clientId / apiKey
  2. Explicit values passed to init(...)
  3. Environment variables
import { init, runProcess } from '@juggernautlabs/cloud';

// Use env vars only
init();

// Override env vars / per-request
init('your-client-id', 'your-api-key');

// Override init/env credentials for a single call
await runProcess({
  processId: 'process_123',
  inputs: { topic: 'AI Trends' },
  clientId: 'other-client',
  apiKey: 'other-key'
});

Process Execution

Run a Process
import { runProcess } from '@juggernautlabs/cloud';

const job = await runProcess({
  processId: 'your-process-id',
  inputs: {
    market: 'US_EQUITY',
    symbol: 'AAPL'
  },
  metadata: {
    userId: 'user_123',
    traceId: 'trace_456'
  }
  // Optional: accessPoint: 'your-access-point-id'
});

ProcessExecutionOptions

Property Type Required Description
processId string ✅ The process definition ID to execute
inputs Record<string, any> ✅ Input payload passed to the process
metadata Record<string, any> ❌ Arbitrary metadata attached to the job
accessPoint string ❌ Public access point for white-label deployments
clientId string ❌ Override global client ID
apiKey string ❌ Override global API key

Get Process Inputs

Retrieve the declared input schema for a process.

import { getProcessInputs } from '@juggernautlabs/cloud';

const inputs = await getProcessInputs('process_123');
console.log(inputs); // [{ name: 'symbol', type: 'string', required: true }, ...]

Upload / Ingest a Process

Ingest a raw process definition using the /api/process/upload endpoint. This is useful when you have a process description matching the InputProcess schema (pipelines, steps, messages, plugins, etc.) and want the server to normalize and store it.

import { ingestProcess } from '@juggernautlabs/cloud';

const result = await ingestProcess({
  process: {
    name: 'My Ingested Process',
    defaultModel: 'gpt-4',
    store: {},
    pipelines: [
      {
        type: 'standard',
        next: null,
        steps: [
          {
            name: 'Generate summary',
            outputName: 'summary',
            iterations: 1,
            type: 'standard',
            executionType: 'standard',
            taskType: 'LLM',
            messages: [
              {
                type: 'system',
                content: 'Summarize the following: {{topic}}',
                variables: [{ topic: 'AI' }],
                isTemplate: true
              }
            ],
            options: {
              outputFormat: 'text'
            }
          }
        ]
      }
    ]
  }
});

Schedule a Process
import { scheduleProcess } from '@juggernautlabs/cloud';

const schedule = await scheduleProcess({
  processId: 'your-process-id',
  name: 'Daily report',
  intervals: 'daily',
  inputs: { /* ... */ },
  metadata: { /* ... */ }
});

Job Events & Polling

Fetch events manually or use the built-in poller.

Manual Event Fetch
import { getProcessJobEvents } from '@juggernautlabs/cloud';

const events = await getProcessJobEvents({
  referenceId: 'ref_abc123'
});
Automatic Polling (Recommended)
const result = await getProcessJobEvents({
  referenceId: 'ref_abc123',
  polling: {
    intervalMs: 2000,    // Poll every 2 seconds
    durationMs: 300000,  // Optional: stop polling after 5 minutes
    maxIntervalMs: 30000 // Optional: back off to 30s for long-running jobs
  },
  onProgress: (tick) => {
    console.log('Events:', tick.data.length, 'done:', tick.done);
  }
});

console.log('Final results:', result.results);

Polling Response (PollResultResponse)

Property Type Description
data any[] Latest batch of events
done boolean true when the job reaches a terminal status
results any \| null Final job output (populated once done === true)
error string Error message if the job failed or results could not be fetched

Terminal Statuses: job-end, job-error, job-completed, process-completed, process-ended

The poller deduplicates overlapping ticks, caches results after the first successful fetch, runs event detection and result fetching concurrently, and supports optional exponential backoff via maxIntervalMs for long-running jobs.

Run a Process and Wait for Completion

For CLI agents and other long-running callers, use runProcessAndWait to start a process and block until it completes in a single call:

import { runProcessAndWait } from '@juggernautlabs/cloud';

const result = await runProcessAndWait({
  processId: 'process_123',
  inputs: { topic: 'AI Trends' },
  metadata: { source: 'cli' },
  polling: {
    intervalMs: 2000,    // Poll every 2 seconds initially
    maxIntervalMs: 30000 // Back off to 30 seconds for multi-minute jobs
  },
  onProgress: (tick) => {
    console.log('Events so far:', tick.data.length, 'done:', tick.done);
  }
});

if (result.error) {
  console.error('Job failed:', result.error);
} else {
  console.log('Final results:', result.results);
}

Get Job Results
import { getJobResults } from '@juggernautlabs/cloud';

const results = await getJobResults('jobId_123');

Usually unnecessary when using the polling helper above.


Retrieve Job Files
import { getJobFile } from '@juggernautlabs/cloud';

// Link format from job results: file(image):64f8a1b2c3d4e5f6a7b8c9d0
const stream = await getJobFile('jobId_123', 'file(image):64f8a1b2c3d4e5f6a7b8c9d0');

Supported File Types: image, audio, text


Resource Search

Search processes, prompts, plugins, and process jobs.

import {
  searchListings,
  getRecentSearches,
  searchProcessJobs,
  getListingsByIds
} from '@juggernautlabs/cloud';

// Search any supported resource type
const listings = await searchListings({
  searchType: 'process',
  name: 'report',
  pageNumber: 1,
  rowsPerPage: 12,
  orderBy: { createdAt: 'desc' }
});

// Recent searches
const recent = await getRecentSearches('process');

// Jobs for a specific process
const jobs = await searchProcessJobs({
  processId: 'process_123',
  fields: { status: { $in: ['completed', 'failed'] } }
});

// Batch fetch by IDs
const byIds = await getListingsByIds({
  listingType: 'prompt',
  ids: ['id1', 'id2']
});

Model Listings

List the AI models available in the Juggernaut platform.

import { listModels } from '@juggernautlabs/cloud';

const allModels = await listModels();

Local Plugin Initialization

Fetch plugin metadata and JavaScript content, then execute the plugin locally in a Node VM context.

import { getPlugin, getPluginContent, initializePlugin } from '@juggernautlabs/cloud';

// Just metadata or source
const details = await getPlugin('plugin_123');
const source = await getPluginContent('plugin_123');

// Full local initialization
const plugin = await initializePlugin('plugin_123', { execute: true });

// Callers provide their own auth tokens
const instance = plugin.exports.create(
  { /* authSettings */ },
  { /* settings */ }
);

In browser environments initializePlugin returns { details, content } without executing the script.


Database Operations

The SDK includes a fluent DatabaseSchema class for Juggernaut Cloud Database resources.

import { DatabaseSchema } from '@juggernautlabs/cloud';

const users = new DatabaseSchema('schema_users_123', 'Users');

// CREATE
const newRecord = await users.insert({ email: 'ken@juggernautlabs.ai', role: 'admin' });

// READ
const record = await users.getRecord('64f8a1b2c3d4e5f6a7b8c9d0');

// UPDATE
await users.update('64f8a1b2c3d4e5f6a7b8c9d0', { role: 'superadmin' });

// DELETE
await users.delete('64f8a1b2c3d4e5f6a7b8c9d0');

// QUERY
const results = await users.query('SELECT * FROM Users WHERE role = ?', { role: 'admin' });

Provide an accessPoint as the third constructor argument to route through the public API layer.


Browser Usage

Load the IIFE bundle and use the global JuggernautCloud object:

<script src="https://cdn.jsdelivr.net/npm/@juggernautlabs/cloud/build/browser.js"></script>
<script>
  JuggernautCloud.init('your-client-id', 'your-api-key');

  JuggernautCloud.runProcess({
    processId: 'process_123',
    inputs: { topic: 'AI Trends' }
  }).then(job => console.log(job));
</script>

Plugin VM execution is not available in the browser bundle; use getPlugin and getPluginContent and execute the script with your own loader.


Error Handling

Network errors from the Juggernaut API bubble up as standard Error objects with the status and message returned by the API.

Validation errors thrown by the SDK itself include:

Method Throws When
DatabaseSchema.getRecord() id is falsy
DatabaseSchema.query() queryString is falsy
DatabaseSchema.insert() record is not an object
getJobFile() link does not match file(type):id pattern

TypeScript Types

All public types are exported from the package entry point:

import type {
  ProcessExecutionOptions,
  ProcessRunAndWaitOptions,
  ProcessScheduleOptions,
  ProcessIngestOptions,
  InputProcess,
  InputPipeline,
  InputPipelineStep,
  InputPipelineMessage,
  ProcessJobEventsRequest,
  PollResultResponse,
  PollingOptions,
  SearchListingsRequest,
  ProcessJobSearchRequest,
  ListingsByIdsRequest,
  ModelDefinition,
  ListModelsRequest,
  ListModelsResponse,
  PluginInitializationOptions,
  PluginInstance,
  BrowserCommand,
  ContextMappingOptions,
  ContextLoopOptions
} from '@juggernautlabs/cloud';

Contributing

Issues and pull requests are welcome in the GitHub repository.


License

MIT © Juggernaut Labs

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 @juggernautlabs/cloud

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

Copy of Template Design OX Blog (2)
Research

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

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Frame 2085668439 (1)
Group 1261154229