Vulnerability DatabaseGHSA-jm66-q5wm-qf72

GHSA-jm66-q5wm-qf72: 
JavaScript vulnerability analysis and mitigation

Impact

orbitdb-relay's HTTP API (the metrics server, METRICS_PORT, default 9090) has no authentication and listens on all interfaces by default (server.listen(port) in src/services/metrics.ts; PinningHttpServer defaults to 0.0.0.0).

  • GET /pinning/databases without address lists the address of every OrbitDB database the relay has synced. Only lastRecord is redacted (RELAY_PINNING_EXPOSE_RECORD_VALUES, #54); the code itself notes "The listing is unauthenticated".
  • GET /ipfs/<cid> serves the blocks the relay holds (and, by default, fetches others over the network), so anyone who has a database address can read its manifest and log entries over plain HTTP. For apps whose entries carry clear fields (for example contact DIDs, owners or invitations in address books), one HTTP client can map who is connected to whom across all users of a relay, even when the record contents are encrypted. For some apps the address is derivable (for example from the owner's DID), so hiding the listing alone does not close this.
  • POST /pinning/sync lets anyone make the relay open and sync a database of their choice (rate-limited per client only).
  • There is no switch to turn these routes off; only the record-value redaction exists. The relay-button Aleph image (packages/rootfs/reference/orbitdb-relay) makes this reachable from the internet twice: Caddy on 443 proxies /pinning/* and /ipfs/* to the HTTP API, and the instance's port-forwarding exposes 9090 directly.

Patches

To be released. Planned:

  • The full listing (/pinning/databases without a non-empty address/dbAddress) is off by default, with an environment switch to turn it on (tests).
  • /pinning/sync, /pinning/has-entry and /ipfs/ are individually switchable by environment variable.
  • The HTTP server binds to 127.0.0.1 by default; a host variable opts into other interfaces.
  • relay-button: the Caddy template stops proxying the disabled routes, and 9090 is removed from the instance's port-forwarding.

Workarounds

  • Do not expose METRICS_PORT to untrusted networks: firewall it to loopback (iptables -I INPUT -p tcp --dport 9090 ! -i lo -j DROP, same with ip6tables), or remove it from port forwarding.
  • In a reverse proxy in front of the relay, answer 404 for /pinning/databases without a non-empty address/dbAddress query, and for /ipfs/* unless it is needed.
  • Applied on our production relays (athlete-equal-ritual-rhythm.2n6.me, will-view-session-barely.2n6.me) on 2026-11-28; this holds until the next redeploy.

Credit

Found during the deContact security audit (internal tracking P6c).


Source: NVD

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-j7r2-xppq-m353HIGH7.5
  • JavaScript logoJavaScript
  • websocket-driver
NoYesNov 28, 2026
GHSA-w7cm-vp9h-3qp4MEDIUM6.3
  • JavaScript logoJavaScript
  • axios
NoYesNov 28, 2026
GHSA-mw39-9473-h7mrMEDIUM6.3
  • JavaScript logoJavaScript
  • axios
NoYesNov 28, 2026
GHSA-v2qg-6486-r9rfLOW2.3
  • JavaScript logoJavaScript
  • axios
NoYesNov 28, 2026
GHSA-jm66-q5wm-qf72MEDIUMN/A
  • JavaScript logoJavaScript
  • orbitdb-relay
NoNoNov 28, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management