# @metamask/safe-event-emitter@3.1.2 security report (npm)

- Verdict: **No issues** (risk level: safe)
- Scanned: 2026-10-04T16:07:57.000Z
- Files reviewed: 2
- Findings: 1 low severity finding
- Report: https://security.togoder.click/npm/@metamask/safe-event-emitter@3.1.2
- Source: Togoder Security (https://security.togoder.click), AI source-code review

## Summary

Togoder Security scanned the npm package @metamask/safe-event-emitter@3.1.2 on Oct 4, 2026. An AI review of 2 source files produced 1 low severity finding. No malicious behavior, install-time payloads, credential theft or exfiltration were identified.

## Findings

### [low] Error handling pattern

Finding ID: `NPS-A28AAF7E660B`

File: `dist/esm/index.mjs`

The safeApply function catches errors from event handlers and re-throws them asynchronously via setTimeout. This is an intentional pattern to prevent one listener's exception from interrupting other listeners, commonly used in SafeEventEmitter implementations. It does not execute arbitrary code or perform any malicious actions.

## Files reviewed

- `dist/cjs/index.js` (safe): No malicious patterns detected; the file contains a standard SafeEventEmitter implementation with no exfiltration, obfuscation, or suspicious behavior.
- `dist/esm/index.mjs` (safe): The code is a benign SafeEventEmitter implementation that adds error isolation to Node's EventEmitter, with no malicious patterns such as data exfiltration, credential harvesting, dynamic code execution, or network/process spawning.

## Version ranges

None of the 2 scanned versions of @metamask/safe-event-emitter are flagged high or critical. The latest scanned version, 3.1.3, is not scanned. Only versions we have scanned are listed; unscanned versions between them are not covered.

- 3.1.3 (`3.1.3`): not scanned
- 2.0.0 – 3.1.2 (`>=2.0.0 <=3.1.2`): clean

## Scanned versions

- [3.1.2](https://security.togoder.click/npm/@metamask/safe-event-emitter@3.1.2): safe, 2026-10-04T16:07:57.000Z
- [2.0.0](https://security.togoder.click/npm/@metamask/safe-event-emitter@2.0.0): safe, 2026-10-04T16:33:53.000Z

AI analysis is guidance, not a guarantee. Methodology: https://security.togoder.click/methodology
