nextjs
Pass
Audited by Gen Agent Trust Hub on Sep 18, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTIONDYNAMIC_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill provides multiple templates that process external data without implementing sufficient sanitization, creating an attack surface for indirect prompt injection and XSS.
- Ingestion points: API responses in
BlogPostPageand form data inValidatedPostForm. - Boundary markers: Absent; data is directly interpolated into components.
- Capability inventory: Templates demonstrate network fetching, file writing, and server-side redirects.
- Sanitization: Absent;
templates/app-router-async-params.tsxandtemplates/server-actions-form.tsxutilizedangerouslySetInnerHTMLto render content directly from external API responses. - [DYNAMIC_EXECUTION]: The file upload template in
templates/server-actions-form.tsxcontains a path traversal vulnerability that could be exploited to overwrite files on the server. - Evidence: The
uploadImageserver action constructs a file path using a user-controlled filename:const filename = \${Date.now()}-${file.name}`; const path = join(process.cwd(), 'public', 'uploads', filename); await writeFile(path, buffer);`. - Vulnerability: While the timestamp prefix provides a minor hurdle, it does not prevent path traversal if
file.namecontains..sequences, potentially allowing an attacker to write files outside of the intendeduploadsdirectory. - [COMMAND_EXECUTION]: The skill includes a utility script and documentation instructing the execution of shell commands and package managers.
- Evidence:
scripts/check-versions.shusesnode -pto parse local package files. TheREADME.mdandcommands/init.mdinstruct users to runnpxcommands for setup and migration, specifically targeting@next/codemodandcreate-next-app.
Audit Metadata