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

idora.js-zod

Latest version: v1.1.0

Overview

Last scanned
27 Nov 2026
Published
27 Nov 2026
npm package Publisher: srkleraimbot
0 Stars
0 Forks
2 Versions
Java Repo language

Scan summary

idora.js-zod was last scanned on 27 Nov 2026 at version 1.1.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 2 versions, all published on 27 Nov 2026.
  • Findings: No rules fired in version 1.1.0.

Versions

2 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.1.0 LATEST 27 Nov 2026 No rules fired
0.0.0-stage 27 Nov 2026 Not shown

No rules fired in 1.1.0

Findings

Findings for v1.1.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 score describes 1.1.0; other versions have their own rules, not their own score.

README

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

idora.js-zod

Zod schemas for Idora identifiers such as usr_01k2f9v8ta7m3x0qbrn4dzeh5c.

import { idoraId } from 'idora.js-zod';
import * as z from 'zod';

const Params = z.object({ userId: idoraId({ prefix: 'usr' }) });

Params.parse({ userId: 'usr_01k226e0g0008j4ct4ank7f24s' }); // { userId: Id<'usr'> }
Params.parse({ userId: 'ord_01k226e0g0008j4ct4ank7f24s' });
// ZodError: Invalid identifier: expected the prefix 'usr', received 'ord'

One line instead of a hand-written regular expression that is almost right: the schema applies exactly the rules every Idora package parses by, says precisely what is wrong with a rejected identifier, and types what it accepts as a checked Id<'usr'> rather than a bare string.


Install

npm install idora.js-zod idora.js zod

idora.js and zod (4.1 or later) are peer dependencies — you already have them, and this package adds no others. It is an ES module with TypeScript declarations included, and runs wherever Zod and idora.js do.


Schemas

idoraId(options?)

A string schema that accepts Idora identifiers. Its output is the input string, unchanged — parsing is strict, so a valid identifier never needs rewriting — typed as Id.

idoraId();                                // any well-formed identifier       → Id
idoraId({ prefix: 'usr' });               // exactly the prefix usr           → Id<'usr'>
idoraId({ entity: Order, registry: ids }); // the prefix Order is registered with → Id

registry is your Idora generator, or its registry. The prefix is looked up when the schema is built, so naming an unregistered entity type throws EntityPrefixNotRegisteredError at start-up rather than on the first request; an invalid prefix throws InvalidEntityPrefixError the same way.

parsedIdoraId(options?)

The same checks, as a codec that decodes into a parsed IdoraId — with its prefix, createdAt and natural order — and encodes one back into its text:

import { parsedIdoraId } from 'idora.js-zod';

const Query = z.object({ after: parsedIdoraId({ prefix: 'evt' }) });

const { after } = Query.parse(request.query);
after.createdAt;                                // when the event was minted

z.encode(Query, { after });                     // { after: 'evt_01k2…' }

Encoding checks the text on its way out, so an IdoraId with the wrong prefix is refused in that direction too.


Issues

A rejected identifier raises one custom issue. Its message is short and meant for whoever sent the identifier; its params say why, for code that handles a ZodError:

params.reason Default message
noSeparator Invalid identifier: expected a prefix and a value separated by '_', such as usr_01k2f9v8ta7m3x0qbrn4dzeh5c
prefix Invalid identifier: the prefix before '_' must be 1 to 16 ASCII letters or digits
value Invalid identifier: the value after '_' must be a lowercase ULID or UUIDv7
prefixMismatch Invalid identifier: expected the prefix 'usr', received 'ord'

params.expectedPrefix is the prefix the schema expected, if any. The reasons are those of InvalidIdError in idora.js, and are checked in that order. Anything that is not a string is rejected by z.string() in the usual way, before any of this.

Replace the message with error, either fixed or built from the InvalidIdError:

idoraId({ prefix: 'usr', error: 'That is not a user' });
idoraId({ entity: User, registry: ids, error: (error) => `Not a user identifier (${error.reason})` });

JSON Schema and OpenAPI

idoraId() is a plain string schema with a check attached, so z.toJSONSchema describes it as { "type": "string" }. parsedIdoraId() has a string as its input and an IdoraId as its output, so describe it with { io: 'input' }.


License

MIT — 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 idora.js-zod

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

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

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

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