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

@janssenproject/cedarling_wasm

Latest version: v0.0.534

Overview

Last scanned
27 Nov 2026
Published
27 Nov 2026
npm package Publisher: janssenbot
656 Stars
179 Forks
127 Versions
7.3K Downloads
Java Repo language

Scan summary

@janssenproject/cedarling_wasm was last scanned on 27 Nov 2026 at version 0.0.534. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 127 versions; the latest 5 were published within 5 days (23–27 Nov 2026).
  • Findings: 1 rule fired in version 0.0.534 (1 low). The score describes this version only.
  • Downloads: 7,255 downloads.

Versions

127 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.0.534 LATEST 27 Nov 2026 1 rule fired
0.0.533 26 Nov 2026 1 rule fired
0.0.532 25 Nov 2026 1 rule fired
0.0.531 24 Nov 2026 Not shown
0.0.530 23 Nov 2026 Not shown

Rules fired in 0.0.534: 1

Findings

1 Low

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

README

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

Getting Started with Cedarling in a JavaScript App

The @janssenproject/cedarling_wasm package brings Cedarling authorization to JavaScript and TypeScript applications. Cedarling evaluates Cedar policies within your application's process, whether it runs in a browser, on a server, or at the edge. It determines whether a principal or token set may perform an action on a resource.

Use Cedarling to apply consistent access policies, inspect authorization decisions, retain decision logs, and make application context available to policy evaluation.

Installation

Using the Package Manager
npm install @janssenproject/cedarling_wasm

Choose the package entry for your application. The package ships Cedarling's WebAssembly (.wasm) binary; the last column describes how that binary is loaded and initialized. Your application's policy archive is configured separately.

Environment Package Entry Packaged WASM Loading
Browser applications with supported bundlers @janssenproject/cedarling_wasm Automatic
Node.js 22, 24, or 26, ESM or CommonJS @janssenproject/cedarling_wasm Automatic
Cloudflare Workers and Vercel Edge @janssenproject/cedarling_wasm/edge Bundled as a precompiled module
Other ESM bundlers @janssenproject/cedarling_wasm/manual and /wasm Application-configured WASM loading

Browser applications use an ESM-aware bundler. Follow Other Integration Paths for edge deployment and application-controlled WASM loading.

Build from Source

For local generation, package build, and qualification instructions, see the maintainer guide.

Usage

Initialization

Create a Cedarling instance with init(). It ensures the package's WASM binary is loaded and initialized, then creates the instance using an object or Map of canonical Cedarling bootstrap properties.

For browser or Node.js ESM applications:

import { init } from "@janssenproject/cedarling_wasm";

const config = {
  CEDARLING_APPLICATION_NAME: "task-api",
  CEDARLING_LOG_TYPE: "memory",
  CEDARLING_LOG_TTL: 120,
};
let cedarling;
try {
  cedarling = await init({
    ...config,
    CEDARLING_POLICY_STORE_URI: "https://example.com/policy-store.cjar",
  });
} catch (error) {
  console.error("Cedarling initialization failed", error);
  throw error;
}

Replace the example URL with your application's policy archive. For Node.js CommonJS, use the following import and run the initialization inside an async function:

const { init } = require("@janssenproject/cedarling_wasm");

The examples below reuse cedarling. Run each authorization walkthrough separately, with a policy store that matches its entities and attributes. Handle initialization failures in your application's startup error handler. See the bootstrap-property reference for configuration values, defaults, and token-validation settings.

Policy Store Sources

A Cedar archive (.cjar) packages the schema, policies, and trusted-issuer configuration. Prepare policies with the Agama Lab Policy Designer and follow the Cedar Archive format for packaging.

Load a Cedar Archive from a URL

Set CEDARLING_POLICY_STORE_URI as shown in Initialization. Cedarling downloads the archive while creating the instance. Use an absolute HTTP(S) URL. For browser downloads, use the application's origin or configure the archive server's CORS headers to allow the application origin.

Load a Cedar Archive from Bytes

Use initFromArchiveBytes() instead of init() when your application controls the download. This browser example reuses config from Initialization and fetches an archive through a same-origin application endpoint:

import { initFromArchiveBytes } from "@janssenproject/cedarling_wasm";

let policyArchiveBytes;
let cedarling;
try {
  const response = await fetch("/api/policy-store");
  if (!response.ok) throw new Error("Policy-store download failed");
  policyArchiveBytes = new Uint8Array(await response.arrayBuffer());
  cedarling = await initFromArchiveBytes(config, policyArchiveBytes);
} catch (error) {
  console.error("Policy-store download or initialization failed", error);
  throw error;
}

The archive bytes supply the policy store; config supplies the other bootstrap properties. The package still loads and initializes its own WASM binary. In Node.js, use an absolute download URL. Keep upstream policy-store credentials on a trusted server; browser configuration is visible to its users.

Verify the Archive Signature

Set CEDARLING_POLICY_STORE_SIGSTORE_MODE to enforce to load an archive only if its Sigstore bundle verifies for the expected signer. For an archive published by Agama Lab:

const config = {
  // ...other bootstrap properties
  CEDARLING_POLICY_STORE_URI: "https://example.com/policy-store.cjar",
  CEDARLING_POLICY_STORE_SIGSTORE_MODE: "enforce",
  CEDARLING_POLICY_STORE_SIGSTORE_CERT_IDENTITY:
    "asset-signer@prod-gluu-cloud-platform.iam.gserviceaccount.com",
  CEDARLING_POLICY_STORE_SIGSTORE_CERT_OIDC_ISSUER: "https://accounts.google.com",
};

Cedarling fetches the bundle from the archive URL with .sigstore.json appended. With initFromArchiveBytes(), also set CEDARLING_POLICY_STORE_SIGSTORE_BUNDLE_URI to the bundle's HTTP(S) URL. In a browser, the bundle server needs the same CORS headers as the archive server. See bootstrap properties.

Authorization

Choose token-based authorization when identity comes from JWTs, or unsigned authorization when the application supplies a trusted principal. Both methods accept a JSON-string request and return a promise that resolves to an authorization result containing decision and request_id.

Token-Based Authorization (Multi-Issuer)

Use authorizeMultiIssuer() to evaluate tokens from one or more issuers. Your policy store must define the token mappings, trusted issuers, resource schema, action, and context used below. Configure token validation for those issuers; the initialization example retains Cedarling's validation defaults.

  1. Prepare the tokens.

    Obtain acmeAccessToken and dolphinAccessToken from your application's authentication flows. Each mapping must match its policy-store token metadata; each payload is the actual JWT string.

    const tokens = [
      { mapping: "Acme::Access_Token", payload: acmeAccessToken },
      { mapping: "Dolphin::Access_Token", payload: dolphinAccessToken },
    ];
  2. Define the resource.

    This example targets a document. Its type and attributes must match your schema.

    const resource = {
      cedar_entity_mapping: { entity_type: "Task::Document", id: "document-1" },
      owner: "alice",
    };
  3. Define the action.

    const action = 'Task::Action::"Read"';
  4. Define the context.

    Supply request-specific data required by your policies and schema.

    const context = { tenant: "example" };
  5. Build the request.

    const request = { tokens, action, resource, context };
  6. Perform authorization and handle the decision.

    try {
      const result = await cedarling.authorizeMultiIssuer(JSON.stringify(request));
      console.log(result.decision ? "Allowed" : "Denied", result.request_id);
    } catch (error) {
      console.error("Authorization failed", error);
    }
Unsigned Authorization

Use authorizeUnsigned() when your application supplies the principal and its attributes. Obtain those values from trusted application state. The policy store for this example must define Task::User with a role, Task::Document with an owner, and the Read action with the tenant context field.

  1. Prepare the principal.

    const principal = {
      cedar_entity_mapping: { entity_type: "Task::User", id: "alice" },
      role: "member",
    };
  2. Define the resource.

    const resource = {
      cedar_entity_mapping: { entity_type: "Task::Document", id: "document-1" },
      owner: "alice",
    };
  3. Define the action.

    const action = 'Task::Action::"Read"';
  4. Define the context.

    const context = { tenant: "example" };
  5. Build the request.

    const request = { principal, action, resource, context };
  6. Perform authorization and handle the decision.

    try {
      const result = await cedarling.authorizeUnsigned(JSON.stringify(request));
      console.log(result.decision ? "Allowed" : "Denied", result.request_id);
    } catch (error) {
      console.error("Authorization failed", error);
    }

For both methods, decision: false is a valid denial. Malformed requests reject the call. Multi-issuer authorization can continue with tokens that pass validation, so policies must require the tokens needed for access. Perform the protected operation only after receiving decision: true; enforce server-side access at the server boundary.

Batch Authorization

Evaluate several resources with one principal or token set. Each item contains an action, resource, and optional context. Reuse the values from the relevant walkthrough:

const items = [
  { action, resource, context },
  {
    action,
    resource: {
      ...resource,
      cedar_entity_mapping: { entity_type: "Task::Document", id: "document-2" },
    },
    context,
  },
];

For the unsigned walkthrough:

let batch;
try {
  batch = await cedarling.authorizeUnsignedBatch(
    JSON.stringify({ principal, items }),
  );
} catch (error) {
  console.error("Batch authorization failed", error);
  throw error;
}

For the token-based walkthrough, use this call instead:

let batch;
try {
  batch = await cedarling.authorizeMultiIssuerBatch(
    JSON.stringify({ tokens, items }),
  );
} catch (error) {
  console.error("Batch authorization failed", error);
  throw error;
}

After a successful batch call, inspect each item in the same order as the submitted items:

for (const item of batch.results) {
  if (item.is_ok) {
    console.log(item.unwrap().decision ? "Allowed" : "Denied");
  } else {
    console.error(item.error?.category, item.error?.message);
  }
}

A valid denial has is_ok === true and a false decision. A per-item build error has is_ok === false. The returned batch_id correlates the batch's decision logs.

Logging

The initialization example enables memory logging and retains entries for up to 120 seconds. Inside either authorization walkthrough's try block, use the returned request ID to inspect its logs:

const logs = cedarling.getLogsByRequestId(result.request_id);
console.log(logs);

Log records are plain JavaScript objects. To retrieve and clear all retained logs when your application is ready to consume them:

try {
  const retainedLogs = cedarling.popLogs();
  console.log(retainedLogs);
} catch (error) {
  console.error("Log retrieval failed", error);
}
Context Data

Store application-scoped data for policy evaluation, then retrieve or remove it:

try {
  cedarling.pushDataCtx("user:alice", { plan: "pro" }, 3600n);
  const value = cedarling.getDataCtx("user:alice");
  console.log(value);
  cedarling.removeDataCtx("user:alice");
} catch (error) {
  console.error("Context-data operation failed", error);
}

The optional TTL is a bigint number of seconds; omitting it uses the configured default. Retrieval returns null when a value is absent or expired.

Metrics Snapshot

Destructive read: returns a metrics snapshot and resets the counters.

try {
  const snapshot = cedarling.drainMetrics();
  console.log(snapshot.operational_stats.get("authz.requests_total"));
  console.log(snapshot.interval_secs);
} catch (error) {
  console.error("Metrics snapshot failed", error);
}

Requires CEDARLING_METRICS_COLLECTION: "enabled". Fails whenever CEDARLING_LOCK_TELEMETRY_INTERVAL is set, even if the Lock server has no telemetry endpoint. interval_secs is a plain Number (not BigInt), so snapshot.interval_secs + 1 works. It carries fractional seconds, so sub-second intervals are reported exactly. Use snapshot.jsonString() for a JSON-serializable form with plain objects.

Trusted Issuer Readiness

Before token-based authorization, inspect which configured issuers loaded and which failed:

console.log("Loaded issuers", cedarling.loadedTrustedIssuerIds());
console.log("Failed issuers", cedarling.failedTrustedIssuerIds());

To check one issuer, pass its name (the issuer of its token types) to cedarling.isTrustedIssuerLoadedByName(issuerName).

Policy Annotations

Annotations attach metadata such as descriptions to policies using @key("value"). They describe policies independently of their authorization rules. For example, a policy in your archive can include:

@description("Allows Alice to read document-1")
permit (
    principal == Task::User::"alice",
    action == Task::Action::"Read",
    resource == Task::Document::"document-1"
);

Inside the unsigned walkthrough's try block, retrieve descriptions for the determining policy IDs returned in the result:

const descriptions = cedarling.annotationValues(
  result.response.diagnostics.reason,
  "description",
);
console.log(descriptions);

See the Cedar annotation reference for annotation syntax and behavior.

Shutdown

When the application finishes using a Cedarling instance, shut it down:

try {
  await cedarling.shutDown();
} catch (error) {
  console.error("Cedarling shutdown failed", error);
}
Other Integration Paths
Edge Deployments

Use the ESM-only ./edge entry in hosts whose deployment tool bundles the package's WASM binary as a precompiled WebAssembly module. In Cloudflare Workers, initialize inside the request context so policy downloads can run:

import { init } from "@janssenproject/cedarling_wasm/edge";

export default {
  async fetch() {
    let cedarling;
    try {
      cedarling = await init({
        CEDARLING_APPLICATION_NAME: "edge-api",
        CEDARLING_POLICY_STORE_URI: "https://example.com/policy-store.cjar",
      });
      return new Response("Cedarling initialized");
    } catch (error) {
      console.error("Cedarling initialization failed", error);
      return new Response("Internal server error", { status: 500 });
    } finally {
      try {
        await cedarling?.shutDown();
      } catch (error) {
        console.error("Cedarling shutdown failed", error);
      }
    }
  },
};
Manual Bundler Integration

For application-controlled WASM loading, configure your ESM bundler to emit the package's ./wasm export as a URL-addressable binary asset. Configure the server to serve it with the application/wasm content type. The example below reuses config and policyArchiveBytes from Load a Cedar Archive from Bytes, replacing that section's initialization call:

import initWasm, {
  initFromArchiveBytes,
} from "@janssenproject/cedarling_wasm/manual";
import wasmUrl from "@janssenproject/cedarling_wasm/wasm";

let cedarling;
try {
  await initWasm({ module_or_path: wasmUrl });
  cedarling = await initFromArchiveBytes(config, policyArchiveBytes);
} catch (error) {
  console.error("WASM loading or Cedarling initialization failed", error);
  throw error;
}

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 @janssenproject/cedarling_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

Vulnerability Insights

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

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

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Frame 2085668439 (1)
Group 1261154229