nextjs

Warn

Audited by Socket on Sep 15, 2026

3 alerts found:

SecurityAnomalyx2
SecurityMEDIUM
templates/route-handler-api.ts

No clear malware or supply-chain attack behavior is present. The code contains significant application security weaknesses: webhook signatures are not verified, uploaded filenames can enable path traversal, uploads are unrestricted and publicly exposed, search input is not URL-encoded, and mutation endpoints show no visible authorization. These issues should be remediated before production use.

Confidence: 98%Severity: 78%
AnomalyLOW
templates/server-actions-form.tsx

The code appears to implement legitimate form and upload functionality and contains no clear malware, data exfiltration, backdoor, or obfuscation. The main security risk is a path traversal/file overwrite possibility in uploadImage because file.name is incorporated into the filesystem path. MIME validation is also insufficient, and the rate limiter can be spoofed or subjected to memory exhaustion. Generate a server-side random filename, validate and decode file contents, enforce authorization and storage boundaries, validate every server action input, and use a trusted distributed rate limiter.

Confidence: 96%Severity: 62%
AnomalyLOW
templates/cache-component-use-cache.tsx

No clear evidence of supply-chain malware/backdoors in this snippet. The dominant security concern is DOM XSS: remote post.content is inserted into the DOM via dangerouslySetInnerHTML without sanitization in this module. Additional risks include authorization/data exposure if cookie role is not strongly validated and server-side resource selection is trusted too much, plus downstream stored injection risk from createPost forwarding unvalidated content to the backend. Overall, treat this module as security-relevant and ensure HTML sanitization and robust authentication/authorization checks are enforced upstream (and/or before rendering).

Confidence: 72%Severity: 62%
Audit Metadata
Analyzed At
Sep 15, 2026, 12:04 AM
Package URL
pkg:socket/skills-sh/secondsky%2Fclaude-skills%2Fnextjs%2F@7972783d3843987fb7e48d7a26dbdeb2ba061b8c677f8a6cc744d7083ad5015d
Security Audit — socket — nextjs