# destr@2.0.5 security report (npm)

- Verdict: **No issues** (risk level: safe)
- Scanned: 2026-10-04T16:27:24.000Z
- Files reviewed: 3
- Findings: 2 low severity findings
- Report: https://security.togoder.click/npm/destr
- Source: Togoder Security (https://security.togoder.click), AI source-code review

## Summary

Togoder Security scanned the npm package destr@2.0.5 on Oct 4, 2026. An AI review of 3 source files produced 2 low severity findings. No malicious behavior, install-time payloads, credential theft or exfiltration were identified.

## Findings

### [low] Regular expression denial of service (ReDoS) potential

Finding ID: `NPS-643A5B204E09`

File: `dist/index.cjs:3`

The regular expressions suspectProtoRx and suspectConstructorRx are complex but bounded, used only on JSON-like strings. No catastrophic backtracking evident, but worth noting for untrusted input.

### [low] Prototype pollution prevention

Finding ID: `NPS-52DC7FF4C1B0`

File: `dist/index.cjs:8`

The code explicitly checks for and drops __proto__ and constructor keys during JSON parsing to prevent prototype pollution attacks. This is a security feature, not a vulnerability.

## Files reviewed

- `dist/index.cjs` (safe): The code is a safe JSON parser with explicit prototype pollution guards; no malicious patterns detected.
- `dist/index.mjs` (safe): No malicious patterns detected; the code is a defensive JSON parsing utility that explicitly guards against prototype pollution.
- `lib/index.cjs` (safe): Cleared by Jev triage; no further analysis needed

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