stream-chat@9.54.2
JS SDK for the Stream Chat API
AI Security Review
scanned 6d ago · by lpm-firewall-aiThe runtime reporting is explicitly gated by the optional enableInsights setting, so the source does not show automatic credential exfiltration by default. However, the opted-in diagnostics include the user's chat token and profile details, which is excessive for operational insights and merits a warning.
Decision evidence
public snapshot- When Insights are enabled, websocket failure and recovery paths send diagnostic payloads.
- The websocket diagnostic payload includes the chat token and user details.
- Diagnostics are posted to https://chat-insights.getstream.io/insights/${insightType}.
- Insights are gated by the optional enableInsights setting.
- The postinstall only imports scripts/install-husky.mjs if present; the package file allowlist contains only dist and src.
- Insights are opt-in through enableInsights and are sent on diagnostic events, not continuously.
- The insights endpoint belongs to Stream, the SDK vendor.
- The conditional Husky postinstall target is not included in the package file allowlist.
Source & flagged code
5 flaggedInstall-time lifecycle script matches a deterministic static-gate block pattern.
package.jsonView on unpkgPackage defines install-time lifecycle scripts.
package.jsonView on unpkgFindings
Affected versions and remediation
This report applies to stream-chat@9.54.2.
See all versions of stream-chat for other recorded verdicts.
- Review the evidence and your use of stream-chat@9.54.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.
Evidence last updated: .
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.