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

@vllnt/convex-suppression

Latest version: v0.1.1-canary.5677f98

Overview

Last scanned
28 Nov 2026
Published
28 Nov 2026
npm package Publisher: bntvllnt
1 Stars
0 Forks
5 Versions
393 Downloads
TypeScript Repo language

Scan summary

@vllnt/convex-suppression was last scanned on 28 Nov 2026 at version 0.1.1-canary.5677f98. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 5 versions; the latest was published on 28 Nov 2026.
  • Findings: No rules fired in version 0.1.1-canary.5677f98.
  • Downloads: 393 downloads.

Versions

5 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.1-canary.5677f98 LATEST 28 Nov 2026 No rules fired
0.1.1-canary.054f7dd 31 Oct 2026 No rules fired
0.1.0 1 Sep 2026 No rules fired
0.1.0-canary.e93c190 31 Aug 2026 Not shown
0.1.0-canary.65361c7 31 Aug 2026 Not shown

No rules fired in 0.1.1-canary.5677f98

Findings

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

README

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

convex-component npm CI license

@vllnt/convex-suppression

The do-not-contact suppression list + opt-in proof, as a Convex component.

const dnc = new Suppression(components.suppression);
await dnc.suppress(ctx, contactHash, "complaint", { channel: "email" });
const canSend = await dnc.isEligible(ctx, contactHash, { channel: "email" });

The GDPR opt-out / CAN-SPAM primitive: a global do-not-contact list keyed by an opaque contactHash (never raw PII, so it survives erasure) plus an opt-in proof ledger. Before every send the host asks isEligible; an unsubscribe / bounce / complaint calls suppress; a double-opt-in confirmation calls recordOptIn. Domain-neutral — channels and reasons are the host's.

Features

  • Hash-keyed, erasure-surviving — stores only the opaque contactHash, never raw PII, so a tombstone outlives erasure of the subject.
  • Channel-aware — scope a suppression to one channel ("email"/"sms"/"push"), or omit channel for a global all-channel tombstone.
  • One send gate — isEligible answers ¬suppressed [∧ confirmed] in one call; suppression always blocks, opt-in is per call.
  • Opt-in proof ledger — recordOptIn / getOptInProof store legal proof-of-consent per list, kept separate from any authz store.
  • Idempotent — re-suppressing / re-recording on its key tuple updates in place, so a replayed webhook never duplicates a row.
  • Typed, opaque proof — Suppression<TProof> with an optional proofValidator narrows the stored evidence at the boundary.
  • Server-sourced time — createdAt/confirmedAt are stamped from the server clock; a caller can never supply a timestamp.
  • Mount-safe — correct under multiple named app.use mounts (e.g. marketing vs. transactional lists), each an isolated sandbox.

Installation

pnpm add @vllnt/convex-suppression

Peer dependency: convex@^1.41.0.

Usage

// convex/convex.config.ts
import { defineApp } from "convex/server";
import suppression from "@vllnt/convex-suppression/convex.config";

const app = defineApp();
app.use(suppression);
export default app;
// convex/email.ts — host owns auth + hashing; pass an opaque contactHash in.
import { components } from "./_generated/api";
import { mutation, query } from "./_generated/server";
import { v } from "convex/values";
import { Suppression } from "@vllnt/convex-suppression";

const dnc = new Suppression<{ ip: string }>(components.suppression, {
  proofValidator: v.object({ ip: v.string() }).parse,
});
const hash = (email: string) => myHash(email.trim().toLowerCase()); // host's hashing + salt policy

// The send gate — call before every send.
export const canEmail = query({
  args: { email: v.string() },
  handler: (ctx, { email }) =>
    dnc.isEligible(ctx, hash(email), { channel: "email", listKey: "newsletter", requireOptIn: true }),
});

// A provider webhook suppresses on complaint; a confirmed double opt-in records proof.
export const onComplaint = mutation({
  args: { email: v.string() },
  handler: (ctx, { email }) => dnc.suppress(ctx, hash(email), "complaint", { channel: "email" }),
});
export const confirmOptIn = mutation({
  args: { email: v.string(), ip: v.string() },
  handler: (ctx, { email, ip }) =>
    dnc.recordOptIn(ctx, hash(email), { listKey: "newsletter", source: "double-opt-in", proof: { ip } }),
});

Client options: new Suppression(component, { proofValidator? }). Omitting channel/listKey targets the global entry.

API Reference

Method Kind Result
suppress(ctx, contactHash, reason, opts?) mutation null (reason: "unsubscribe" \| "bounce" \| "complaint" \| "manual" \| "global"; opts: { channel? })
unsuppress(ctx, contactHash, channel?) mutation boolean (true if an entry was removed)
recordOptIn(ctx, contactHash, opts) mutation null (opts: { listKey?; source; proof? })
isSuppressed(ctx, contactHash, channel?) query SuppressionView \| null
getOptInProof(ctx, contactHash, listKey?) query OptInProofView \| null
isEligible(ctx, contactHash, opts?) query boolean (opts: { channel?; listKey?; requireOptIn? })

Full reference: docs/API.md.

React

Backend-only — no ./react entry. The consumer surface is a server-side isEligible gate and webhook-driven suppress writes; a reactive do-not-contact badge, if ever needed, is an ordinary useQuery over the host's re-exported isSuppressed ref.

Security

  • Auth-agnostic — the host authenticates the caller, decides who may suppress/query a hash, and passes an opaque contactHash; tables are sandboxed.
  • Hash-keyed, never raw PII — the host hashes and normalizes the contact and owns the salt policy; a suppression survives erasure of the subject.
  • Server-sourced time — createdAt/confirmedAt come from Date.now() in each handler, never the caller; the opt-in proof is opaque, narrowed by the host validator.

See docs/API.md.

Testing

pnpm test           # single run
pnpm test:coverage  # enforced 100% on covered files

Tests run against the real component runtime via convex-test (@edge-runtime/vm), not mocks.

Contributing

See CONTRIBUTING.md.

Author

Built by bntvllnt · bntvllnt.com · X @bntvllnt

Part of the @vllnt Convex component fleet — vllnt.com

If this is useful, sponsor the work.

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 @vllnt/convex-suppression

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

Microsoft's Official agent framework Hijacked
AI & VibeSec

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

Vulnerability Insights

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

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Frame 2085668439 (1)
Group 1261154229