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

@reventlessdev/trait-attachments

Latest version: v1.0.0-alpha.105

Overview

Last scanned
24 Nov 2026
Published
24 Nov 2026
npm package Publisher: reventless
2 Stars
2 Forks
97 Versions
9.6K Downloads
ReScript Repo language

Scan summary

@reventlessdev/trait-attachments was last scanned on 24 Nov 2026 at version 1.0.0-alpha.105. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 97 versions; the latest 5 were published within 3 days (22–24 Nov 2026).
  • Findings: No rules fired in version 1.0.0-alpha.105.
  • Downloads: 9,595 downloads.

Versions

97 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.0.0-alpha.105 LATEST 24 Nov 2026 No rules fired
1.0.0-alpha.104 23 Nov 2026 No rules fired
1.0.0-alpha.103 23 Nov 2026 No rules fired
1.0.0-alpha.102 23 Nov 2026 Not shown
1.0.0-alpha.100 22 Nov 2026 Not shown

No rules fired in 1.0.0-alpha.105

Findings

Findings for v1.0.0-alpha.105. 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.0.0-alpha.105; other versions have their own rules, not their own score.

README

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

@reventlessdev/trait-attachments

A domain trait: an ordered set of stored files on an entity — attach, remove, choose the primary, caption — as domain facts. The rules are a module the host calls; the types are the host's own:

Part Where
The set's rules src/Attachments_Rules.res (empty, op, fact, decide, evolve, primaryOf)
The host contract, as a type src/Attachments.res (module type Binding)
The conformance suite src/Attachments_Conformance.res (Make(Binding).register())
The emitter src/Attachments_Scaffold.res (emit(~config, ~into, ~tests))

Attachments_Rules is compiled code a host imports at runtime, so a change to it is a behavior change for every host: version it fix:/feat: accordingly.

The graft is a StateChangeSlice, so the emitter writes nearly all of it: the slice spec, its decision and the conformance binding, whole. Only the view's projection is printed as a patch — the view already exists, and placing an arm in an ordered switch is an AST operation a text splice gets silently wrong.

Storage is the platform's (UploadableImage.t names the store; mint, presign and pending-expiry are shipped). This package owns the rules of the set:

  • Attach and remove are idempotent — a ref already in the set, or already out of it, appends nothing; a removed ref can come back.
  • The primary is one of the set. Until one is chosen the first attached stands in; choosing the current primary appends nothing; removing the chosen one lets the first remaining stand in again.
  • A caption belongs to a member — refused for a ref that is not attached, a no-op when repeated.
  • The read model carries the primary as one string beside the set, so a card or a gallery tile has an image to draw without reading the set.

Unlike the geocoding trait this one writes nothing back into its host: the graft is a StateChangeSlice of the host, so the contract is over that slice.

Grafting a host

  1. Run the emitter. Every --key is a field of its config, and it validates them, so run it once to be told what it wants:
pnpm exec graft-trait @reventlessdev/trait-attachments \
  --into src/Product --tests tests/Product \
  --entity Product --entityId productId --entityIdType CatalogSpec.ProductId \
  --noun Image --file productImage --created ProductAdded --view Products

The field is named for the store it draws from, and --noun is what this host calls one attachment — it runs through every name the graft declares. --entityIdType names the host's identity module, so the emitted ids are typed; leave it out for a host that keeps its ids as strings.

  1. Fill the TODO(graft) markers. They are the host's own policy: the events its refusal turns on, the error it raises, and the else if in decide that raises it ahead of the set's rules. A graft with no extra refusal is a complete graft, so leaving them is legitimate.

  2. Paste the projection patch, and run the emitted conformance binding — 14 assertions, over your constructors, not the trait's.

The specimen hosts are examples/online-shop-hybrid/catalog's ProductImages and CategoryImages.

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 @reventlessdev/trait-attachments

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

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

Copy of Template Design OX Blog (1)
Research

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

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