nextjs-senior-dev

Warn

Audited by Socket on Sep 15, 2026

7 alerts found:

Anomalyx6Security
AnomalyLOW
references/forms.md

The fragment does not indicate malware or intentional supply-chain sabotage. The main security concerns are public exposure of uploaded files, reliance on client-only size enforcement, trusting client-reported MIME types, lack of filename sanitization, and absent visible rate or quota controls. These are application security weaknesses rather than evidence of malicious package behavior.

Confidence: 96%Severity: 55%
AnomalyLOW
references/api_design.md

The code is legitimate API implementation guidance and contains no apparent malware, backdoor, exfiltration, obfuscation, or destructive behavior. Security concerns are ordinary application vulnerabilities: unvalidated PATCH mass assignment, insufficient pagination validation, spoofable rate-limit identity, and possible disclosure of unpublished posts through the public tRPC query. These should be remediated before production use.

Confidence: 98%Severity: 62%
AnomalyLOW
references/seo_metadata.md

The fragment is primarily legitimate SEO implementation code and shows no indicators of malware, exfiltration, backdoors, or obfuscation. However, the JSON-LD components have a potential XSS vulnerability because untrusted values are placed in a script element via dangerouslySetInnerHTML after JSON.stringify without HTML-safe serialization. Use a serializer that escapes `<`, `>`, `&`, and related characters, or otherwise safely embed the JSON. Overall risk is moderate and localized to callers that permit attacker-controlled structured-data fields.

Confidence: 97%Severity: 54%
AnomalyLOW
scripts/scaffold_route.py

The fragment is a local Next.js route scaffolding utility, not evident malware. Its principal security weakness is uncontrolled filesystem path construction from route_path and output_dir, enabling directory traversal or writes to unintended absolute locations when invoked with attacker-controlled arguments. Unsanitized route_name interpolation can also generate invalid or unsafe source files. The code as supplied is malformed and incomplete, and generated templates appear inconsistent, but there is no evidence of data theft or other malicious behavior.

Confidence: 98%Severity: 62%
SecurityMEDIUM
references/middleware.md

No malicious or intentionally harmful behavior is evident. This is defensive Next.js documentation, but the authentication example contains a severe authorization bypass caused by allowing the root path with startsWith, and the debugging example may leak sensitive headers into logs. Validate route prefixes exactly or use an explicit safe-prefix strategy, avoid logging authentication headers, and allowlist cookie and host-derived rewrite values.

Confidence: 98%Severity: 72%
AnomalyLOW
assets/proxy.ts

The code is ordinary authentication middleware and shows no evidence of malicious behavior. It contains a potentially significant authorization bypass because any request pathname containing a period skips authentication, beyond the intended static-file exclusions. It also exposes the user ID in a response header and has a loose admin prefix check. The period-based bypass should be removed or restricted to explicitly identified static assets.

Confidence: 98%Severity: 62%
AnomalyLOW
assets/middleware.ts

The code is ordinary authentication and authorization middleware with no clear malicious behavior. It contains a potentially significant policy weakness: pathname.includes(".") bypasses authentication for all dotted paths, including potentially protected routes. The /admin prefix check is also broader than a path-segment check, and x-user-id exposes an internal identifier to clients. These issues should be reviewed and narrowed, but there is no evidence of malware, exfiltration, backdoors, or intentional obfuscation.

Confidence: 97%Severity: 55%
Audit Metadata
Analyzed At
Sep 15, 2026, 06:40 AM
Package URL
pkg:socket/skills-sh/georgekhananaev%2Fclaude-skills-vault%2Fnextjs-senior-dev%2F@09b82b4b128ea23700da54237edf1b924b5d3afcf809377695feb2bfc135af89