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

@mentra/acs-meeting

Latest version: v3.5.0-dev.1553

Overview

Last scanned
27 Nov 2026
Published
27 Nov 2026
npm package Publisher: alex1115alex, nic--olo, philippefds
2,465 Stars
373 Forks
964 Versions
73.6K Downloads
TypeScript Repo language

Scan summary

@mentra/acs-meeting was last scanned on 27 Nov 2026 at version 3.5.0-dev.1553. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 964 versions; the latest 5 were published on 27 Nov 2026.
  • Findings: No rules fired in version 3.5.0-dev.1553.
  • Downloads: 73,619 downloads.

Versions

964 versions published
Versions and the rules that fired in each
VersionPublishedStatus
3.5.0-dev.1553 LATEST 27 Nov 2026 No rules fired
3.5.0-dev.1552 27 Nov 2026 No rules fired
3.5.0-dev.1551 27 Nov 2026 No rules fired
3.5.0-dev.1550 27 Nov 2026 Not shown
3.5.0-dev.1549 27 Nov 2026 Not shown

No rules fired in 3.5.0-dev.1553

Findings

Findings for v3.5.0-dev.1553. 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 3.5.0-dev.1553; other versions have their own rules, not their own score.

README

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

@mentra/acs-meeting

Phone-native Azure Communication Services client that puts a MentraOS wearer into a Microsoft Teams meeting as a guest. The glasses provide the camera and the microphone; the phone does all the WebRTC and ACS work.

This document is the reference for the native side, with an Android bias because Android is where the full pipeline, the telemetry and the SoftAP transport are implemented. iOS differences are collected in iOS.

Contents

  • Mental model
  • Where the code lives
  • Host setup
  • The two transports
  • The JS ↔ native boundary
  • Operations
  • Video send path
  • Audio uplink path
  • Audio downlink path
  • Networking on Android
  • State model
  • Recovery
  • Threads and concurrency
  • Generations and stale callbacks
  • Investigation arms
  • Telemetry
  • A/B captures on record
  • Tests
  • iOS
  • Known gaps

Mental model

The phone is a relay, not a capture device. It receives what the glasses already encoded, decodes it, and re-publishes it into ACS. Live video is not drawn on the phone, and a live frame does not cross the JavaScript bridge. A photo shutter is the exception: the phone draws a "Taking a photo..." card, then a still, and feeds those pixels through the same sender. See Photo hold.

glasses ──H.264 over WHIP──▶ [SoftAP listener | Cloudflare] ──▶ phone decode ──▶ ACS ──▶ Teams

Two properties of this are load-bearing and easy to get wrong.

ACS encodes for us. RawOutgoingVideoStream accepts raw pixels only — I420, NV12, RGBA and a few others — never an H.264 bitstream. The glasses' H.264 cannot be forwarded as-is; it must be decoded and handed over as pixels, and ACS then re-encodes to H.264 internally. The decode is unavoidable; the conversion is not, which is why we feed I420 (what the WebRTC decoder already produces) rather than converting to RGBA.

Only the video path is hot. At 720p15 the video path moves ~1.4 MB per frame, 15 times a second. Everything in video/ and source/ is written to avoid per-pixel work in Kotlin: scaling is libyuv via cropAndScale, packing is a bulk ByteBuffer copy, and plane buffers are pooled rather than allocated.

Audio is the opposite: small buffers, but two possible microphones and a mute that must mean the same thing at every stage. That is why the audio decision is a pure function, tested in isolation, and separate from the code that applies it.

Where the code lives

The native work is split across two Expo modules. glasses-media has no ACS dependency — it transports and decodes glasses media, and is also used by the managed WebRTC livestream relay. acs-meeting owns everything ACS-shaped.

mobile/modules/acs-meeting/android/src/main/java/com/mentra/acsmeeting/
├── AcsMeetingModule.kt       Expo bridge. Owns the scoped network + cellular hold
├── AcsMeetingSession.kt      Orchestrator. Owns the ACS Call and wires everything together
├── AbandonedCallAgent.kt     Recovers a CallAgent from a sign-in we stopped waiting on
├── CallCapabilities.kt       CapabilityStatus + EndForEveryonePolicy
├── RemoteRoster.kt           Remote participants, coalesced into state snapshots
│
├── source/
│   └── MeetingVideoSourceSpec.kt   Sealed Whep | SoftAp | Synthetic, parsed at the bridge
│
├── video/                    Pixels into ACS
│   ├── AcsFrameSender.kt         Owns RawOutgoingVideoStream, the send executor and the pool
│   ├── SendGate.kt               Single-in-flight backpressure
│   ├── FramePacer.kt             Absolute-schedule time gate at the advertised fps
│   ├── VideoProfile.kt           Geometry + rate + bitrate ceiling. One source of truth
│   ├── I420FormatSpec.kt         The I420 format we advertise, as plain values
│   ├── Nv12FormatSpec.kt         The NV12 format we advertise, as plain values
│   ├── Nv12Packer.kt             I420 → interleaved UV; NV12 arm only
│   └── AcsTimestamp.kt           100-ns ticks. Zero means freeze
│
├── audio/                    Two microphones, one call
│   ├── AcsAudioPolicy.kt         Pure decisions: which stream, who is muted, PCM routing
│   ├── AudioPolicyApplier.kt     Applies a decision to the live call, with convergence retries
│   ├── AudioUplinkChain.kt       Ingest + delay + bridge + pacer behind one lock
│   ├── PcmBridge.kt              Downmix/resample to 48 kHz mono 20 ms frames
│   ├── PcmResampler.kt           Stateful resampler (filter history spans callbacks)
│   ├── UplinkPacer.kt            Clock-domain ring; locks buffer depth to a target
│   ├── UplinkSender.kt           Monotonic-deadline drain thread + AcsUplinkTransport
│   ├── PhoneMicCapturer.kt       AudioRecord, for the phone-mic source
│   ├── IncomingAudioPump.kt      ACS mixed audio → 16 kHz mono batches for the host
│   └── IncomingRateProbe.kt      Measures the real incoming rate vs the declared one
│
└── telemetry/
    ├── CallDiagnostics.kt        Sampling cadence + bitrate thresholds for the analyzer
    └── WireEpisodeTracker.kt     Names each stretch where the ACS uplink went bad
mobile/modules/glasses-media/android/src/main/java/com/mentra/glassesmedia/
├── source/
│   ├── GlassesMediaSource.kt     Interface, SourceKind/SourceState, controller, reuse policy
│   ├── LocalWhipIngestSource.kt  SoftAP: we answer the glasses' WHIP offer
│   ├── CloudflareWhepSource.kt   WHEP: we offer, Cloudflare answers
│   ├── WhipIngestServer.kt       The HTTP listener the glasses POST to
│   ├── WhipIngestProtocol.kt     Paths and status semantics (including the 410 tombstone)
│   ├── SoftApSdpGuard.kt         Rejects offers whose candidates leave the hotspot
│   ├── SoftApIcePolicy.kt        ICE configuration for a local-only link
│   ├── DecodedTrackRelay.kt      The VideoSink/AudioTrackSink. Scale, toI420, hand off
│   ├── TrackRegistry.kt          Deduplicates track attachment by track id
│   ├── FirstFrameGate.kt         Promotion to LIVE on a real frame, per peer generation
│   ├── FrameStallGate.kt         Detects a frozen decoder mid-call
│   ├── MediaListeners.kt         I420Planes, VideoFrameListener, PcmListener
│   ├── VideoSourceArm.kt         MediaDiagnostics: every investigation flag
│   └── Synthetic*.kt             Locally generated frames, investigation arm only
├── network/
│   ├── ScopedSoftApNetwork.kt    Joins the glasses hotspot as an internet-less network
│   ├── ScopedNetworkChangeDetector.kt  Makes libwebrtc see that network
│   ├── InternetHold.kt           Cellular request + process pin + default-network waits
│   └── NetworkFacts.kt           Bounded, readable network state for traces
├── video/
│   ├── I420Packer.kt             Stride-aware planar copy; planeMinBytes guards
│   └── FrameGeometry.kt          Buffer-vs-display coordinates under rotation
├── telemetry/
│   ├── PipelineStats.kt          Every counter, and the 1 Hz "P6 ladder" line
│   ├── PipelineTicker.kt         Emits the ladder, P7 rate, P9 quality and AVSYNC each second
│   ├── VideoRateVerdict.kt       "P7 rate" — what is actually binding the wire rate
│   ├── VideoQuality.kt           "P9 quality" — bits per pixel band
│   ├── AvSyncProbe.kt            Clap correlator: audio lead vs video luma at ingest
│   ├── ChromaProbe.kt            Plane averages, to catch a mis-packed frame
│   └── RingPercentile.kt         p50/p95 over a fixed ring, written from many threads
└── trace/
    └── SoftApTrace.kt            `SOFTAP_TRACE` stage/failure lines with a shared trace id

Tests mirror both trees under android/src/test/java/....

Dependency direction is AcsMeetingSession → {source, video, audio, telemetry} and acs-meeting → glasses-media, never the reverse. Nothing in audio/ touches video.

The JS host that drives all of this lives in mobile/modules/engine/src/services/: AcsMeetingService.ts (the one owner of the native module), SoftapCallTransport.ts (SoftAP sequencing only), and LocalMiniappRuntime.ts (the MEETING_* miniapp requests).

Host setup

Add "@mentra/acs-meeting" to the host's Expo plugins list, including when this module is installed through @mentra/engine, then run Expo prebuild for the target platform. The plugin enables Android core library desugaring and builds AzureCommunicationCommon as the dynamic framework ACS requires on iOS. These requirements apply even when the host does not use Crust or Mapbox.

For iOS, run expo prebuild --platform ios and pod install. The plugin builds only AzureCommunicationCommon as a dynamic framework with BUILD_LIBRARY_FOR_DISTRIBUTION=YES. Calling's binary requires that framework at runtime and imports its generated Swift header and stable module interface at build time; CocoaPods' default static-library layout cannot satisfy that contract. The host's other pods retain their configured linkage.

The two transports

A call picks exactly one, at join, via videoSource.

SoftAP — the Mentra Call production path

The glasses raise a hotspot. The phone joins it as a scoped, internet-less network while keeping cellular for Teams. The glasses then publish WHIP straight to a listener on the phone. Cloudflare is not involved at all.

The phone is the answerer here, and the ingest URL is an output of binding a listener, not an input. That single fact explains most of the SoftAP design: the URL cannot be known before the join, so join() must bind before it returns, and recovery cannot silently rebind to a new port the glasses were never told about.

SoftAP publishes video only (captureAudio=false). The wearer's voice takes BLE LC3 instead — see Audio uplink path.

Cloudflare WHEP

The glasses publish WHIP to Cloudflare; the phone subscribes with WHEP. The phone is the offerer and the URL is an input. This is the path that supports updateVideoSource and in-session automatic rebuilds.

What differs
SoftAP Cloudflare WHEP
Phone role answerer offerer
Ingest URL output of join / rebindSoftApIngest input to join
Wearer audio BLE LC3 via pushOutgoingPcm decoded WHIP audio track
First-frame deadline 6 s (no CDN, no WAN hop) 9 s
Source reuse never same URL and not FAILED
Session-level auto rebuild suppressed exponential backoff, 1 s → 10 s
Needs cellular yes, validated before the join no

Everything downstream of the decoder is identical. DecodedTrackRelay is shared, so past the decode there is no such thing as "the SoftAP path".

The JS ↔ native boundary

Expo module name: MentraAcsMeeting. Every AsyncFunction is wrapped in an entry/exit trace (native_<name>_begin / _end / _failed) so a stall can be attributed to the native side rather than to the bridge.

Events
Event Payload Meaning
onState full state snapshot Any phase, roster, media-source, capability or audio-safety change
onIncomingPcm {base64, sampleRate, channels} 16 kHz mono batch of Teams audio for the host to play
onScopedNetworkLost {code, message} The hotspot went away while we still wanted it

onScopedNetworkLost never fires for a hotspot we released ourselves; the scoped state machine drops the framework's onLost in that case, so a normal Leave or End cannot manufacture a mid-call network error.

Functions

Call lifecycle:

Function Notes
prepareAgent({token, displayName}) Sign in to ACS before the hotspot exists. Waits up to 60 s
join(options) Joins Teams and arms all streams. Returns the snapshot plus ingestUrl on SoftAP
leave() Queues cleanup and returns immediately
leaveAndAwait({timeoutMs}) Resolves only once cleanup finished. {completed}
endForEveryone() Ends the group call. Tears this device down either way
getState() Current snapshot

Audio and video control:

Function Notes
setMuted(muted) Gates the uplink chain synchronously, then applies ACS policy
setVideoEnabled(enabled) ACS stopVideo/startVideo on the virtual outgoing stream. Glasses source and preview tap keep running; videoEnabled resets to true per join
setAudioSource(source) No-op. The source is locked for the call at join
pushOutgoingPcm(base64, rate, ch) Synchronous Function, ~100 calls/s. Returns whether it entered the uplink
updateVideoSource(whepUrl) WHEP only
restartVideoSource() Forces a WHEP rebuild. Ignored for SoftAP

SoftAP and networking:

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 @mentra/acs-meeting

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

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

Vulnerability Insights

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

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Frame 2085668439 (1)
Group 1261154229