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

@aooth/arbac

Latest version: v0.2.34

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
npm package Publisher: mav-rik
0 Stars
0 Forks
56 Versions
6.6K Downloads
TypeScript Repo language

Scan summary

@aooth/arbac was last scanned on 29 Nov 2026 at version 0.2.34. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 56 versions; the latest 5 were published within 2 days (28 and 29 Nov 2026).
  • Findings: No rules fired in version 0.2.34.
  • Downloads: 6,595 downloads.

Versions

56 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.2.34 LATEST 29 Nov 2026 No rules fired
0.2.33 29 Nov 2026 No rules fired
0.2.32 29 Nov 2026 No rules fired
0.2.31 28 Nov 2026 Not shown
0.2.29 28 Nov 2026 Not shown

No rules fired in 0.2.34

Findings

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

README

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


Install

pnpm add @aooth/arbac

Documentation

Full docs, API reference, and recipes: https://aooth.moost.org/arbac/

Deny is binary on (resource, action)

.deny(resource, action) short-circuits the entire (resource, action) tuple — there is no scope or filter parameter. Once a deny rule's action regex matches, evaluate() returns { allowed: false } immediately, before any other role's allow scopes are even constructed (see arbac-core/src/arbac.ts:126-131).

If you need "hide rows where condition X", express it as an allow with a filter that excludes X, not as a partial deny:

// ✗ Not supported — no row-level deny.
// .deny("tasks", "query", { scope: { filter: { status: "secret" } } })

// ✓ Use a filtered allow instead.
allowTableRead<UserAttrs, Scope>("tasks", {
  scope: (attrs) => ({
    filter: { tenantId: attrs.tenantId, status: { $ne: "secret" } },
  }),
});

Pinned by UNION-03 and UNION-05 in packages/e2e-demo/test/arbac-union.spec.ts — unscoped deny short-circuits sibling allows, and wildcard .deny("tasks", "*") 403s both row-allow (markDone) and set-allow (new) tuples.

Scopes from multiple roles union via $or — permissive wins

When a user has multiple roles that each allow the same (resource, action), their scopes are merged disjunctively via mergeScopeFilters (see packages/arbac/src/scope/filter.ts). A row matches if ANY scope's filter matches. Consequence: if one scope has no filter (rule registered without scope, or with filter: undefined / filter: {}), the union widens to universe and the more restrictive filters in sibling scopes are silently dropped.

// Role "viewer" — tenant-scoped read on tasks.
.use(allowTableRead("tasks", {
  scope: (attrs) => ({ filter: { tenantId: attrs.tenantId } }),
}))

// Role "tasks-everywhere" — unscoped read on tasks (e.g., for an audit role).
.allow("tasks", "query")  // no scope ← contributes universe to the union

// A user with both roles sees ALL tasks (universe wins), not just their tenant.

This is the natural $or semantic: union of "tenant rows" and "all rows" is "all rows". The takeaway: don't grant an unscoped allow on a resource that other roles are trying to filter. Pinned by the arbacRowFilter empty-vs-undefined coercion tests in packages/arbac-moost/src/db/shared-read-helpers.spec.ts.

License

MIT

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 @aooth/arbac

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

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 (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Vulnerability Insights

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

Frame 2085668439 (1)
Group 1261154229