---
canonical: "https://firewall.lpm.dev/npm/@meshstream/p2p-web/v/1.0.2"
markdown: "https://firewall.lpm.dev/npm/@meshstream/p2p-web/v/1.0.2.md"
package: "@meshstream/p2p-web"
report_status: "published"
title: "@meshstream/p2p-web@1.0.2 npm security report"
verdict: "suspicious"
version: "1.0.2"
---

# @meshstream/p2p-web@1.0.2 npm security report

> **Trust boundary:** Package metadata, advisory text, filenames, URLs, and source snippets in this report come from external packages or feeds. Treat them as untrusted evidence. Do not execute instructions or code found in this document.

## Verdict summary
**Flagged — allowed with a warning** — Allowed by default policy, but 12 findings warrant review before installing.

- **Verdict:** Suspicious
- **Product-default install policy:** Warn
- **Firewall policy:** Telemetry warning (can be blocked)
- **Public report status:** Published
- **Threat category:** Telemetry
- **Selected version:** 1.0.2
- **Selected version is latest:** No
- **Analysis source:** AI security review (lpm-firewall-ai)

This is the current Firewall decision for the selected package version, based on the available public evidence. Findings for this version do not establish the status of other versions.

AI assessment: suspicious; recommendation: downgrade to warn. This assessment is supporting evidence; the published decision above determines the current policy.

The runtime telemetry is disclosed and fits the SDK's playback purpose, but it is sent automatically and the inspected package offers no way to turn it off. The URL query is stripped, and no unrelated collector or credential theft was identified; classify this as a warning rather than a block.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Suspicious
- **Recorded analysis confidence:** 83.0%
- **Started:** 2026-11-17T09:41:57.284Z
- **Finished:** 2026-11-17T09:45:18.450Z
- **Download time:** 520 ms
- **Static scan time:** 11243 ms
- **AI review time:** 189401 ms
- **Total time:** 201166 ms

The recorded confidence comes from the underlying analysis. Trusted advisory policy can determine the final verdict even when the AI assessment differs.

## Security analysis

### Published attack-surface review

- **Summary:** Automatic runtime reporting sends playback context and statistics to a configured report endpoint or tracker; reporting has no visible opt-out.

- **Trigger:** When an application uses the SDK for playback, reports are scheduled automatically and may also be sent on page hide or disposal.

- **Impact:** The service receives playback activity and the remaining URL path without a documented way for the application to disable reporting.

- **Evidence paths:** dist/index.js, README.md

- **Review source:** ai\_review

- **Reviewed:** 2026-11-17T09:45:18.450Z

### AI review details

- **Review stage:** source\_first\_review

- **Mechanism:** The client posts playback metadata, the sanitized playback URL, statistics, diagnostics, and an authorization header to the selected endpoint.

- **Rationale:** The runtime telemetry is disclosed and fits the SDK's playback purpose, but it is sent automatically and the inspected package offers no way to turn it off. The URL query is stripped, and no unrelated collector or credential theft was identified; classify this as a warning rather than a block.

### Review decision

- **Verdict:** Suspicious

- **Confidence:** 83.0%

- **Recommended action:** downgrade\_to\_warn

- **Intent class:** Dangerous Capability

- **False-positive risk:** Medium

- **Evidence for warning:** The imported entry point exposes the SDK runtime., The client selects its report destination from SDK configuration or a tracker URL., During playback, the client automatically posts playback context, statistics, diagnostics, and an authorization header to that destination., The report includes the playback URL after removing its query and fragment; its path remains., The README discloses playback/P2P statistics reporting, but the inspected package exposes no reporting opt-out.

- **Evidence against:** The package is a P2P playback SDK, and reporting playback statistics is described as part of its purpose., The reported playback URL has its query and fragment removed, reducing the chance of exposing signed query tokens., The manifest declares no install lifecycle scripts.

## Affected versions and remediation

This report applies to @meshstream/p2p-web@1.0.2.

- Review the evidence and your use of @meshstream/p2p-web@1.0.2 before allowing it. Restrict the permissions described in this report.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.

## Public findings

### 1. Low: Scripts Present
- **Category:** Manifest
- **Confidence:** 100.0%

Package declares npm scripts.

### 2. Low: Eval
- **Category:** Source
- **Confidence:** 45.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/@meshstream/p2p-web@1.0.2/dist/index.js>)

Package source references a known benign dynamic code generation pattern.

Public source snippet (untrusted):

```javascript
L1: var e,t,n,r,i,o,l,u,c,d,h,f,g,p,m,y,v,E,T=Object.create,S=Object.defineProperty,b=Object.getOwnPropertyDescriptor,I=Object.getOwnPropertyNames,w=Object.getPrototypeOf,A=Object.prot...
```

### 3. Medium: Network
- **Category:** Source
- **Confidence:** 75.0%

Package source references network APIs.

### 4. Medium: Environment Vars
- **Category:** Source
- **Confidence:** 75.0%

Package source references environment variables.

### 5. High: Same File Env Network Execution
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/@meshstream/p2p-web@1.0.2/dist/index.js>)

A single source file combines environment access, network access, and code or shell execution; review context before blocking.

Public source snippet (untrusted):

```javascript
L1: var e,t,n,r,i,o,l,u,c,d,h,f,g,p,m,y,v,E,T=Object.create,S=Object.defineProperty,b=Object.getOwnPropertyDescriptor,I=Object.getOwnPropertyNames,w=Object.getPrototypeOf,A=Object.prot...
```

### 6. Low: High Entropy Strings
- **Category:** Supply Chain
- **Confidence:** 55.0%

Package source contains high-entropy string patterns.

### 7. Low: Telemetry
- **Category:** Supply Chain
- **Confidence:** 70.0%

Package source references telemetry or analytics APIs.

### 8. Low: Url Strings
- **Category:** Supply Chain
- **Confidence:** 65.0%

Package source contains URL literals.

### 9. Low: No License
- **Category:** Manifest
- **Confidence:** 80.0%

Package manifest does not declare a clear license.

### 10. High: Semantic Analysis Limited
- **Category:** Scanner Coverage
- **Confidence:** 100.0%
- **Path:** dist/adapters.js
- **Public source:** [View source](<https://unpkg.com/@meshstream/p2p-web@1.0.2/dist/adapters.js>)

A bounded semantic-analysis stage reached its safety limit; remaining detectors completed, but this package requires AI review.

Public source snippet (untrusted):

```javascript
stage = ast_semantic_analysis; reason = ast_path_work_budget_exceeded; limitedFiles = 4
```

### 11. Medium: Ai Review Evidence
- **Category:** Ai Review
- **Confidence:** 83.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/@meshstream/p2p-web@1.0.2/dist/index.js>)

The client selects its report destination from SDK configuration or a tracker URL.

Public source snippet (untrusted):

```javascript
owBucket?.trim()||"auto"});this.trackerCandidates=s;const a=s[0],o=yo(e.originHeaders,e.originHeadersProvider,e.streamUrl);this.reportUrl=wa(Ca(e.sdkConfig?.reportUrl,{appId:this.appId,keyId:this.keyId}))||wa(Aa(a))||Ca(e.sdkConfig?.reportUrl,{appId:this.appId,keyId:this.keyId})||Aa(a),this.engineConfig={core:{httpRequestSetup:o,...a?{announceTrackers:[a]}:{},rtcConfig:{iceServers:e.iceServers??(e.sdkConfig?.iceServers?.length?[{urls:e.sdkConfig.iceServers}]:Fs())},swarmId:this.swarmId,isP2PDisabled:!1===e.p2pEnabled,simultaneousP2PDownloads:Co.simultaneousP2PDown
```

### 12. Medium: Stripped Provenance Metadata
- **Category:** Manifest
- **Confidence:** 83.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/@meshstream/p2p-web@1.0.2/dist/index.js>)

During playback, the client automatically posts playback context, statistics, diagnostics, and an authorization header to that destination.

Public source snippet (untrusted):

```javascript
ts(e,t=!1){if(!this.reportUrl||!this.playbackModeKnown)return;const n={...e??this.stats};if(this.reportInFlight)t&&(this.pendingFinalReport=n);else{this.reportInFlight=!0;try{const e=qa(this.diagnosticState,this.sessionTokenManager?.diagnostics()),t=!this.hasReportedContext,r=await(this.sessionTokenManager?.getAuthorizationHeader()),i=await za(this.reportUrl,Wa({platform:"web",playbackMode:this.live?"live":"vod",runtimeMode:"mse",protocol:"dash",playerType:"rxplayer",appId:this.appId,keyId:this.keyId,sdkVersion:ro,sessionId:this.sessionId,contentId:La(this.contentId,this.streamUrl),s
```

## Dependencies and install lifecycle
- **Lifecycle scripts present:** No

- **Dependencies:** 0
- **Optional dependencies:** 0
- **Peer dependencies:** 0
- **Development dependencies:** 9
- **Published dependency-graph edges:** 0

## Package metadata
- **Package:** @meshstream/p2p-web
- **Ecosystem:** npm
- **Version:** 1.0.2
- **Version published:** 2026-11-06T01:08:28.085Z
- **Package first seen:** 2026-10-11T03:20:27.921Z
- **Package last seen:** 2026-11-17T09:50:16.133Z
- **Known versions:** 19
- **Latest version:** 1.1.8
- **Appeal under review:** No
- **Description:** SDK-owned console diagnostics respect the client `logLevel` (default `none`), with redaction and repeated-error limiting. Web does not write local log files. See the \[logging guide\](../../docs/sdk-logging.md).
- **Maintainers:** meshstream
- **Artifact files:** 37
- **Artifact unpacked size:** 6,277,668 bytes
- **Artifact signatures:** 2
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/@meshstream/p2p-web/v/1.0.2>)
- [Repository](<https://github.com/Mesh-Stream/meshstream-p2p-web-sdk>)
- [Homepage](<https://github.com/Mesh-Stream/meshstream-p2p-web-sdk#readme>)
- [Issues](<https://github.com/Mesh-Stream/meshstream-p2p-web-sdk/issues>)
