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

@sdxc/rdap

Latest version: v2026.11.30

Overview

Last scanned
30 Nov 2026
Published
30 Nov 2026
npm package Publisher: sergiodxa
18 Stars
1 Forks
11 Versions
591 Downloads
TypeScript Repo language

Scan summary

@sdxc/rdap was last scanned on 30 Nov 2026 at version 2026.11.30. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 11 versions; the latest was published on 30 Nov 2026.
  • Findings: No rules fired in version 2026.11.30.
  • Downloads: 591 downloads.

Versions

11 versions published
Versions and the rules that fired in each
VersionPublishedStatus
2026.11.30 LATEST 30 Nov 2026 No rules fired
2026.11.10 10 Nov 2026 No rules fired
2026.11.3 3 Nov 2026 No rules fired
2026.10.25 25 Oct 2026 Not shown
2026.10.24 24 Oct 2026 Not shown

No rules fired in 2026.11.30

Findings

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

README

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

@sdxc/rdap

Domain registration data over RDAP: a domain's expiry, status, registrar, contacts and nameservers, read from the registry that holds it.

Installation

npm add @sdxc/rdap

A client keeps the IANA bootstrap file in a cache from @sdxc/cache, and every lookup answers a Result from @sdxc/result.

Usage

Create a client
import { MemoryCache } from "@sdxc/cache/memory";
import { RDAP } from "@sdxc/rdap";

let rdap = new RDAP({
    cache: new MemoryCache(),
    userAgent: "ExampleMonitor/1.0 (+https://monitor.example.com)",
});

The client finds each domain's registry through the IANA bootstrap file, which it fetches once and keeps in the cache. The constructor only stores its options, so a client built at module scope does no work at import.

Look up a domain
import { isFailure } from "@sdxc/result";

let looked = await rdap.domain("example.com");
if (isFailure(looked)) return looked;

looked.data.expiresAt; // 1786694400000
looked.data.status; // ["clientDeleteProhibited", "clientTransferProhibited"]
looked.data.registrar; // { name: "Example Registrar, LLC", ianaId: "9999", abuseEmail: null }
looked.data.nameservers; // ["a.iana-servers.net", "b.iana-servers.net"]

Pass the registered name, example.co.uk rather than www.example.co.uk; a registry answers not-found for a name below a registration. Unicode names work: Bücher.com. queries xn--bcher-kva.com.

Handle failures
let looked = await rdap.domain(name);
if (isFailure(looked)) {
    let { code, retryable, retryAfter } = looked.error;
    if (code === "not-found") return markUnregistered(name);
    if (code === "unsupported-tld") return markUnavailable(name);
    if (retryable) return scheduleRetry(name, retryAfter ?? 60_000);
    return markBroken(name, looked.error.message);
}

A lookup is one request chain with no retry; retryable says whether asking again later can succeed, and the caller schedules that attempt.

Ask the registrar too
let looked = await rdap.domain("example.com", { related: true });

Thin registries such as .com and .net link to the registrar's own RDAP server. With related: true the client follows that link and fills the registrar fields the registry left empty; the registry's dates and statuses stand.

Command line

bunx @sdxc/rdap --help

With @sdxc/kit installed, sdxc pkg rdap … runs the same command line, using the version your project installs.

Print a domain's expiry, status, registrar, contacts and nameservers; --related also asks the registrar's server, and --json prints the domain model:

bunx @sdxc/rdap lookup example.com

Exit 1 when a domain expires inside a window, or its registry publishes no expiry, for a cron job or CI step:

bunx @sdxc/rdap expires example.com --within "30 days"

Both exit 2 for a name that is no domain and 1 when the lookup fails, printing the RDAPError code.

API

new RDAP(options: RDAP.Options)
  • cache (required): where the parsed bootstrap file is kept between isolates, under the key rdap:bootstrap:dns.
  • userAgent (required): sent on every request, so a registry that rate-limits can identify the operator.
  • bootstrap: the DNS bootstrap file's URL, for a mirror. Default https://data.iana.org/rdap/dns.json.
  • servers: base URLs by TLD or label sequence, such as { "co.uk": "https://rdap.example-registry.com/" }, matched before the bootstrap file.
  • bootstrapTtl: how long a fetched bootstrap copy is trusted before a refresh. Default "1 day". An older copy keeps serving when a refresh fails.
  • timeout: one deadline per request chain, covering its redirects and the body. Default "10 seconds".
  • maxBytes: the largest registry response read. Default 1 MiB.
rdap.domain(name: string, options?: RDAP.LookupOptions): Promise<Result<RDAP.Domain, RDAPError>>

Looks up a registered domain at its registry. The name is trimmed, loses one trailing dot, and is lowercased and converted to its A-label form the way a browser converts a host. Every hop goes through @sdxc/outbound, so a redirect reaches only public hosts, and the chain stops after three redirects.

rdap.server(name: string): Promise<Result<URL | null, RDAPError>>

The registry base URL for a name: a servers override first, then the bootstrap file, by the longest matching suffix. An entry's HTTPS URL wins over an HTTP one. null means nothing lists the TLD.

RDAPError

The error inside every Failure, with a code, a retryable getter, and the fields the code fills; a field a code leaves out is null.

code retryable When Fields
invalid-domain No The name is not a multi-label host name domain
unsupported-tld No Neither servers nor the bootstrap file lists the TLD tld
not-found No The registry answered 404 url, status
rate-limited Yes 429; retryAfter in milliseconds when Retry-After was sent url, retryAfter
server-error Yes 5xx url, status
refused No Any other non-2xx, a hop that fails the public-host check, or too many hops url, status
invalid-response No The body is not JSON, fails the schema, or is not a domain object url
too-large No The body passed maxBytes url
timeout Yes The deadline passed url
network Yes The connection failed or the body broke off url
bootstrap-unavailable Yes The bootstrap file could not be fetched and no copy is cached url, cause
isRedacted(domain: RDAP.Domain, field: RDAP.Field): boolean

Whether the registry withheld a field under RFC 9537, so a view can say "hidden by the registry" rather than "not published". field is handle or a role and contact field such as registrant.email; a contact the registry removed whole redacts each of its fields.

EPP_STATUSES

Every status the model names, in EPP spelling: the RFC 8056 codes such as clientTransferProhibited, redemptionPeriod and pendingDelete, plus RDAP's own active, inactive, locked, associated, removed and obscured.

Types
RDAP.Domain
Field Value
name A-label form, lowercased, no trailing dot
unicodeName The U-label form the registry published, or null
handle The registry's object id, or null
expiresAt, registeredAt, updatedAt Epoch milliseconds of the latest expiration, registration and last changed event
status RDAP.Status[]: EPP spelling, an unknown value kept as written
registrar RDAP.Registrar, or null
contacts RDAP.Contact[]: every entity, nested ones after their parent
nameservers Lowercased, no trailing dot, in the order published
dnssec secureDNS.delegationSigned, or null when the registry does not say
relatedUrl The related RDAP link, the registrar's record on a thin registry
redacted RDAP.Redaction[]: the RFC 9537 entries, each with the field it resolves onto
server The URL that answered, after redirects
document The response as sent, for fields the model omits

A date the registry omits or writes in a form that does not parse is null; some ccTLD registries publish no expiry at all.

RDAP.Registrar

{ name, ianaId, abuseEmail }, each string | null: the registrar's card name (its organization when the name is empty), its IANA Registrar ID and its abuse contact's email.

RDAP.Contact

{ roles, handle, kind, name, organization, emails, phones, faxes, address, contactUri, url, card }, read alike from a jCard vcardArray or a JSContact jscontact_card; card is the card as JSContact, via @sdxc/jscontact. A redacted empty value reads as null.

RDAP.Status, RDAP.EppStatus

EppStatus is the union of EPP_STATUSES; Status is an EppStatus or any other string a registry wrote.

RDAP.Options, RDAP.LookupOptions

The constructor's options and domain()'s { related?: boolean }.

RDAPErrorCode, RDAPErrorDetails

The code union in the table above, and the { domain, tld, url, status, retryAfter } fields new RDAPError(code, message, details?, options?) takes.

Pattern: A Client In A Cloudflare Worker

A Worker builds one client at module scope over a KV cache, so every isolate shares the bootstrap file and only the first lookup after a day fetches it.

import { WorkerKVCache } from "@sdxc/cache/worker-kv";
import { RDAP } from "@sdxc/rdap";
import { isFailure } from "@sdxc/result";
import { env } from "cloudflare:workers";

let rdap = new RDAP({
    cache: new WorkerKVCache(env.CACHE),
    userAgent: "ExampleMonitor/1.0 (+https://monitor.example.com)",
    timeout: "5 seconds",
});

export default {
    async fetch(request: Request) {
        let name = new URL(request.url).searchParams.get("domain") ?? "";
        let looked = await rdap.domain(name, { related: true });
        if (isFailure(looked)) {
            let status = looked.error.code === "not-found" ? 404 : looked.error.retryable ? 503 : 400;
            return Response.json({ error: looked.error.code }, { status });
        }
        let { name: domain, expiresAt, status, registrar } = looked.data;
        return Response.json({ domain, expiresAt, status, registrar });
    },
};

Pattern: A Registry The Bootstrap File Does Not List

servers points a TLD or a label sequence at a known RDAP server and wins over the bootstrap file; bootstrap reads the file from a mirror.

import { MemoryCache } from "@sdxc/cache/memory";
import { RDAP } from "@sdxc/rdap";

let rdap = new RDAP({
    cache: new MemoryCache(),
    userAgent: "ExampleMonitor/1.0",
    bootstrap: "https://mirror.example.com/rdap/dns.json",
    servers: { "co.uk": "https://rdap.example-registry.com/" },
});

await rdap.server("example.co.uk"); // https://rdap.example-registry.com/
await rdap.server("example.com"); // the bootstrap file's .com entry

Pattern: A Daily Expiry Check Paced Per Registry

Registries rate-limit without documenting it, so a batch groups its domains by rdap.server() and runs each group with low concurrency, while different registries run side by side. The bootstrap file is read once per client, so the grouping costs no extra requests.

import { MemoryCache } from "@sdxc/cache/memory";
import { RDAP } from "@sdxc/rdap";
import { isFailure } from "@sdxc/result";

let rdap = new RDAP({ cache: new MemoryCache(), userAgent: "ExampleMonitor/1.0" });

async function checkAll(domains: string[]) {
    let groups = new Map<string, string[]>();
    for (let domain of domains) {
        let server = await rdap.server(domain);
        let key = isFailure(server) || server.data === null ? "none" : server.data.host;
        groups.set(key, [...(groups.get(key) ?? []), domain]);
    }

    await Promise.all([...groups.values()].map((group) => inBatches(group, 2, check)));
}

async function inBatches<T>(items: T[], size: number, run: (item: T) => Promise<void>) {
    for (let start = 0; start < items.length; start += size) {
        await Promise.all(items.slice(start, start + size).map(run));
    }
}

async function check(domain: string) {
    let looked = await rdap.domain(domain);
    if (isFailure(looked)) return recordFailure(domain, looked.error);
    await saveExpiry(domain, looked.data.expiresAt, looked.data.status);
}

Pattern: Honoring Retry-After From A Queue

A Retry-After can be minutes, so the caller re-enqueues with the server's delay, or its own backoff when the server named none.

import { MemoryCache } from "@sdxc/cache/memory";
import { RDAP } from "@sdxc/rdap";
import { isFailure } from "@sdxc/result";

interface Message {
    domain: string;
    attempt: number;
}

let rdap = new RDAP({ cache: new MemoryCache(), userAgent: "ExampleMonitor/1.0" });

async function handle(message: Message, queue: Queue<Message>) {
    let looked = await rdap.domain(message.domain);
    if (isFailure(looked) && looked.error.retryable) {
        let delayMs = looked.error.retryAfter ?? 2 ** message.attempt * 60_000;
        await queue.send(
            { ...message, attempt: message.attempt + 1 },
            { delaySeconds: Math.ceil(delayMs / 1000) },
        );
        return;
    }
    await store(message.domain, looked);
}

Pattern: Alerting On Statuses That Stop Resolution

status holds EPP codes, typed against EPP_STATUSES, so a set of the ones that take a domain offline checks a lookup beside its expiry.

import type { RDAP } from "@sdxc/rdap";

let STOPS_RESOLVING = new Set<RDAP.Status>([
    "redemptionPeriod",
    "pendingDelete",
    "clientHold",
    "serverHold",
]);

function needsAlert(domain: RDAP.Domain, warningDays: number): boolean {
    if (domain.status.some((status) => STOPS_RESOLVING.has(status))) return true;
    if (domain.expiresAt === null) return false;
    return domain.expiresAt - Date.now() <= warningDays * 86_400_000;
}

Versioning

Releases are dated rather than semantic. A version is the UTC date it was published, written YYYY.M.D, so 2026.9.4 is the release from 4 September 2026. At most one release goes out per day.

Those numbers say when, not what: a later date means a later release and carries no compatibility promise. Any release may change or remove an export.

Depend on one exact date, and move it when you are ready to take the change:

{
    "dependencies": {
        "@sdxc/rdap": "2026.9.4"
    }
}

A caret or tilde range reads the date as major, minor and patch, so it accepts every later release in the same year. An exact version keeps the upgrade yours to schedule.

License

MIT

Author

Sergio Xalambrí

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 @sdxc/rdap

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

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

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